| [226] | 1 | ///////////////////////////////////////////////////////////////// |
|---|
| 2 | // ADDRESS SPACE SEGMENTATION |
|---|
| 3 | // Author: Cesar Fuguet |
|---|
| 4 | ///////////////////////////////////////////////////////////////// |
|---|
| 5 | |
|---|
| 6 | ///////////////////////////////////////////////////////////////// |
|---|
| 7 | // RESET and EXCEPTION segments |
|---|
| 8 | // Base addresses required by MIPS processor |
|---|
| 9 | |
|---|
| 10 | #define KCODE_BASE 0x80000000 |
|---|
| 11 | #define KCODE_SIZE 0x00004000 |
|---|
| 12 | |
|---|
| 13 | #define KDATA_BASE 0x80100000 |
|---|
| 14 | #define KDATA_SIZE 0x00004000 |
|---|
| 15 | |
|---|
| 16 | #define KUNC_BASE 0x80200000 |
|---|
| 17 | #define KUNC_SIZE 0x00004000 |
|---|
| 18 | |
|---|
| 19 | #define RESET_BASE 0xBFC00000 |
|---|
| 20 | #define RESET_SIZE 0x00004000 |
|---|
| 21 | |
|---|
| 22 | ///////////////////////////////////////////////////////////////// |
|---|
| 23 | // CODE and DATA and STACK segments |
|---|
| 24 | |
|---|
| 25 | #define CODE_BASE 0x00000000 |
|---|
| 26 | #define CODE_SIZE 0x00004000 |
|---|
| 27 | |
|---|
| 28 | #define DATA_BASE 0x00100000 |
|---|
| 29 | #define DATA_SIZE 0x00004000 |
|---|
| 30 | |
|---|
| 31 | #define STAK_BASE 0x00800000 |
|---|
| 32 | #define STAK_SIZE 0x00004000 |
|---|
| 33 | |
|---|
| 34 | #define HEAP_BASE 0x00300000 |
|---|
| 35 | #define HEAP_SIZE 0x00004000 |
|---|
| 36 | |
|---|
| 37 | ////////////////////////////////////////////////////////// |
|---|
| 38 | // System devices |
|---|
| 39 | |
|---|
| 40 | #define TTY_BASE 0x00F10000 |
|---|
| 41 | #define TTY_SIZE 0x00000010 |
|---|
| 42 | |
|---|
| 43 | #define XICU_BASE 0x00F00000 |
|---|
| 44 | #define XICU_SIZE 0x00001000 |
|---|