32 lines
1016 B
C++
32 lines
1016 B
C++
//See $LK,"MP_VECT_ADDR","FF:::/TempleOS/Kernel/Adam1a.HPP,MP_VECT_ADDR"$ for something
|
|
//else used in low RAM.
|
|
//See $LK-A,"::/TempleOS/Doc/Mem.TXT"$.
|
|
|
|
//At least $LK,"DFT_CACHE_LINE_WIDTH","MN:DFT_CACHE_LINE_WIDTH"$ alignment.
|
|
#define BOOT_RAM_BASE 0x07C00
|
|
#define BOOT_RAM_LIMIT 0x97000
|
|
|
|
//9FC00 is EBDA BIOS area
|
|
#define VGA_GRAPHIC_MEM_BASE 0xA0000
|
|
#define VGA_TEXT_MEM_BASE 0xB8000
|
|
|
|
#define BLK_SIZE_BITS 9
|
|
#define BLK_SIZE (1<<BLK_SIZE_BITS)
|
|
#define CD_BLK_SIZE (4*BLK_SIZE)
|
|
#define CD_FILE_OFFSET 80
|
|
|
|
//These are the cfguration settings
|
|
//for a standard production CD-Image
|
|
#define STD_DISTRO_CDROM_CFG "b1\nScale2Mem(2048,0x40000)\nt3 \n\n\n\n\n"
|
|
#define SAFE_CDROM_CFG "b1\nScale2Mem(2048,0x40000)\nt3 \n\n\n\nDontProbe\n\n"
|
|
|
|
#define BOOT_STK_SIZE BLK_SIZE
|
|
|
|
#define BOOT_CODE_RAM 1
|
|
#define BOOT_CODE_HARDDRV 2
|
|
#define BOOT_CODE_CDROM 3
|
|
|
|
#define MAX_BOOT_LOADER_SIZE CD_BLK_SIZE
|
|
#define MAX_KERNEL_PATCH_TABLE 0x8000
|
|
#define KERNEL_BIN_LIMIT ((BOOT_RAM_LIMIT-(BOOT_STK_SIZE+MAX_BOOT_LOADER_SIZE))>>4)
|