Changeset 592 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc/BootVars.inc
- Timestamp:
- Jun 25, 2018, 10:29:27 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS/Inc/BootVars.inc
r589 r592 28 28 ; Number of times to retry booting before accepting error 29 29 BOOT_READ_RETRY_TIMES EQU 3 30 31 32 30 33 31 ; Pre-boot variables. These do not exist after successful boot to OS. … … 69 67 %endif ; MODULE_HOTKEYS 70 68 69 ; MAX_HARD_DISK_NAME_LENGTH must be defined ahead of the DRVDETECTINFO structure to avoid problems with NASM 70 MAX_HARD_DISK_NAME_LENGTH EQU 30 ; Bytes reserved for drive name 71 71 72 struc DRVDETECTINFO 72 73 .StartOfDrvDetectInfo: … … 79 80 endstruc 80 81 81 ; Boot Menu Information Table. These are generated for all XTIDE Universal82 ; BIOS drives. Available only until boot is successful.83 MAX_HARD_DISK_NAME_LENGTH EQU 30 ; Bytes reserved for drive name84 82 DPT_DRVDETECTINFO_SIZE_MULTIPLIER EQU DRVDETECTINFO_size / LARGEST_DPT_SIZE 85 83 86 87 84 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS 88 89 85 %if MAX_HARD_DISK_NAME_LENGTH % 2 <> 0 90 86 %error "MAX_HARD_DISK_NAME_LENGTH needs to be a multiple of 2, memory is moved with word operations." 91 87 %endif 92 93 %if DRVDETECTINFO_size % LARGEST_DPT_SIZE <> 094 %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."95 %endif96 97 %if DRVDETECTINFO.szDrvName <> 098 %error "DRVDETECTINFO.szDrvName is assumed to be the first member of struc DRVDETECTINFO, in BootMenuPrint_RefreshItem"99 %endif100 101 88 %endif 102 89
Note:
See TracChangeset
for help on using the changeset viewer.