source: trunk/boot/tsar_mips32/boot_config.h @ 624

Last change on this file since 624 was 624, checked in by alain, 5 years ago

Fix several bugs to use the instruction MMU in kernel mode
in replacement of the instruction address extension register,
and remove the "kentry" segment.

This version is running on the tsar_generic_iob" platform.

One interesting bug: the cp0_ebase defining the kernel entry point
(for interrupts, exceptions and syscalls) must be initialized
early in kernel_init(), because the VFS initialisation done by
kernel_ini() uses RPCs, and RPCs uses Inter-Processor-Interrup.

File size: 1.9 KB
Line 
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// paths for kernel.elf and arch_info.bin files
23#define ARCHINFO_PATHNAME   "arch_info.bin"
24#define KERNEL_PATHNAME     "bin/kernel/kernel.elf"
25
26// Preloader segment
27#define PRELOADER_BASE      0x00000000      // 'preloader' physical base address
28#define PRELOADER_MAX_SIZE  0x00004000      // 'preloader' max size
29
30// kcode segment
31#define KCODE_BASE          0x00004000      // 'kcode' segment physical base address
32#define KCODE_MAX_SIZE      0x000FC000      // 'kcode' + 'kdata' segments max size
33
34// boot.elf file temporary buffer
35#define BOOT_BASE           0x00200000      // 'boot.elf' file physical base address   
36#define BOOT_MAX_SIZE       0x00010000      // 'boot.elf' file max size (64 Kbytes)
37
38// arch_info file temporary buffer
39#define ARCHINFO_BASE       0x00300000      // 'arch_info.bin' file physical base address
40#define ARCHINFO_MAX_SIZE   0x00010000      // 'arch_info.bin' file max size (64 Kbytes)
41
42// kernel.elf file temporary buffer
43#define KERN_BASE           0x00400000      // 'kernel.elf' file base address
44#define KERN_MAX_SIZE       0x00200000      // 'kernel.elf' file max size
45
46// Temporary stacks segments
47#define BOOT_STACK_BASE     0x00600000      // Boot stack base address
48#define BOOT_STACK_SIZE     0x00004000      // Boot stack size (16Kb)
49
50
51
52#endif  // _BOOT_CONFIG_H
Note: See TracBrowser for help on using the repository browser.