Ignore:
Timestamp:
May 6, 2011, 4:25:19 AM (14 years ago)
Author:
Ben Rietbroek
Message:

AiR-BOOT v1.07 -- As released with eCS v2.1. [2011-05-06]
Signature-date: 2006-03-13. (incorrect)
Trunk contains buildable v1.07 version as distributed with eCS v2.1.
Directory 'tags' contains v1.06 & v1.07 reference versions
built for all languages. Note that language ID for 'Dutch' changed
from 'DT' to 'NL' in v1.07 and that the v1.06 reference version also
uses 'NL' for 'Dutch'.
Also note that helper programs like the installer and setaboot are
are only modified for the OS/2 versions in v1.07.
The signature-date for v1.07 incorrectly states the same
date as for v1.06. The signature-version is correct.
Removed other binaries. (cd-rom images, old releases, etc.)
The tags serve as reference versions:

  • v1.06: rebuilt from source. (tags/v1.06r)
  • v1.07: built as released with eCS v2.1. (tags/v1.07r)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/TOOLS/DOS/INITHDD/INITHDD.ASM

    r29 r30  
    2020
    2121Include ..\..\..\include\asm.inc
    22 include ..\..\..\include\dos\airboot.inc
     22;include ..\..\..\include\dos\airboot.inc
    2323
    2424                .386p
     
    3636TXT_ERROR_NotNeeded     db 'INITHDD: Initialization not needed.', 13, 10, 0
    3737TXT_Done                db 'INITHDD: HDD was successfully initialized.', 13, 10, 0
     38TXT_Cleared             db 'INITHDD: Reserved Sectors successfully cleared.', 13, 10, 0      ; Rousseau: added
    3839
    3940StandardMBR:
     
    6869   dw 00000h, 00000h, 00000h, 0AA55h
    6970
    70    Include ..\..\..\include\DOS\Const.asm
     71;   Include ..\..\..\include\DOS\Const.asm
    7172
    7273INITHDD_Start:  mov     ax, cs
     
    8485                mov     ax, 0201h          ; Read 1 sector
    8586                int     13h
     87                jnc     Clear                                                    ; Rousseau: added (only clear)
    8688                jnc     LoadMBR_NoError
    8789                mov     si, offset TXT_ERROR_IO
     
    9193                ; Check Master-Boot-Record Signature
    9294                cmp     wptr ds:[CurMBR+01FEh], 0AA55h
    93                 je      AlreadyInitialized
     95                ;;je      AlreadyInitialized                                     ; Rousseau: always initialize
    9496
    9597                mov     ax, cs
     
    107109                mov     si, offset TXT_Done
    108110                call    MBR_Teletype
     111
     112                ; Rousseau: added
     113               Clear:
     114                call    MBR_ClearReservedSectors
     115                mov     si, offset TXT_Cleared
     116                call    MBR_Teletype
     117                ; Rousseau: end added
     118
    109119                jmp     GoByeBye
    110120
     
    132142MBR_Teletype                    EndP
    133143
     144
     145; Rousseau: added
     146MBR_ClearReservedSectors        Proc Near
     147   mov   ax, cs
     148   mov   es, ax                           ; Make sure that ES is right
     149   mov   cx, 2                            ; Index of first reserved sector to clear
     150  MBR_ClearReservedSectors_loop:
     151   push  cx                               ; Put on stack for later use
     152   mov   bx, offset ZeroSEC               ; Block of 0's
     153   mov   dx, 0080h                        ; First harddrive, Sector in cx
     154   ;mov   cx, 0001h
     155   mov   ax, 0301h                        ; Function 03, 1 sector to write
     156   int   13h
     157   pop   cx                               ; Pop sector-index
     158   inc   cx                               ; Next sector
     159   cmp   cx, 62                           ; If below 63 (Possible LVM) then...
     160   jbe   MBR_ClearReservedSectors_loop    ; Repeat
     161   ret
     162MBR_ClearReservedSectors        EndP
     163
     164
     165
    134166CurMBR                  db      512 dup (?)
     167ZeroSEC                 db      512 dup (0)                                      ; Rousseau: added
    135168
    136169code_seg        ends
Note: See TracChangeset for help on using the changeset viewer.