Changeset 138


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

Removed all the now obsolete storage variables [v1.1.1-testing]

There may still be some references in disabled debug-code, but we'll
fix that later.

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/airboot.asm

    r133 r138  
    21862186;                                                            START OF BSS DATA
    21872187; -----------------------------------------------------------------------------
    2188 
    21892188; This space actually gets initialized in PreCrap to NUL (till EndOfVariables)
    21902189BeginOfVariables:
     
    22542253;                                                                   XREF TABLE
    22552254; -----------------------------------------------------------------------------
    2256 
    22572255; X-Reference Table (holds new partnr, index is old part nr)
    22582256; BOOKMARK: Xref Table
     
    22642262;                                                               VOLUME LETTERS
    22652263; -----------------------------------------------------------------------------
    2266 
    22672264; Volume-Letters
    22682265; 0 - no LVM support
     
    23822379
    23832380; -----------------------------------------------------------------------------
    2384 ;                                                           ECS PHASE1 RELATED
    2385 ; -----------------------------------------------------------------------------
    2386 Phase1Active                db      ?
    2387 OldPartitionCount           db      ?
    2388                             ALIGN   16
    2389 
    2390 
    2391 ; -----------------------------------------------------------------------------
    2392 ;                                                              DISK PARAMETERS
    2393 ; -----------------------------------------------------------------------------
    2394 HugeDisk                    db      MaxDisks  dup(?)
    2395 TrueSecs                    dd      MaxDisks  dup(?)
    2396                             ALIGN   16
    2397 
    2398 ; BIOS geometry of the boot-drive
    2399 ; Note that heads cannot be 256 due to legacy DOS/BIOS bug
    2400 ; If Int13X is supported those values are used, otherwise the legacy values.
    2401 BIOS_Cyls                   dd      MaxDisks  dup(?)
    2402 BIOS_Heads                  dd      MaxDisks  dup(?)
    2403 BIOS_Secs                   dd      MaxDisks  dup(?)
    2404 BIOS_Bytes                  dw      MaxDisks  dup(?)
    2405 BIOS_TotalSecs              dq      MaxDisks  dup(?)
    2406                             ALIGN   16
    2407 
    2408 ; LBA geometry of the boot-drive
    2409 ; Note that these values are taken from the BPB of a partition boot-record
    2410 LVM_Cyls                    dd      MaxDisks  dup(?)
    2411 LVM_Heads                   dd      MaxDisks  dup(?)
    2412 LVM_Secs                    dd      MaxDisks  dup(?)
    2413 LVM_Bytes                   dw      MaxDisks  dup(?)
    2414 LVM_TotalSecs               dq      MaxDisks  dup(?)
    2415 LVM_MasterSecs              dd      MaxDisks  dup(?)
    2416                             ALIGN   16
    2417 
    2418 ; OS/2 geometry of the boot-drive
    2419 ; Note that these values are taken from the BPB of a partition boot-record
    2420 LOG_Cyls                    dd      MaxDisks  dup(?)
    2421 LOG_Heads                   dd      MaxDisks  dup(?)
    2422 LOG_Secs                    dd      MaxDisks  dup(?)
    2423 LOG_Bytes                   dw      MaxDisks  dup(?)
    2424 LOG_TotalSecs               dq      MaxDisks  dup(?)
    2425                             ALIGN   16
    2426 
     2381;                                                         LVM DRIVE-LETTER MAP
     2382; -----------------------------------------------------------------------------
    24272383; Get's initialized at startup to: 00000011111111111111111111111100b
    24282384; Meaning A,B not free; C-Z free, rest unused. (right to left)
     
    24312387                            ALIGN   16
    24322388
    2433 ; LBA address of master LVM sector, zero if non-existant
    2434 MasterLVMLBA                dd      MaxDisks  dup(?)
     2389
     2390; -----------------------------------------------------------------------------
     2391;                                                          OS/2 PHASE1 RELATED
     2392; -----------------------------------------------------------------------------
     2393Phase1Active                db      ?
     2394OldPartitionCount           db      ?
    24352395                            ALIGN   16
    24362396
     2397
     2398; -----------------------------------------------------------------------------
     2399;                                         ARRAY OF DISK INFORMATION STRUCTURES
     2400; -----------------------------------------------------------------------------
    24372401; Array of DISKINFO structures
    24382402DiskInformation             db      MaxDisks  dup(DISKINFO_Size dup(?))
    24392403                            ALIGN   16
    24402404
     2405
    24412406; -----------------------------------------------------------------------------
    24422407;                                                                   INT13X DAP
    24432408; -----------------------------------------------------------------------------
    2444 
    24452409; Disk Address Package that holds information for LBA-access using INT13X
    24462410INT13X_DAP                  db      ?       ; Size of paket, inserted by code
     
    24532417                            ALIGN   16
    24542418
    2455 ;
    2456 ; BOOKMARK: Temporary buffer for 48h INT13X bios call.
    2457 ;
    2458 
    2459             ; Size of the buffer.
    2460             ; this param *must* be filled in.
    2461             ; Code inserts it.
    2462 i13xbuf     dw  1   dup (?)
    2463 
    2464             ; The buffer itself.
    2465             db  126 dup(?)
    2466 
    2467             ; Size of buffer calculated.
    2468             ; (excluding the size word at the start).
    2469             i13xbuf_size = $-offset i13xbuf-2
    2470             ALIGN   16
    2471 
    2472             ; Some debug area.
    2473 dbg_scratch db  512 dup(?)
    2474             ALIGN   16
     2419
     2420; -----------------------------------------------------------------------------
     2421;                                                                        DEBUG
     2422; -----------------------------------------------------------------------------
     2423; Some debug area.
     2424dbg_scratch                 db      512 dup(?)
     2425                            ALIGN   16
    24752426
    24762427
Note: See TracChangeset for help on using the changeset viewer.