Changeset 397 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc/BootVars.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/BootVars.inc

    r392 r397  
    2222%define BOOTVARS_INC
    2323
    24 
     24; Number of times to retry booting before accepting error
    2525BOOT_READ_RETRY_TIMES       EQU     3
    2626
     
    3636    .rgbMnuStack:
    3737    .dwPostStack        resb    4       ; POST stack pointer when entering INT 19h
     38
     39    .clearToZeroFromThisPoint:
     40%ifdef MODULE_HOTKEYS
    3841    .hotkeyVars         resb    HOTKEYVARS_size
    39     .rgBootNfo:                         ; Array containing BOOTNFO structs
     42%endif
     43   
     44    .rgDrvDetectInfo:                   ; Array containing DRVDETECTINFO structs
    4045endstruc
    4146
     47%ifdef MODULE_HOTKEYS
    4248struc HOTKEYVARS
    4349    .bScancode          resb    1       ; Function hotkey scancode
     
    5157FLG_HOTKEY_HD_FIRST     EQU     (1<<0)  ; First try to boot from HDD, then FDD
    5258
     59%endif ; MODULE_HOTKEY
     60
     61
     62
     63struc 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             
     73endstruc
     74
     75; Boot Menu Information Table. These are generated for all XTIDE Universal
     76; BIOS drives. Available only until boot is successful.
     77MAX_HARD_DISK_NAME_LENGTH           EQU     30      ; Bytes reserved for drive name
     78DPT_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
    5396
    5497
Note: See TracChangeset for help on using the changeset viewer.