Changeset 397 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc/BootVars.inc
- Timestamp:
- Apr 19, 2012, 11:11:41 AM (13 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Inc/BootVars.inc
r392 r397 22 22 %define BOOTVARS_INC 23 23 24 24 ; Number of times to retry booting before accepting error 25 25 BOOT_READ_RETRY_TIMES EQU 3 26 26 … … 36 36 .rgbMnuStack: 37 37 .dwPostStack resb 4 ; POST stack pointer when entering INT 19h 38 39 .clearToZeroFromThisPoint: 40 %ifdef MODULE_HOTKEYS 38 41 .hotkeyVars resb HOTKEYVARS_size 39 .rgBootNfo: ; Array containing BOOTNFO structs 42 %endif 43 44 .rgDrvDetectInfo: ; Array containing DRVDETECTINFO structs 40 45 endstruc 41 46 47 %ifdef MODULE_HOTKEYS 42 48 struc HOTKEYVARS 43 49 .bScancode resb 1 ; Function hotkey scancode … … 51 57 FLG_HOTKEY_HD_FIRST EQU (1<<0) ; First try to boot from HDD, then FDD 52 58 59 %endif ; MODULE_HOTKEY 60 61 62 63 struc DRVDETECTINFO 64 .szDrvName resb MAX_HARD_DISK_NAME_LENGTH 65 resb 2 ; Zero word (ensures string terminates) 66 .wInitErrorFlags resb 2 ; Errors during initialization 67 68 %ifdef MODULE_ADVANCED_ATA 69 resb 6 ; padding to make DRVDETECTINFO size an even multiple of DPT size 70 %else 71 resb 2 ; padding to make DRVDETECTINFO size an even multiple of DPT size 72 %endif 73 endstruc 74 75 ; Boot Menu Information Table. These are generated for all XTIDE Universal 76 ; BIOS drives. Available only until boot is successful. 77 MAX_HARD_DISK_NAME_LENGTH EQU 30 ; Bytes reserved for drive name 78 DPT_DRVDETECTINFO_SIZE_MULTIPLIER EQU DRVDETECTINFO_size / LARGEST_DPT_SIZE 79 80 81 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS 82 83 %if MAX_HARD_DISK_NAME_LENGTH % 2 <> 0 84 %error "MAX_HARD_DISK_NAME_LENGTH needs to be a multiple of 2, memory is moved with word operations." 85 %endif 86 87 %if DRVDETECTINFO_size % LARGEST_DPT_SIZE <> 0 88 %error "DRVDETECTINFO's size must be an even multiple of DPT's size. Add or remove padding at the bottom of DRVDETECTINFO to bring the two sizes into alignment. As DRVDETECTINFO is only used at boot time, with plenty of memory to consume, it is OK to waste some space here." 89 %endif 90 91 %if DRVDETECTINFO.szDrvName <> 0 92 %error "DRVDETECTINFO.szDrvName is assumed to be the first member of struc DRVDETECTINFO, in BootMenuPrint_RefreshItem" 93 %endif 94 95 %endif 53 96 54 97
Note:
See TracChangeset
for help on using the changeset viewer.