[6] | 1 | /********************************************************************************* |
---|
| 2 | * This file defines various configuration parameters for ALMOS-MKH boot-loader. |
---|
| 3 | ********************************************************************************/ |
---|
[1] | 4 | |
---|
| 5 | #ifndef _BOOT_CONFIG_H |
---|
| 6 | #define _BOOT_CONFIG_H |
---|
| 7 | |
---|
| 8 | // Debug options |
---|
[68] | 9 | #define DEBUG_BOOT_INFO 0 |
---|
[6] | 10 | #define DEBUG_BOOT_ELF 0 |
---|
[1] | 11 | #define DEBUG_BOOT_IOC 0 |
---|
[13] | 12 | #define DEBUG_BOOT_WAKUP 0 |
---|
[6] | 13 | #define DEBUG_BOOT_FAT32 0 |
---|
[1] | 14 | |
---|
[6] | 15 | // Core identifier format |
---|
| 16 | #define USE_FIXED_FORMAT 1 |
---|
[1] | 17 | |
---|
[6] | 18 | // cache line |
---|
| 19 | #define CACHE_LINE_SIZE 64 |
---|
[1] | 20 | |
---|
[6] | 21 | // Preloader temporary segment |
---|
[296] | 22 | #define PRELOADER_BASE 0x00000000 // 'preloader' physical base address |
---|
| 23 | #define PRELOADER_MAX_SIZE 0x00004000 // 'preloader' max size |
---|
[6] | 24 | |
---|
[296] | 25 | // kentry segment |
---|
| 26 | #define KENTRY_BASE 0x00004000 // 'kentry' segment physical base address |
---|
| 27 | #define KENTRY_MAX_SIZE 0X00004000 // 'kentry' segment max size |
---|
[1] | 28 | |
---|
[296] | 29 | // kcode segment |
---|
| 30 | #define KCODE_BASE 0x00008000 // 'kcode' segment physical base address |
---|
| 31 | #define KCODE_MAX_SIZE 0x000F8000 // 'kcode' + 'kdata' segments max size |
---|
[1] | 32 | |
---|
[296] | 33 | // boot.elf file temporary buffer |
---|
| 34 | #define BOOT_BASE 0x00100000 // 'boot.elf' file physical base address |
---|
| 35 | #define BOOT_MAX_SIZE 0x00010000 // 'boot.elf' file max size |
---|
[1] | 36 | |
---|
[296] | 37 | // arch_info file temporary buffer |
---|
| 38 | #define ARCHINFO_BASE 0x00200000 // 'arch_info.bin' file physical base address |
---|
| 39 | #define ARCHINFO_MAX_SIZE 0x00010000 // 'arch_info.bin' file max size |
---|
| 40 | |
---|
| 41 | // kernel.elf file temporary buffer |
---|
| 42 | #define KERN_BASE 0x00300000 // 'kernel.elf' file base address |
---|
| 43 | #define KERN_MAX_SIZE 0x00200000 // 'kernel.elf' file max size |
---|
| 44 | |
---|
[1] | 45 | // Temporary stacks segments |
---|
[296] | 46 | #define BOOT_STACK_BASE 0x00504000 // Boot stack base address |
---|
| 47 | #define BOOT_STACK_SIZE 0x00004000 // Boot stack size (16Kb) |
---|
[1] | 48 | |
---|
[296] | 49 | |
---|
| 50 | |
---|
[1] | 51 | #endif // _BOOT_CONFIG_H |
---|