Ignore:
Timestamp:
Apr 8, 2017, 12:26:39 AM (8 years ago)
Author:
Ben Rietbroek
Message:

Moved 'CheckFor13extensions' to module 'driveio' [v1.1.1-testing]

CAUTION:
This is a testbuild !
AirBoot uses the BIOS to access disks and a small coding error can trash
partition tables or other vital disk structures. You are advised to make
backups of TRACK0 and EBRs before using this testbuild. More info at:
https://rousseaux.github.io/netlabs.air-boot/pdf/AirBoot-v1.1.0-manual.pdf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bootcode/regular/other.asm

    r78 r95  
    198198        mov      [bx], al
    199199
    200         call     DriveIO_LoadMasterLVMSector         ; returns NC if no valid LVM record found
     200
     201        ; CHECKSUM CALCULATION DOES NOT WORK YET HERE
     202        ; CRC TABLE NOT INITED YET
     203        ; Returns NC if no valid LVM record found
     204        call     DriveIO_LoadMasterLVMSector
    201205
    202206        pushf
     
    343347
    344348        ; This sets [CurIO_UseExtension] flag.
    345         call    PRECRAP_CheckFor13extensions
     349        call    DriveIO_CheckFor13extensions
    346350        mov     al,[CurIO_UseExtension]
    347351        test    al,al
     
    441445        ret
    442446AFTERCRAP_Main  EndP
    443 
    444 
    445 
    446 
    447 PRECRAP_CheckFor13extensions    Proc Near
    448         mov     ah, 41h
    449         mov     bx, 55AAh
    450         mov     dl, [BIOS_BootDisk]     ; We check using the boot-disk
    451         int     13h
    452         cmp     bx, 0AA55h
    453         je      PCCF13E_Found
    454     PCCF13E_NotFound:
    455         ret
    456     PCCF13E_Found:
    457         and     cx, 1
    458         jz      PCCF13E_NotFound
    459         mov     byte ptr [CurIO_UseExtension], 1
    460         ret
    461 PRECRAP_CheckFor13extensions    EndP
    462447
    463448
Note: See TracChangeset for help on using the changeset viewer.