| 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 |
|---|
| 9 | #define DEBUG_BOOT_MULTI 0 |
|---|
| 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 | |
|---|
| 16 | // Boot cluster definition |
|---|
| 17 | #define BOOT_CLUSTER_CXY 0 |
|---|
| 18 | |
|---|
| 19 | // cache line |
|---|
| 20 | #define CACHE_LINE_SIZE 64 |
|---|
| 21 | |
|---|
| 22 | // core[x][y][p] identifier format |
|---|
| 23 | #define X_WIDTH 4 |
|---|
| 24 | #define Y_WIDTH 4 |
|---|
| 25 | #define P_WIDTH 2 |
|---|
| 26 | |
|---|
| 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 |
|---|
| 32 | #define PRELOADER_BASE 0x00000000 // 'preloader' physical base address |
|---|
| 33 | #define PRELOADER_MAX_SIZE 0x00004000 // 'preloader' max size |
|---|
| 34 | |
|---|
| 35 | // kcode segment |
|---|
| 36 | #define KCODE_BASE 0x00004000 // 'kcode' segment physical base address |
|---|
| 37 | #define KCODE_MAX_SIZE 0x000FC000 // 'kcode' + 'kdata' segments max size |
|---|
| 38 | |
|---|
| 39 | // boot.elf file temporary buffer |
|---|
| 40 | #define BOOT_BASE 0x00200000 // 'boot.elf' file physical base address |
|---|
| 41 | #define BOOT_MAX_SIZE 0x00010000 // 'boot.elf' file max size (64 Kbytes) |
|---|
| 42 | |
|---|
| 43 | // arch_info file temporary buffer |
|---|
| 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) |
|---|
| 46 | |
|---|
| 47 | // kernel.elf file temporary buffer |
|---|
| 48 | #define KERN_BASE 0x00400000 // 'kernel.elf' file base address |
|---|
| 49 | #define KERN_MAX_SIZE 0x00200000 // 'kernel.elf' file max size |
|---|
| 50 | |
|---|
| 51 | // Temporary stacks segments |
|---|
| 52 | #define BOOT_STACK_BASE 0x00600000 // Boot stack base address |
|---|
| 53 | #define BOOT_STACK_SIZE 0x00004000 // Boot stack size (16Kb) |
|---|
| 54 | |
|---|
| 55 | |
|---|
| 56 | |
|---|
| 57 | #endif // _BOOT_CONFIG_H |
|---|