Changeset 397 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc/BootMenu.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/BootMenu.inc
r392 r397 32 32 33 33 34 ; Boot Menu Information Table. These are generated for all XTIDE Universal35 ; BIOS drives. Available only until boot is successful.36 MAX_HARD_DISK_NAME_LENGTH EQU 30 ; Bytes reserved for drive name37 38 struc BOOTMENUINFO39 .szDrvName resb MAX_HARD_DISK_NAME_LENGTH40 resb 2 ; Zero word (ensures string terminates)41 .wInitErrorFlags resb 2 ; Errors during initialization42 43 %ifdef MODULE_ADVANCED_ATA44 resb 6 ; padding to make BOOTMENUINFO size an even multiple of DPT size45 %else46 resb 2 ; padding to make BOOTMENUINFO size an even multiple of DPT size47 %endif48 endstruc49 50 51 DPT_BOOTMENUINFO_SIZE_MULTIPLIER equ BOOTMENUINFO_size / LARGEST_DPT_SIZE52 53 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS54 55 %if MAX_HARD_DISK_NAME_LENGTH % 2 <> 056 %error "MAX_HARD_DISK_NAME_LENGTH needs to be a multiple of 2, memory is moved with word operations."57 %endif58 59 %if BOOTMENUINFO_size % LARGEST_DPT_SIZE <> 060 %error "BOOTMENUINFO's size must be an even multiple of DPT's size. Add or remove padding at the bottom of BOOTMENUINFO to bring the two sizes into alignment. As BOOTMENUINFO is only used at boot time, with plenty of memory to consume, it is OK to waste some space here."61 %endif62 63 %if BOOTMENUINFO.szDrvName <> 064 %error "BOOTMENUINFO.szDrvName is assumed to be the first member of struc BOOTMENUINFO, in BootMenuPrint_RefreshItem"65 %endif66 67 %endif68 69 70 34 %endif ; BOOTMENU_INC
Note:
See TracChangeset
for help on using the changeset viewer.