Ignore:
Timestamp:
Sep 11, 2009, 5:13:42 PM (11 years ago)
Author:
Till Straumann <strauman@…>
Branches:
4.10, 4.11, 5, master
Children:
507d382
Parents:
1b290ce7
Message:

2009-09-11 Till Straumann <strauman@…>

  • Makefile.am, preinstall.am, irq/no_pic.c (REMOVED), irq/irq.h, irq/irq_init.c: use openpic from 'shared' area instead of no_pic.
  • inlude/psim.h: use openpic from 'shared' area instead of no_pic. Added 'extern' declaration for (linker-script defined) RamBase? and RamSize? symbols. Let CPP macros expand to these symbols instead of static constants. Added register definitions for OpenPIC in the register area. Added register definitions for ethernet controller in the register area.
  • startup/linkcmds: Increased RamSize? to 16M. Increased 'RAM' memory region to 32M (there is really no disadvantage in making this large). Added comment explaining the inter-relation between RamSize?, the size of the memory region, the device-tree property "oea-memory-size" and the DBAT setting.
  • tools/psim-shared: Try to determine RamSize? from executable and set 'oea-memory-size' accordingly. May be overridden if 'RAM_SIZE' envvar is set. Added openpic to device-tree. Added ethernet controller to device-tree (commented because a PSIM patch is currently required to use this device).
  • startup/bspstart: Increase DBAT0 mapping to size of 32M.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/psim/include/psim.h

    r1b290ce7 rb094233  
    1212 * RAM Information
    1313 */
    14 #define PSIM_RAM_BASE (void *)0x00000000
    15 #define PSIM_RAM_SIZE 8388608
     14
     15extern char RamBase[];
     16extern char RamSize[];
     17
     18/*
     19 * RamBase/RamSize is defined by the linker script;
     20 * CPP symbols are AFAIK unused and deprecated.
     21 */
     22#define PSIM_RAM_SIZE ((unsigned long)RamSize)
     23#define PSIM_RAM_BASE ((void*)RamBase)
    1624
    1725/*
     
    5967  psim_sysv_sem_t Semaphore;
    6068
    61   /* 0x0c10001C - 0x0c10FFFF - NVRAM/RTC */
    62   uint8_t gap2[65508];
     69  /* 0x0c10001c - 0x0c10001f - NVRAM/RTC */
     70  uint8_t gap2[4];
     71
     72  /* 0x0c100020 - 0x0c10005F - Ethernet */
     73  volatile uint8_t Ethtap[ 64 ];
     74
     75  /* 0x0c100060 - 0x0c10FFFF - NVRAM/RTC */
     76  uint8_t gap3[65440];
    6377
    6478  /* 0x0c110000 - 0x0c12FFFF - System V IPC Shared Memory */
    6579  uint8_t SharedMemory[ 128 * 1024 ];
     80
     81  /* 0x0c130000 - 0x0c170000 - OpenPIC IRQ Controller */
     82  volatile uint8_t OpenPIC[ 256 * 1024 ];
    6683
    6784} psim_registers_t;
Note: See TracChangeset for help on using the changeset viewer.