| 1 | |
|---|
| 2 | ///////////////////////////////////////////////////////////////// |
|---|
| 3 | // ADDRESS SPACE SEGMENTATION |
|---|
| 4 | // |
|---|
| 5 | // This file must be included in the system.cpp file, |
|---|
| 6 | // for harware configuration : It is used to build |
|---|
| 7 | // the SOCLIB_SEGMENT_TABLE. |
|---|
| 8 | // |
|---|
| 9 | // This file can also be used by the ldscript generator, |
|---|
| 10 | // for embedded software generation. |
|---|
| 11 | // |
|---|
| 12 | // It gives the system integrator the garanty |
|---|
| 13 | // that hardware and software have the same |
|---|
| 14 | // description of the address space segmentation. |
|---|
| 15 | ///////////////////////////////////////////////////////////////// |
|---|
| 16 | |
|---|
| 17 | ///////////////////////////////////////////////////////////////// |
|---|
| 18 | // reset, and exception segments |
|---|
| 19 | // base address required by MIPS processor |
|---|
| 20 | ///////////////////////////////////////////////////////////////// |
|---|
| 21 | #define RESET_BASE 0xBFC00000 |
|---|
| 22 | #define RESET_SIZE 0x00010000 |
|---|
| 23 | |
|---|
| 24 | #define EXCEP_BASE 0x80000000 |
|---|
| 25 | #define EXCEP_SIZE 0x00010000 |
|---|
| 26 | |
|---|
| 27 | #define TEXT_BASE 0x00400000 |
|---|
| 28 | #define TEXT_SIZE 0x00050000 |
|---|
| 29 | |
|---|
| 30 | ///////////////////////////////////////////////////////////////// |
|---|
| 31 | // global data segment (initialised) |
|---|
| 32 | ///////////////////////////////////////////////////////////////// |
|---|
| 33 | |
|---|
| 34 | #define MC_M_BASE 0x10000000 |
|---|
| 35 | #define MC_M_SIZE 0x000F0000 |
|---|
| 36 | |
|---|
| 37 | #define MC_R_BASE 0x20200000 |
|---|
| 38 | #define MC_R_SIZE 0x00000008 |
|---|
| 39 | |
|---|
| 40 | #define MC_U_BASE 0x30000000 |
|---|
| 41 | #define MC_U_SIZE 0x000F0000 |
|---|
| 42 | |
|---|
| 43 | ////////////////////////////////////////////////////////// |
|---|
| 44 | // System devices |
|---|
| 45 | /////////////////////////////////////////////////////////// |
|---|
| 46 | |
|---|
| 47 | #define TTY_BASE 0xC0200000 |
|---|
| 48 | #define TTY_SIZE 0x00000100 |
|---|
| 49 | |
|---|
| 50 | #define XICU_BASE 0xD0200000 |
|---|
| 51 | #define XICU_SIZE 0x00000100 |
|---|
| 52 | |
|---|
| 53 | #define SIMHELPER_BASE 0xF0200000 |
|---|
| 54 | #define SIMHELPER_SIZE 0x00000100 |
|---|
| 55 | |
|---|
| 56 | #define C_PROC_BASE 0x01200000 |
|---|
| 57 | #define C_PROC_SIZE 0x00000010 |
|---|
| 58 | #define C_PROC_SPAN 0x01000000 |
|---|