| [3] | 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 MMU |
|---|
| 22 | |
|---|
| [85] | 23 | #define RESET_BASE 0x00BFC00000 |
|---|
| [3] | 24 | #define RESET_SIZE 0x00010000 |
|---|
| 25 | |
|---|
| [85] | 26 | #define EXCEP_BASE 0x0080000080 |
|---|
| [3] | 27 | #define EXCEP_SIZE 0x00010000 |
|---|
| 28 | |
|---|
| [85] | 29 | #define TEXT_BASE 0x0000400000 |
|---|
| [3] | 30 | #define TEXT_SIZE 0x00050000 |
|---|
| 31 | ///////////////////////////////////////////////////////////////// |
|---|
| 32 | // global data segment (initialised) |
|---|
| 33 | ///////////////////////////////////////////////////////////////// |
|---|
| 34 | |
|---|
| [85] | 35 | #define MC_M_BASE 0x0010000000 |
|---|
| [3] | 36 | #define MC_M_SIZE 0x00100000 |
|---|
| 37 | |
|---|
| 38 | ////////////////////////////////////////////////////////// |
|---|
| 39 | // System devices |
|---|
| 40 | /////////////////////////////////////////////////////////// |
|---|
| 41 | |
|---|
| [85] | 42 | #define TTY_BASE 0x00C0200000 |
|---|
| [3] | 43 | #define TTY_SIZE 0x00000100 |
|---|
| 44 | |
|---|
| [85] | 45 | #define TIMER_BASE 0x00D0200000 |
|---|
| [3] | 46 | #define TIMER_SIZE 0x00000100 |
|---|
| 47 | |
|---|
| [85] | 48 | #define LOCKS_BASE 0x00E0200000 |
|---|
| [3] | 49 | #define LOCKS_SIZE 0x00000100 |
|---|
| 50 | |
|---|
| [85] | 51 | #define C_PROC0_BASE 0x0001200000 |
|---|
| [3] | 52 | #define C_PROC0_SIZE 0x00000010 |
|---|
| 53 | |
|---|
| [85] | 54 | #define C_PROC1_BASE 0x0002200000 |
|---|
| [3] | 55 | #define C_PROC1_SIZE 0x00000010 |
|---|
| 56 | |
|---|
| [85] | 57 | #define C_PROC2_BASE 0x0003200000 |
|---|
| [3] | 58 | #define C_PROC2_SIZE 0x00000010 |
|---|
| 59 | |
|---|
| [85] | 60 | #define C_PROC3_BASE 0x0004200000 |
|---|
| [3] | 61 | #define C_PROC3_SIZE 0x00000010 |
|---|
| 62 | |
|---|
| 63 | |
|---|
| 64 | #define CLEANUP_OFFSET 0x20200000 |
|---|