Last change
on this file since 105 was 96, checked in by Tomi Tilli, 14 years ago |
Changes to XTIDE Universal BIOS:
- Cleaned boot loader code some more.
|
File size:
1.0 KB
|
Rev | Line | |
---|
[88] | 1 | ; Project name : XTIDE Universal BIOS
|
---|
[3] | 2 | ; Description : Defines for BOOTVARS struct used by boot menu
|
---|
| 3 | ; and drive initialization.
|
---|
| 4 | %ifndef BOOTVARS_INC
|
---|
| 5 | %define BOOTVARS_INC
|
---|
| 6 |
|
---|
| 7 |
|
---|
[96] | 8 | BOOT_READ_RETRY_TIMES EQU 3
|
---|
| 9 |
|
---|
| 10 |
|
---|
[3] | 11 | ; Boot Menu Information Table. These are generated for all XTIDE Universal
|
---|
| 12 | ; BIOS drives. Available only until boot is successfull.
|
---|
| 13 | LEN_BOOTNFO_DRV EQU 26 ; Bytes reserved for drive name
|
---|
| 14 | struc BOOTNFO
|
---|
| 15 | .twSectCnt resb 6 ; Total user addressable sectors
|
---|
| 16 | .szDrvName resb LEN_BOOTNFO_DRV+1 ; Drive name
|
---|
| 17 | resb 1 ; Alignment
|
---|
| 18 | endstruc
|
---|
| 19 |
|
---|
| 20 |
|
---|
| 21 | ; Pre-boot variables. These do not exist after successfull boot to OS.
|
---|
| 22 | ; Segment is always 0000h, same as BDA segment
|
---|
| 23 | struc BOOTVARS
|
---|
| 24 | resb 800h
|
---|
| 25 | .dwPostStack resb 4 ; 804h, POST stack when entering INT 19h
|
---|
[90] | 26 | resb 8
|
---|
[3] | 27 | .rgBootNfo resb 73F4h ; 80Ch, Array containing BOOTNFO structs
|
---|
| 28 | .rgbMnuStack: ; 7C00h and below, Boot Menu stack
|
---|
| 29 | .rgbAtaInfo: ; 7C00h, ATA Information for drive detection
|
---|
| 30 | .rgbBootSect resb 512 ; 7C00h, Boot sector
|
---|
| 31 | endstruc
|
---|
| 32 |
|
---|
| 33 |
|
---|
| 34 | %endif ; BOOTVARS_INC
|
---|
Note:
See
TracBrowser
for help on using the repository browser.