///////////////////////////////////////////////////////////////// // ADDRESS SPACE SEGMENTATION // Author: Cesar Fuguet ///////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////// // RESET and EXCEPTION segments // Base addresses required by MIPS processor #define KCODE_BASE 0x80000000 #define KCODE_SIZE 0x00004000 #define KDATA_BASE 0x80100000 #define KDATA_SIZE 0x00004000 #define KUNC_BASE 0x80200000 #define KUNC_SIZE 0x00004000 #define RESET_BASE 0xBFC00000 #define RESET_SIZE 0x00004000 ///////////////////////////////////////////////////////////////// // CODE and DATA and STACK segments #define CODE_BASE 0x00000000 #define CODE_SIZE 0x00004000 #define DATA_BASE 0x00100000 #define DATA_SIZE 0x00004000 #define STAK_BASE 0x00800000 #define STAK_SIZE 0x00004000 #define HEAP_BASE 0x00300000 #define HEAP_SIZE 0x00004000 ////////////////////////////////////////////////////////// // System devices #define TTY_BASE 0x00F10000 #define TTY_SIZE 0x00000010 #define XICU_BASE 0x00F00000 #define XICU_SIZE 0x00001000