Changeset 164


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

Flushed changes in local cache (debugging state) [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

Location:
trunk/bootcode
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/bootcode/airboot.asm

    r162 r164  
    11211121
    11221122
    1123 ;!
    1124 ;! DEBUG_BLOCK
    1125 ;! Dump the registers at this point.
    1126 ;!
    1127 IFDEF   AUX_DEBUG
    1128         IF 0
    1129         pushf
    1130         pusha
    1131             ;~ call    DEBUG_DumpRegisters
    1132             ;~ call    DEBUG_DumpDriveLetters
    1133             ;~ call    DEBUG_DumpVolumeLetters
    1134             ;~ call    DEBUG_DumpPartitionXref
    1135         popa
    1136         popf
    1137         ENDIF
    1138 ENDIF
    11391123
    11401124; -----------------------------------------------------------------------------
     
    11581142        ;!
    11591143
     1144
     1145
    11601146; -----------------------------------------------------------------------------
    11611147;                                                                   SCAN DISKS
    11621148; -----------------------------------------------------------------------------
    11631149
     1150;!
     1151;! DEBUG_BLOCK
     1152;! Dump the registers at this point.
     1153;!
     1154IFDEF   AUX_DEBUG
     1155        IF 0
     1156        PUSHRF
     1157            call    DEBUG_DumpRegisters
     1158            ;~ call    DEBUG_DumpDriveLetters
     1159            ;~ call    DEBUG_DumpVolumeLetters
     1160            ;~ call    DEBUG_DumpPartitionXref
     1161        POPRF
     1162        ENDIF
     1163ENDIF
     1164
     1165
    11641166                ;
    11651167                ; Scan disks for information like size etc.
     
    11671169                call    DriveIO_ScanDisks
    11681170
     1171;!
     1172;! DEBUG_BLOCK
     1173;! Dump the registers at this point.
     1174;!
     1175IFDEF   AUX_DEBUG
     1176        IF 0
     1177        PUSHRF
     1178            call    DEBUG_DumpRegisters
     1179            ;~ call    DEBUG_DumpDriveLetters
     1180            ;~ call    DEBUG_DumpVolumeLetters
     1181            ;~ call    DEBUG_DumpPartitionXref
     1182        POPRF
     1183        ENDIF
     1184ENDIF
    11691185
    11701186
     
    11811197                ; Internal Partition Table is now populated.
    11821198                ;
    1183 
    11841199
    11851200;!
    11861201;! DEBUG_BLOCK
    11871202;! Dump various tables.
    1188 ;! Uncomment below to activate.
    11891203;!
    11901204IFDEF   AUX_DEBUG
    11911205        IF 0
    1192         pushf
    1193         pusha
     1206        PUSHRF
    11941207            ;~ call    DEBUG_DumpIPT
    11951208            ;~ call    DEBUG_DumpPartitionPointers
     
    11991212            ;~ call    DEBUG_DumpVolumeLetters
    12001213            ;~ call    DEBUG_DumpPartitionXref
    1201         popa
    1202         popf
     1214        POPRF
    12031215        ENDIF
    12041216ENDIF
     
    12251237IFDEF   AUX_DEBUG
    12261238        IF 0
    1227         pushf
    1228         pusha
     1239        PUSHRF
    12291240            ;~ call    DEBUG_DumpIPT
    12301241            ;~ call    DEBUG_DumpPartitionPointers
     
    12341245            ;~ call    DEBUG_DumpVolumeLetters
    12351246            ;~ call    DEBUG_DumpPartitionXref
    1236         popa
    1237         popf
     1247        POPRF
    12381248        ENDIF
    12391249ENDIF
     
    12771287
    12781288; -----------------------------------------------------------------------------
    1279 ;                                                     eComStation PHASE1 CHECK
     1289;                                                            OS/2 PHASE1 CHECK
    12801290; -----------------------------------------------------------------------------
    12811291
     
    13121322IFDEF   AUX_DEBUG
    13131323        IF 0
    1314         pushf
    1315         pusha
     1324        PUSHRF
    13161325            ;~ call    DEBUG_DumpIPT
    13171326            ;~ call    DEBUG_DumpPartitionPointers
     
    13191328            ;~ call    DEBUG_DumpNewPartTable
    13201329            ;~ call    DEBUG_DumpDriveLetters
    1321         popa
    1322         popf
     1330        POPRF
    13231331        ENDIF
    13241332ENDIF
     
    13411349IFDEF   AUX_DEBUG
    13421350        IF 0
    1343         pushf
    1344         pusha
     1351        PUSHRF
    13451352            ;~ call    DEBUG_DumpIPT
    13461353            ;~ call    DEBUG_DumpPartitionPointers
     
    13481355            ;~ call    DEBUG_DumpNewPartTable
    13491356            ;~ call    DEBUG_DumpDriveLetters
    1350         popa
    1351         popf
     1357        POPRF
    13521358        ENDIF
    13531359ENDIF
     
    13901396
    13911397
     1398
    13921399                ;
    13931400                ; Debug stop.
     
    15151522            ENDIF
    15161523
     1524IFDEF   AUX_DEBUG
     1525        IF 0
     1526        DBG_TEXT_OUT_AUX    'HALTING'
     1527        PUSHRF
     1528            ;~ call    DEBUG_DumpRegisters
     1529            ;~ call    AuxIO_DumpParagraph
     1530            ;~ call    AuxIO_TeletypeNL
     1531        @@: jmp     @B
     1532        POPRF
     1533        ENDIF
     1534ENDIF
    15171535                ; BOOKMARK: Display bye-screen and start selected partition
    15181536                call    BOOTMENU_BuildGoodBye
     
    15481566IFDEF   AUX_DEBUG
    15491567        IF 0
    1550         pushf
    1551         pusha
     1568        PUSHRF
    15521569            ;~ call    DEBUG_DumpIPT
    15531570            ;~ call    DEBUG_DumpPartitionPointers
    15541571            ;~ call    DEBUG_DumpPartitionXref
    15551572            ;~ call    DEBUG_DumpNewPartTable
    1556         popa
    1557         popf
     1573        POPRF
    15581574        ENDIF
    15591575ENDIF
  • trunk/bootcode/regular/driveio.asm

    r157 r164  
    111111        DBG_TEXT_OUT_AUX    'DriveIO_SaveConfiguration:'
    112112        PUSHRF
    113             ;~ call    DEBUG_DumpRegisters
     113            call    DEBUG_DumpRegisters
    114114            ;~ call    AuxIO_DumpParagraph
    115115            ;~ call    AuxIO_TeletypeNL
     
    227227        pop     ds
    228228        mov     si, 0075h
    229         mov     dh, ds:[si]                ; 40:75 -> POST: Total Harddiscs == DL
     229        mov     dh, ds:[si]                ; 40:75 -> POST: Total Harddiscs == DH
    230230        pop     si
    231231        pop     ds
     
    297297        mov     wptr cs:[CurPartition_Location+4], dx
    298298        mov     wptr cs:[CurPartition_Location+6], cx ; Saves the location
    299         mov     si, offset PartitionSector    ; DS:SI - ExecBase
     299        mov     si, offset [PartitionSector]    ; DS:SI - ExecBase
    300300
    301301
     
    335335        DBG_TEXT_OUT_AUX    'DriveIO_SavePartition:'
    336336        PUSHRF
    337             ;~ call    DEBUG_DumpRegisters
     337            call    DEBUG_DumpRegisters
    338338            ;~ call    AuxIO_DumpParagraph
    339339            ;~ call    AuxIO_TeletypeNL
     
    456456
    457457IFDEF   AUX_DEBUG
    458         IF 1
     458        IF 0
    459459        DBG_TEXT_OUT_AUX    'DriveIO_LoadLVMSectorXBR:'
    460460        PUSHRF
     
    492492
    493493IFDEF   AUX_DEBUG
    494         IF 1
     494        IF 0
    495495        DBG_TEXT_OUT_AUX    'LVMSecLoaded'
    496496        PUSHRF
     
    616616
    617617IFDEF   AUX_DEBUG
    618         IF 1
     618        IF 0
    619619        DBG_TEXT_OUT_AUX    'DriveIO_SaveLVMSectorXBR:'
    620620        PUSHRF
     
    658658
    659659IFDEF   AUX_DEBUG
    660         IF 1
     660        IF 0
    661661        DBG_TEXT_OUT_AUX    'LVMSecSaved'
    662662        PUSHRF
     
    11081108
    11091109IFDEF   AUX_DEBUG
    1110         IF 1
     1110        IF 0
    11111111        DBG_TEXT_OUT_AUX    'DriveIO_LocateMasterLVMSector:'
    11121112        PUSHRF
     
    13381338        DBG_TEXT_OUT_AUX    'DriveIO_SaveSector:'
    13391339        PUSHRF
    1340             ;~ call    DEBUG_DumpRegisters
     1340            call    DEBUG_DumpRegisters
    13411341            ;~ call    AuxIO_DumpParagraph
    13421342            ;~ call    AuxIO_TeletypeNL
     
    16061606
    16071607IFDEF   AUX_DEBUG
    1608         IF 1
     1608        IF 0
    16091609        DBG_TEXT_OUT_AUX    'DriveIO_GatherDiskInfo:'
    16101610        PUSHRF
     
    18111811
    18121812IFDEF   AUX_DEBUG
    1813         IF 1
     1813        IF 0
    18141814        DBG_TEXT_OUT_AUX    '[DISKINFO]'
    18151815        PUSHRF
     
    18611861
    18621862IFDEF   AUX_DEBUG
    1863         IF 1
     1863        IF 0
    18641864        DBG_TEXT_OUT_AUX    'DriveIO_ScanDisks:'
    18651865        PUSHRF
  • trunk/bootcode/regular/other.asm

    r145 r164  
    9090
    9191IFDEF   AUX_DEBUG
    92         IF 1
     92        IF 0
    9393        DBG_TEXT_OUT_AUX    'PRECRAP_Main:'
    9494        PUSHRF
  • trunk/bootcode/regular/partmain.asm

    r159 r164  
    980980
    981981IFDEF   AUX_DEBUG
    982         IF 1
     982        IF 0
    983983        DBG_TEXT_OUT_AUX    'PART_StartPartition:'
    984984        PUSHRF
  • trunk/bootcode/regular/partscan.asm

    r146 r164  
    411411        mov     bx, wptr [si+LocBRPT_RelativeBegin+2]
    412412
    413 
    414 
    415 
    416413        add     ax, wptr [CurPartition_Location+0] ; +Partition-Absolute
    417414        adc     bx, wptr [CurPartition_Location+2] ;  sectors
    418 
    419415
    420416        ; Load the partition sector
     
    520516        pop   di
    521517
    522 
    523 
    524518IFDEF   AUX_DEBUG
    525519        IF 0
    526         DBG_TEXT_OUT_AUX    'LVMSector-2'
     520        DBG_TEXT_OUT_AUX    'Name'
    527521        PUSHRF
    528522            mov     si, di
     
    535529        ENDIF
    536530ENDIF
    537 
    538531
    539532        ; Check if this is an IBM-BM partition
  • trunk/bootcode/regular/videoio.asm

    r163 r164  
    446446WinCharEB       db      0D4h
    447447WinCharEE       db      0BEh
     448                db      0E4h
     449                db      0D7h
     450                db      0C6h
     451                db      0C4h
     452                db      0EAh
     453                db      0F6h
     454                db      085h
     455                db      0E0h
     456                db      0C1h
     457                db      0CCh
     458                db      0D1h
     459                db      0CCh
     460                db      0CAh
     461                db      0CBh
    448462
    449463;        In: BX - Begin Position, DX - End Position
     
    687701; Put the Build Information at the POST BIOS screen.
    688702;
    689 VideoIO_PrintBuildInfo  Proc    Near    Uses ax cx si di
     703VideoIO_PrintBuildInfo  Proc    Near    Uses ax bx cx si di
    690704        ; Print header.
    691705        mov     si, offset [build_date]
     
    693707        call    VideoIO_SyncPos
    694708
    695         ; Prepare info in temorary buffer.
    696         mov     si,offset bld_level_date_start
    697         mov     cx,offset bld_level_date_end
    698         sub     cx,si
     709        ; Display part of build information
     710        mov     si, offset bld_level_date_start
     711        mov     cx, offset bld_level_date_end
     712        sub     cx, si
    699713        call    VideoIO_FixedPrint
     714        mov     cx, 10
     715        mov     [TextPosX], 65
     716        mov     al, ' '
     717        mov     si, offset [WinBeginPosY]
     718        add     si, cx
     719        mov     ah, al
     720        xor     al, ah
     721        shr     ah, 4
     722        sub     ax,2
     723        mov     bx, ax
     724        mov     ax, [bx]
     725        shl     ax, 4
     726        add     cx, 4
     727    @@: lodsb
     728        xor     al, ah
     729        call    VideoIO_PrintSingleChar
     730        loop    @B
     731
    700732        add     [TextPosY], 2
    701733        mov     [TextPosX], 0
     
    706738
    707739
    708 ;   ;mov   ch, 21                                                                 ; y
    709 ;   mov   cl, 1                                                                   ; x
    710 ;   call  VideoIO_Locate
    711 ;   mov   ch, 15                                                                  ; fgc
    712 ;   mov   cl, 0                                                                   ; bgc
    713 ;   call  VideoIO_Color
    714740
    715741
  • trunk/bootcode/special/lvm.asm

    r158 r164  
    231231
    232232IFDEF   AUX_DEBUG
    233         IF 0
     233        IF 1
    234234        DBG_TEXT_OUT_AUX    'LVM_GetDriveLetter:'
    235235        PUSHRF
     
    330330
    331331IFDEF   AUX_DEBUG
    332         IF 0
     332        IF 1
    333333        DBG_TEXT_OUT_AUX    'LVM_RemoveVolLetterFromSector:'
    334334        PUSHRF
     
    371371
    372372IFDEF   AUX_DEBUG
    373         IF 0
     373        IF 1
    374374        DBG_TEXT_OUT_AUX    'LVM_DoLetterReassignment:'
    375375        PUSHRF
Note: See TracChangeset for help on using the changeset viewer.