[439] | 1 | /********************************************************************************* |
---|
| 2 | * This file defines various configuration parameters for ALMOS-MKH boot-loader. |
---|
| 3 | ********************************************************************************/ |
---|
| 4 | |
---|
| 5 | #ifndef _BOOT_CONFIG_H |
---|
| 6 | #define _BOOT_CONFIG_H |
---|
| 7 | |
---|
| 8 | // Debug options |
---|
[624] | 9 | #define DEBUG_BOOT_MULTI 0 |
---|
[439] | 10 | #define DEBUG_BOOT_INFO 0 |
---|
| 11 | #define DEBUG_BOOT_ELF 0 |
---|
| 12 | #define DEBUG_BOOT_IOC 0 |
---|
| 13 | #define DEBUG_BOOT_WAKUP 0 |
---|
| 14 | #define DEBUG_BOOT_FAT32 0 |
---|
| 15 | |
---|
[624] | 16 | // Boot cluster definition |
---|
| 17 | #define BOOT_CLUSTER_CXY 0 |
---|
[439] | 18 | |
---|
| 19 | // cache line |
---|
| 20 | #define CACHE_LINE_SIZE 64 |
---|
| 21 | |
---|
[653] | 22 | // core[x][y][p] identifier format |
---|
| 23 | #define X_WIDTH 4 |
---|
| 24 | #define Y_WIDTH 4 |
---|
| 25 | #define P_WIDTH 2 |
---|
| 26 | |
---|
[624] | 27 | // paths for kernel.elf and arch_info.bin files |
---|
| 28 | #define ARCHINFO_PATHNAME "arch_info.bin" |
---|
| 29 | #define KERNEL_PATHNAME "bin/kernel/kernel.elf" |
---|
| 30 | |
---|
| 31 | // Preloader segment |
---|
[439] | 32 | #define PRELOADER_BASE 0x00000000 // 'preloader' physical base address |
---|
[572] | 33 | #define PRELOADER_MAX_SIZE 0x00004000 // 'preloader' max size |
---|
[439] | 34 | |
---|
| 35 | // kcode segment |
---|
[624] | 36 | #define KCODE_BASE 0x00004000 // 'kcode' segment physical base address |
---|
| 37 | #define KCODE_MAX_SIZE 0x000FC000 // 'kcode' + 'kdata' segments max size |
---|
[439] | 38 | |
---|
| 39 | // boot.elf file temporary buffer |
---|
[624] | 40 | #define BOOT_BASE 0x00200000 // 'boot.elf' file physical base address |
---|
| 41 | #define BOOT_MAX_SIZE 0x00010000 // 'boot.elf' file max size (64 Kbytes) |
---|
[439] | 42 | |
---|
| 43 | // arch_info file temporary buffer |
---|
[624] | 44 | #define ARCHINFO_BASE 0x00300000 // 'arch_info.bin' file physical base address |
---|
| 45 | #define ARCHINFO_MAX_SIZE 0x00010000 // 'arch_info.bin' file max size (64 Kbytes) |
---|
[439] | 46 | |
---|
| 47 | // kernel.elf file temporary buffer |
---|
[624] | 48 | #define KERN_BASE 0x00400000 // 'kernel.elf' file base address |
---|
[439] | 49 | #define KERN_MAX_SIZE 0x00200000 // 'kernel.elf' file max size |
---|
| 50 | |
---|
| 51 | // Temporary stacks segments |
---|
[624] | 52 | #define BOOT_STACK_BASE 0x00600000 // Boot stack base address |
---|
[439] | 53 | #define BOOT_STACK_SIZE 0x00004000 // Boot stack size (16Kb) |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | #endif // _BOOT_CONFIG_H |
---|