adding rtos-32 support
This commit is contained in:
@@ -14,29 +14,16 @@
|
||||
|
||||
@HARDWARE.CFG
|
||||
|
||||
#ifdef DEBUGDOS
|
||||
#define BOOT_DOS
|
||||
#endif
|
||||
|
||||
#ifdef TSYS_DOS
|
||||
#define BOOT_DOS
|
||||
#endif
|
||||
|
||||
#ifsection .text // redefine some section names for BCB
|
||||
#define CODE .text
|
||||
#define DATA .data
|
||||
#endif
|
||||
|
||||
// Either use the monitor, or create bootable code.
|
||||
#ifdef MONITOR
|
||||
Reserve Monitor // leave room for Debug Monitor
|
||||
#elifdef BOOT_DOS
|
||||
Locate BootCode BIOSBOOT.EXE LowMem // boot from disk, bios, or DOS
|
||||
Reserve Monitor // leave room for Debug Monitor
|
||||
#elifdef DEBUGDOS
|
||||
Locate BootCode BIOSBOOT.EXE LowMem // boot from disk
|
||||
Locate BootData BootData LowMem // must be in conventional mem
|
||||
Locate DiskBuffer DiskIO LowMem 16k 16k // needed by disk boot code
|
||||
NoFPU=0 // Check FPU
|
||||
CPL = 3 // normal priveleges
|
||||
VideoRAM ColorText // program output sent to Graphics Card
|
||||
VideoRAM ColorText // program output sent to Graphic Card
|
||||
#else
|
||||
Locate BootCode BIOSBOOT.EXE LowMem // boot from disk
|
||||
Locate BootData BootData LowMem 0 16 // must be in conventional mem
|
||||
@@ -46,34 +33,27 @@
|
||||
VideoRAM ColorText // program output sent to Graphic Card
|
||||
#endif
|
||||
|
||||
FillRAM HeapMem // remap unused RAM
|
||||
FillRAM HeapMem // remap unused RAM
|
||||
|
||||
Locate Header Application LowMem // application header
|
||||
Locate Header Header LowMem // application header
|
||||
Locate PageTable Paging LowMem 20k // paging to use this
|
||||
|
||||
Locate NTSection CODE ProgMem->HighMem // code section
|
||||
Locate NTSection DATA ProgMem->HighMem // data section
|
||||
|
||||
#ifsection .tls // the following sections are not generated by all linker versions
|
||||
Locate NTSection .tls ProgMem->HighMem // TLS data section
|
||||
Locate NTSection .rdata ProgMem->HighMem // TLS directory
|
||||
#endif
|
||||
|
||||
Locate Stack Stack StackMem->LowMem 16k // stack space for main()
|
||||
Locate Heap Heap HeapMem // and the rest for the heap
|
||||
Locate NTSection .tls ProgMem->HighMem // TLS data section
|
||||
Locate NTSection .rdata ProgMem->HighMem // TLS directory
|
||||
Locate Stack Stack StackMem->LowMem 6k // stack space for main()
|
||||
Locate Heap Heap HeapMem // and the rest for the heap
|
||||
|
||||
// Compression needed if we are short on disk space - but shortens download
|
||||
// Note that this is discardable, unless we use -d- option of RTLoc
|
||||
Locate DecompCode Expand LowMem // include decompression stuff
|
||||
Locate DecompData ExBuffer LowMem
|
||||
Locate DecompCode Expand LowMem // include decompression stuff
|
||||
Locate DecompData ExBuffer LowMem
|
||||
|
||||
Locate Copy Paging LowMem // compress Paging
|
||||
Locate Copy CODE HighMem // compress CODE
|
||||
Locate Copy DATA HighMem // compress DATA
|
||||
Locate Copy Paging LowMem // compress Paging
|
||||
Locate Copy CODE HighMem // compress CODE
|
||||
Locate Copy DATA HighMem // compress DATA
|
||||
|
||||
#ifndef TSYS_CARD
|
||||
Locate Nothing FloppyDMA MoreLowMem 18k 64k ReadWrite // floppy driver
|
||||
#endif
|
||||
Locate Nothing FloppyDMA MoreLowMem 18k 64k ReadWrite // floppy driver
|
||||
|
||||
Init _Init // do some standard initializations (see init.c)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user