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


Ignore:
Timestamp:
Jan 27, 2011, 11:31:31 AM (13 years ago)
Author:
aitotat
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.
Location:
trunk/XTIDE_Universal_BIOS/Src/Handlers
Files:
1 added
3 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h.asm

    r84 r90  
    1 ; File name     :   Int13h_Jump.asm
    2 ; Project name  :   IDE BIOS
    3 ; Created date  :   21.9.2007
    4 ; Last update   :   14.1.2011
    5 ; Author        :   Tomi Tilli,
    6 ;               :   Krister Nordvall (optimizations)
     1; Project name  :   XTIDE Universal BIOS
    72; Description   :   Int 13h BIOS functions (Floppy and Hard disk).
    83
     
    227222    dw  AH3h_HandlerForWriteDiskSectors                 ; 03h, Write Disk Sectors (All)
    228223    dw  AH4h_HandlerForVerifyDiskSectors                ; 04h, Verify Disk Sectors (All)
    229     dw  AH5h_HandlerForFormatDiskTrack                  ; 05h, Format Disk Track (XT, AT, EISA)
     224    dw  Int13h_UnsupportedFunction                      ; 05h, Format Disk Track (XT, AT, EISA)
    230225    dw  Int13h_UnsupportedFunction                      ; 06h, Format Disk Track with Bad Sectors (XT)
    231226    dw  Int13h_UnsupportedFunction                      ; 07h, Format Multiple Cylinders (XT)
     
    242237    dw  Int13h_UnsupportedFunction                      ; 12h, Controller RAM Diagnostic (XT)
    243238    dw  Int13h_UnsupportedFunction                      ; 13h, Drive Diagnostic (XT)
    244     dw  AH14h_HandlerForControllerInternalDiagnostic    ; 14h, Controller Internal Diagnostic (All)
     239    dw  Int13h_UnsupportedFunction                      ; 14h, Controller Internal Diagnostic (All)
    245240    dw  AH15h_HandlerForReadDiskDriveSize               ; 15h, Read Disk Drive Size (AT+)
    246241    dw  Int13h_UnsupportedFunction                      ; 16h,
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int19h.asm

    r84 r90  
    1 ; File name     :   Int19h.asm
    2 ; Project name  :   IDE BIOS
    3 ; Created date  :   3.8.2007
    4 ; Last update   :   14.1.2011
    5 ; Author        :   Tomi Tilli,
    6 ;               :   Krister Nordvall (optimizations)
     1; Project name  :   XTIDE Universal BIOS
    72; Description   :   Int 19h BIOS functions (Boot Strap Loader).
    83
     
    127B_READ_RETRY_TIMES  EQU 3   ; Number of times to retry
    138
    14 
    15 ;--------------------------------------------------------------------
    16 ; Int 19h software interrupt handler for late initialization.
    17 ; Calls actual Int 19h after initialization is complete.
    18 ;
    19 ; Int19h_LateInitialization
    20 ;   Parameters:
    21 ;       Nothing
    22 ;   Returns:
    23 ;       Never returns
    24 ;--------------------------------------------------------------------
    25 ALIGN JUMP_ALIGN
    26 Int19h_LateInitialization:
    27     call    Initialize_ShouldSkip           ; Skip initialization?
    28     jc      SHORT .SkipInitialization
    29     call    Initialize_AndDetectDrives
    30     int     INTV_BOOTSTRAP                  ; Call actual boot loader
    31 .SkipInitialization:
    32     call    RamVars_Initialize              ; RAMVARS must be initialized even for simple boot loader
    33     ; Fall to Int19h_SimpleBootLoader
    34 
    35 ;--------------------------------------------------------------------
    36 ; Simple boot loader.
    37 ; Boot sequence is fixed to 00h, 80h and INT 18h.
    38 ;
    39 ; Int19h_SimpleBootLoader
    40 ;   Parameters:
    41 ;       Nothing
    42 ;   Returns:
    43 ;       Never returns
    44 ;--------------------------------------------------------------------
    45 ALIGN JUMP_ALIGN
    46 Int19h_SimpleBootLoader:
    47     sti                                     ; Enable interrupts
    48     call    RamVars_GetSegmentToDS
    49     xor     dx, dx
    50     call    Int19h_TryToLoadBootSectorFromDL
    51     jc      SHORT Int19h_JumpToBootSector
    52     mov     dl, 80h
    53     call    Int19h_TryToLoadBootSectorFromDL
    54     jc      SHORT Int19h_JumpToBootSector
    55     call    Int19h_BootFailure              ; Should never return       
    56     jmp     SHORT Int19h_SimpleBootLoader
    579
    5810;--------------------------------------------------------------------
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int19hMenu.asm

    r3 r90  
    1 ; File name     :   Int19hMenu.asm
    2 ; Project name  :   IDE BIOS
    3 ; Created date  :   25.3.2010
    4 ; Last update   :   12.4.2010
    5 ; Author        :   Tomi Tilli
     1; Project name  :   XTIDE Universal BIOS
    62; Description   :   Int 19h BIOS functions for Boot Menu.
    73
     
    2420    LOAD_BDA_SEGMENT_TO ds, ax
    2521    call    BootVars_StorePostStackPointer
    26     call    BootVars_StoreSystemInt18hAndInstallOurs
    2722
    2823    ; Install new INT 19h handler now that BOOTVARS has been initialized
     
    111106ALIGN JUMP_ALIGN
    112107.Int18hRomBoot:
    113     call    BootVars_RestoreSystemInt18h
    114108    call    BootVars_SwitchBackToPostStack
    115     call    Int19h_BootFailure          ; Should never return
    116     jmp     SHORT Int19hMenu_BootLoader ; Status unknown so reinitialize boot loader
     109    jmp     Int19h_BootFailure          ; Never returns
Note: See TracChangeset for help on using the changeset viewer.