Changeset 90 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS/Src/Boot


Ignore:
Timestamp:
Jan 27, 2011, 11:31:31 AM (14 years ago)
Author:
Tomi Tilli
google:author:
aitotat
Message:

Changes to XTIDE Universal BIOS:

  • Removed INT 13h format and diagnostics functions.
  • Removed INT 18h callback handler.
  • Removed configuration for early/late initialization. Now XT builds always use late and AT build early initialization.
  • Reduced number of supported IDE controllers from 5 to 4.
  • Removed reserved configuration bytes.
  • Removed simple and system boot loaders.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Boot/BootVars.asm

    r84 r90  
    1 ; File name     :   BootVars.asm
    2 ; Project name  :   IDE BIOS
    3 ; Created date  :   1.4.2010
    4 ; Last update   :   14.1.2011
    5 ; Author        :   Tomi Tilli,
    6 ;               :   Krister Nordvall (optimizations)
     1; Project name  :   XTIDE Universal BIOS
    72; Description   :   Functions to access BOOTVARS struct.
    83
     
    7772    sti                                 ; Enable interrupts
    7873    jmp     ax
    79 
    80 
    81 ;--------------------------------------------------------------------
    82 ; Backups system INT 18h ROM Boot / Boot Failure handler and
    83 ; installs our own for boot menu INT 18h callbacks.
    84 ;
    85 ; BootVars_StoreSystemInt18hAndInstallOurs
    86 ;   Parameters:
    87 ;       DS:     BDA and Interrupt Vector segment (zero)
    88 ;   Returns:
    89 ;       Nothing
    90 ;   Corrupts registers:
    91 ;       AX, BX, ES
    92 ;--------------------------------------------------------------------
    93 ALIGN JUMP_ALIGN
    94 BootVars_StoreSystemInt18hAndInstallOurs:
    95     mov     bx, INTV_BOOT_FAILURE*4     ; Offset to INT 18h vector
    96     les     ax, [bx]                    ; Load system INT 18h
    97     mov     [BOOTVARS.dwSys18h], ax
    98     mov     [BOOTVARS.dwSys18h+2], es
    99     mov     WORD [bx], Int18h_BootError ; Install our INT 18h
    100     mov     WORD [bx+2], cs
    101     ret
    102 
    103 
    104 ;--------------------------------------------------------------------
    105 ; Restores system INT 18h ROM Boot or Boot Error handler.
    106 ;
    107 ; BootVars_RestoreSystemInt18h
    108 ;   Parameters:
    109 ;       Nothing
    110 ;   Returns:
    111 ;       Nothing
    112 ;   Corrupts registers:
    113 ;       AX, DS, ES
    114 ;--------------------------------------------------------------------
    115 ALIGN JUMP_ALIGN
    116 BootVars_RestoreSystemInt18h:
    117     LOAD_BDA_SEGMENT_TO ds, ax
    118     les     ax, [BOOTVARS.dwSys18h]
    119     mov     [INTV_BOOT_FAILURE*4], ax
    120     mov     [INTV_BOOT_FAILURE*4+2], es
    121     ret
Note: See TracChangeset for help on using the changeset viewer.