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

Removed Linux noise [v1.1.1-testing]

This stuff was already commented out and not applicable anymore.
It was used to directly boot Linux kernels from FAT some eons ago.
Linux is supported by chain-loading GRUB.

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

    r84 r96  
    3636    call    PART_FixUpSelectionNumber
    3737    mov     CFG_PartAutomatic, dl
    38 
    39 ; [Linux support removed since v1.02]
    40 ;   ; Fix-Up Linux Kernel Partition - If lost, search for FAT-16
    41 ;   mov     bl, 06h
    42 ;   mov     dl, CFG_LinuxKrnlPartition
    43 ;   call    PART_FixUpPartitionNumber
    44 ;   mov     CFG_LinuxKrnlPartition, dl
    45 ;
    46 ;   ; Fix-Up Linux Root Partition - If lost, search for Linux partition (83h)
    47 ;   mov     bl, 83h
    48 ;   mov     dl, CFG_LinuxRootPartition
    49 ;   call    PART_FixUpPartitionNumber
    50 ;   mov     CFG_LinuxRootPartition, dl
    5138   ret
    5239PART_FixUpDefaultPartitionValues EndP
     
    264251    PCMPP_NoResumeBootSeqInclude:
    265252
    266 ; [Linux support removed since v1.02]
    267 ;   ; Now include all Linux Kernels, if any available...
    268 ;   movzx   cx, LINUX_KernelNo
    269 ;   or      cx, cx
    270 ;   jz      PCMPP_NoLinuxKernels
    271 ;   mov     ax, offset LINUX_KernelEntries
    272 ;  PCMPP_KernelLoop:
    273 ;      mov     ds:[bx], ax
    274 ;      add     bx, 2
    275 ;      add     ax, LocIPT_LenOfIPT
    276 ;   dec     cx
    277 ;   jnz     PCMPP_KernelLoop
    278 ;  PCMPP_NoLinuxKernels:
    279 
    280253        ;movzx   cx, CFG_Partitions ; LocIPT_MaxPartitions
    281254        mov   cl,CFG_Partitions ; LocIPT_MaxPartitions
     
    378351        je      PCTS_IsFloppy                       ; Is Floppy
    379352
    380 ; [Linux support removed since v1.02]
    381 ;   cmp     ax, offset LINUX_KernelEntries
    382 ;   jae     PCTS_IsKernelEntry
    383 
    384353        ;
    385354        ; Is partition, AX contains pointer to IPT entry
     
    390359        mov     dl, al                          ; Index in IPT
    391360        ret
    392 
    393 ; [Linux support removed since v1.02]
    394 ;  PCTS_IsKernelEntry:
    395 ;   mov     dl, 0FDh
    396 ;   ret
    397361
    398362    PCTS_IsBIOSbootSeq:
     
    469433; Destroyed: AX
    470434PART_GetSizeElementPointer      Proc Near   Uses bx
    471 ; [Linux support removed since v1.02]
    472 ;   cmp     ax, offset LINUX_KernelEntries
    473 ;   jae     PGSEP_IsKernelEntry
    474435        mov     si, offset PartitionSizeTable
    475436        sub     ax, offset PartitionTable
    476 ;   jmp     PGSEP_Continue
    477 ; [Linux support removed since v1.02]
    478 ;  PGSEP_IsKernelEntry:
    479 ;   mov     si, offset LINUX_KernelSizeTable
    480 ;   sub     ax, offset LINUX_KernelEntries
    481 ;  PGSEP_Continue:
    482437        mov     bl, LocIPT_LenOfIPT
    483438        div     bl                            ; Divide with IPTlength
     
    10531008        call    MBR_Teletype
    10541009
    1055 
    1056 ; [Linux support removed since v1.02]
    1057 ;      cmp     dh, 0FDh
    1058 ;      je      PSP_IsKernel
    1059 
    10601010        ;~ pusha
    10611011        ;~ call    MBR_Teletype
     
    10771027        call    MBR_TeletypeVolName
    10781028        jmp     PSP_IsFloppyCDROMetc                                                ; JUMPS BUITEN SI POP !!! AANPASSEN
    1079 
    1080 
    1081 ; [Linux support removed since v1.02]
    1082 ;    PSP_IsKernel:
    1083 ;      IFDEF ReleaseCode
    1084 ;         ; Save configuration on HDD boots (save CFG_LinuxLastKernel)
    1085 ;         call    DriveIO_SaveConfiguration
    1086 ;      ENDIF
    1087 ;      call    MBR_Teletype       ; Prints out BootingNow2 including KernelName
    1088 ;      mov     si, offset TXT_BootingNowKernel
    1089 ;      call    MBR_Teletype
    1090 ;      jmp     PSP_IsFloppyCDROMetc
    10911029
    10921030
     
    14171355        je      PSP_ResumeBIOSbootSeq
    14181356
    1419 ; [Linux support removed since v1.02]
    1420 ;   cmp     al, 0FDh                        ; Kernel-Booting ?
    1421 ;   je      PSP_KernelBooting
    1422 
    14231357        jmp     PSP_StartNormal
    14241358
     
    14281362        dw      0FFF0h
    14291363        dw      0F000h
    1430 
    1431 ; [Linux support removed since v1.02]
    1432 ;  PSP_KernelBooting:
    1433 ;   call    LINUX_LoadKernel              ; DS:SI - Entry Pointer to Kernel
    1434 ;   db      0EAh                          ; if return to here -> Reboot
    1435 ;   dw      0FFF0h
    1436 ;   dw      0F000h
    1437 
    14381364
    14391365
Note: See TracChangeset for help on using the changeset viewer.