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

Moved updating the MBR after 'PRECRAP' has finished [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

    r142 r145  
    183183        call    MBR_TeletypeNL
    184184
    185         ; Write MBR back to disk to sync MBR variables.
    186         ; Otherwise subsequent MBR loads will differ from the RAM stored one,
    187         ; which is used by MBR protection to validate parts of the MBR.
    188         xor     bx, bx
    189         mov     cx, 1
    190         xor     dh, dh
    191         mov     dl, [BIOS_BootDisk]
    192         mov     al, 1
    193         mov     ah, 03h
    194         int     13h
    195         ;!
    196         ;! TODO: Check success
    197         ;! Yes, we should check for errors here, coz it would mean AirBoot
    198         ;! was loaded from a disk where the MBR cannot be written !
    199         ;!
    200 
    201 
    202185        ;
    203186        ; Phase 1 Indicator
Note: See TracChangeset for help on using the changeset viewer.