Changeset 269 in xtideuniversalbios


Ignore:
Timestamp:
Feb 27, 2012, 2:58:34 PM (13 years ago)
Author:
gregli@…
google:author:
gregli@hotmail.com
Message:

Fixed a bug with reporting the number of hard disks when there were only foreign disks (none managed by this bios). Also a few small optimizations.

Location:
trunk/XTIDE_Universal_BIOS/Src
Files:
3 edited

Legend:

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

    r254 r269  
    2121BootMenuInfo_CreateForHardDisk:
    2222    call    BootMenuInfo_ConvertDPTtoBX         ; ES:BX now points to new BOOTMENUINFO
    23     push    bx                                  ; Preserve for return
    24 
    25     mov     di, bx                              ; Starting pointer at beginning of structure
    2623
    2724    ; Store Drive Name
     
    4542    pop     si
    4643    pop     ds
    47     pop     bx
    4844       
    4945    ret
  • trunk/XTIDE_Universal_BIOS/Src/Handlers/Int13h/AH0h_HReset.asm

    r264 r269  
    148148    mov     dl, ROMVARS.ideVars0                        ; starting Idevars offset
    149149
    150     mov     cl, [cs:ROMVARS.bIdeCnt]                    ; get count of ide controllers
    151     mov     ch, 0
     150    call    RamVars_GetIdeControllerCountToCX
    152151    jcxz    .done                                       ; just in case bIdeCnt is zero (shouldn't be)
    153152
  • trunk/XTIDE_Universal_BIOS/Src/Initialization/DetectDrives.asm

    r263 r269  
    6363; Add in hard disks to BDA, finalize our Count and First variables
    6464;
     65; Note that we perform the add to bHDCount and store bFirstDrv even if the count is zero.
     66; This is done because we use the value of .bFirstDrv to know how many drives were in the system
     67; at the time of boot, and to return that number on int13h/8h calls.  Because the count is zero,
     68; FindDPT_ForDriveNumber will not find any drives that are ours.
     69;
    6570    mov     cx, [RAMVARS.wDrvCntAndFlopCnt]     ; Our count of hard disks
    66     test    cl, cl
    67     jz      .AddFloppies                ; If none, nothing more to do
    6871
    6972    mov     al, [es:BDA.bHDCount]
     
    7275    or      al, 80h                     ; Or in hard disk flag     
    7376    mov     [RAMVARS.bFirstDrv], al     ; Store first drive number     
    74 
    7577
    7678.AddFloppies:       
Note: See TracChangeset for help on using the changeset viewer.