Changeset 397 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc/BootMenu.inc


Ignore:
Timestamp:
Apr 19, 2012, 11:11:41 AM (12 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Cleaned some code concerning recent module changes.
  • Removed drive number translation flag from ROMVARS.
  • BOOTMENUINFO is now DRVDETECTINFO.
  • Makefile now builds tiny binary (XT build with minimal features).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Inc/BootMenu.inc

    r392 r397  
    3232
    3333
    34 ; Boot Menu Information Table. These are generated for all XTIDE Universal
    35 ; BIOS drives. Available only until boot is successful.
    36 MAX_HARD_DISK_NAME_LENGTH               EQU     30      ; Bytes reserved for drive name
    37 
    38 struc BOOTMENUINFO
    39     .szDrvName              resb    MAX_HARD_DISK_NAME_LENGTH
    40                             resb    2   ; Zero word (ensures string terminates)
    41     .wInitErrorFlags        resb    2   ; Errors during initialization
    42    
    43 %ifdef MODULE_ADVANCED_ATA
    44                             resb    6   ; padding to make BOOTMENUINFO size an even multiple of DPT size
    45 %else
    46                             resb    2   ; padding to make BOOTMENUINFO size an even multiple of DPT size
    47 %endif             
    48 endstruc
    49 
    50 
    51 DPT_BOOTMENUINFO_SIZE_MULTIPLIER  equ   BOOTMENUINFO_size / LARGEST_DPT_SIZE
    52 
    53 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
    54 
    55 %if MAX_HARD_DISK_NAME_LENGTH % 2 <> 0
    56     %error "MAX_HARD_DISK_NAME_LENGTH needs to be a multiple of 2, memory is moved with word operations."
    57 %endif
    58 
    59 %if BOOTMENUINFO_size % LARGEST_DPT_SIZE <> 0
    60     %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 %endif
    62 
    63 %if BOOTMENUINFO.szDrvName <> 0
    64     %error "BOOTMENUINFO.szDrvName is assumed to be the first member of struc BOOTMENUINFO, in BootMenuPrint_RefreshItem"
    65 %endif
    66 
    67 %endif
    68 
    69 
    7034%endif ; BOOTMENU_INC
Note: See TracChangeset for help on using the changeset viewer.