Changeset 254 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Inc


Ignore:
Timestamp:
Feb 18, 2012, 2:51:54 PM (13 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to XTIDE Universal BIOS:

  • Changed BOOTNFO to BOOTMENUINFO and moved it to BootMenu.inc.
Location:
trunk/XTIDE_Universal_BIOS/Inc
Files:
2 edited

Legend:

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

    r127 r254  
    11; Project name  :   XTIDE Universal BIOS
    2 ; Description   :   Equates used in Boot Menu.
     2; Description   :   Equates and structs used in Boot Menu.
    33%ifndef BOOTMENU_INC
    44%define BOOTMENU_INC
     
    1717
    1818
     19; Boot Menu Information Table. These are generated for all XTIDE Universal
     20; BIOS drives. Available only until boot is successfull.
     21MAX_HARD_DISK_NAME_LENGTH               EQU     26      ; Bytes reserved for drive name
     22
     23struc BOOTMENUINFO
     24    .szDrvName      resb    MAX_HARD_DISK_NAME_LENGTH
     25                    resb    2       ; Zero word (ensures string terminates)
     26                    resb    8       ; padding to make BOOTMENUINFO size an even multiple of DPT size
     27endstruc
     28
     29DPT_BOOTMENUINFO_SIZE_MULTIPLIER  equ   BOOTMENUINFO_size / LARGEST_DPT_SIZE
     30
     31%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS               
     32
     33%if BOOTMENUINFO_size % LARGEST_DPT_SIZE <> 0
     34%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."
     35%endif
     36
     37%if BOOTMENUINFO.szDrvName <> 0
     38%error "BOOTMENUINFO.szDrvName is assumed to be the first member of struc BOOTMENUINFO, in BootMenuPrint_RefreshItem"
     39%endif
     40
     41%endif
     42
     43
    1944%endif ; BOOTMENU_INC
  • trunk/XTIDE_Universal_BIOS/Inc/BootVars.inc

    r252 r254  
    88BOOT_READ_RETRY_TIMES       EQU     3
    99
    10 
    11 ; Boot Menu Information Table. These are generated for all XTIDE Universal
    12 ; BIOS drives. Available only until boot is successfull.
    13 LEN_BOOTNFO_DRV     EQU     26      ; Bytes reserved for drive name
    14 struc BOOTNFO
    15     .szDrvName      resb    LEN_BOOTNFO_DRV     ; Drive name
    16                     resb    2       ; Zero word (ensures string terminates)
    17                     resb    8       ; padding to make BOOTNFO size an even multiple of DPT size
    18 endstruc
    19 
    20 DPT_BOOTNFO_SIZE_MULTIPLIER  equ    BOOTNFO_size / LARGEST_DPT_SIZE
    21 
    22 %ifndef CHECK_FOR_UNUSED_ENTRYPOINTS               
    23 
    24 %if BOOTNFO_size % LARGEST_DPT_SIZE <> 0
    25 %error "BOOTNFO's size must be an even multiple of DPT's size.  Add or remove padding at the bottom of BOOTNFO to bring the two sizes into alignment.  As BOOTNFO is only used at boot time, with plenty of memory to consume, it is OK to waste some space here."
    26 %endif
    27 
    28 %if BOOTNFO.szDrvName <> 0
    29 %error "BOOTNFO.szDrvName is assumed to be the first member of struc BOOTNFO, in BootMenuPrint_RefreshItem"
    30 %endif
    31 
    32 %endif
    3310
    3411
Note: See TracChangeset for help on using the changeset viewer.