Changeset 96 for trunk/bootcode/regular
- Timestamp:
- Apr 8, 2017, 12:26:41 AM (8 years ago)
- Location:
- trunk/bootcode/regular
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bootcode/regular/bootmenu.asm
r73 r96 955 955 mov Menu_EntryAutomatic, dl 956 956 957 ;~ ; [Linux support removed since v1.02]958 ;~ ; Okay, now we check if Default/Last Kernel Partition Name is available...959 ;~ ; if so, simply set Menu_EntryDefault/Menu_EntryLast.960 ;~ mov si, offset CFG_LinuxDefaultKernel961 ;~ call LINUX_SearchKernelName ; DL - Filtered Entry No962 ;~ cmp dl, 0FFh963 ;~ je BMRMV_DefaultKernelNF964 ;~ mov Menu_EntryDefault, dl965 ;~ BMRMV_DefaultKernelNF:966 ;~ mov si, offset CFG_LinuxLastKernel967 ;~ call LINUX_SearchKernelName ; DL - Filtered Entry No968 ;~ cmp dl, 0FFh969 ;~ je BMRMV_LastKernelNF970 ;~ mov Menu_EntryLast, dl971 ;~ BMRMV_LastKernelNF:972 973 957 ; restlichen Variablen berechnen... 974 958 mov dl, Menu_TotalParts -
trunk/bootcode/regular/partmain.asm
r84 r96 36 36 call PART_FixUpSelectionNumber 37 37 mov CFG_PartAutomatic, dl 38 39 ; [Linux support removed since v1.02]40 ; ; Fix-Up Linux Kernel Partition - If lost, search for FAT-1641 ; mov bl, 06h42 ; mov dl, CFG_LinuxKrnlPartition43 ; call PART_FixUpPartitionNumber44 ; mov CFG_LinuxKrnlPartition, dl45 ;46 ; ; Fix-Up Linux Root Partition - If lost, search for Linux partition (83h)47 ; mov bl, 83h48 ; mov dl, CFG_LinuxRootPartition49 ; call PART_FixUpPartitionNumber50 ; mov CFG_LinuxRootPartition, dl51 38 ret 52 39 PART_FixUpDefaultPartitionValues EndP … … 264 251 PCMPP_NoResumeBootSeqInclude: 265 252 266 ; [Linux support removed since v1.02]267 ; ; Now include all Linux Kernels, if any available...268 ; movzx cx, LINUX_KernelNo269 ; or cx, cx270 ; jz PCMPP_NoLinuxKernels271 ; mov ax, offset LINUX_KernelEntries272 ; PCMPP_KernelLoop:273 ; mov ds:[bx], ax274 ; add bx, 2275 ; add ax, LocIPT_LenOfIPT276 ; dec cx277 ; jnz PCMPP_KernelLoop278 ; PCMPP_NoLinuxKernels:279 280 253 ;movzx cx, CFG_Partitions ; LocIPT_MaxPartitions 281 254 mov cl,CFG_Partitions ; LocIPT_MaxPartitions … … 378 351 je PCTS_IsFloppy ; Is Floppy 379 352 380 ; [Linux support removed since v1.02]381 ; cmp ax, offset LINUX_KernelEntries382 ; jae PCTS_IsKernelEntry383 384 353 ; 385 354 ; Is partition, AX contains pointer to IPT entry … … 390 359 mov dl, al ; Index in IPT 391 360 ret 392 393 ; [Linux support removed since v1.02]394 ; PCTS_IsKernelEntry:395 ; mov dl, 0FDh396 ; ret397 361 398 362 PCTS_IsBIOSbootSeq: … … 469 433 ; Destroyed: AX 470 434 PART_GetSizeElementPointer Proc Near Uses bx 471 ; [Linux support removed since v1.02]472 ; cmp ax, offset LINUX_KernelEntries473 ; jae PGSEP_IsKernelEntry474 435 mov si, offset PartitionSizeTable 475 436 sub ax, offset PartitionTable 476 ; jmp PGSEP_Continue477 ; [Linux support removed since v1.02]478 ; PGSEP_IsKernelEntry:479 ; mov si, offset LINUX_KernelSizeTable480 ; sub ax, offset LINUX_KernelEntries481 ; PGSEP_Continue:482 437 mov bl, LocIPT_LenOfIPT 483 438 div bl ; Divide with IPTlength … … 1053 1008 call MBR_Teletype 1054 1009 1055 1056 ; [Linux support removed since v1.02]1057 ; cmp dh, 0FDh1058 ; je PSP_IsKernel1059 1060 1010 ;~ pusha 1061 1011 ;~ call MBR_Teletype … … 1077 1027 call MBR_TeletypeVolName 1078 1028 jmp PSP_IsFloppyCDROMetc ; JUMPS BUITEN SI POP !!! AANPASSEN 1079 1080 1081 ; [Linux support removed since v1.02]1082 ; PSP_IsKernel:1083 ; IFDEF ReleaseCode1084 ; ; Save configuration on HDD boots (save CFG_LinuxLastKernel)1085 ; call DriveIO_SaveConfiguration1086 ; ENDIF1087 ; call MBR_Teletype ; Prints out BootingNow2 including KernelName1088 ; mov si, offset TXT_BootingNowKernel1089 ; call MBR_Teletype1090 ; jmp PSP_IsFloppyCDROMetc1091 1029 1092 1030 … … 1417 1355 je PSP_ResumeBIOSbootSeq 1418 1356 1419 ; [Linux support removed since v1.02]1420 ; cmp al, 0FDh ; Kernel-Booting ?1421 ; je PSP_KernelBooting1422 1423 1357 jmp PSP_StartNormal 1424 1358 … … 1428 1362 dw 0FFF0h 1429 1363 dw 0F000h 1430 1431 ; [Linux support removed since v1.02]1432 ; PSP_KernelBooting:1433 ; call LINUX_LoadKernel ; DS:SI - Entry Pointer to Kernel1434 ; db 0EAh ; if return to here -> Reboot1435 ; dw 0FFF0h1436 ; dw 0F000h1437 1438 1364 1439 1365 -
trunk/bootcode/regular/partscan.asm
r94 r96 80 80 mov cx, LocIPT_MaxPartitions 81 81 rep movsb 82 83 ; [Linux support removed since v1.02]84 ; ; Search for any Linux partition and remember, if it got found...85 ; mov si, offset PartitionTable86 ; movzx cx, CFG_Partitions87 ; xor dl, dl ; DL - Is Linux here ?88 ; or cx, cx89 ; jz PSSFP_NoPartitions90 ; PSSFP_LinuxLoop:91 ; cmp bptr [si+LocIPT_SystemID], 083h ; Hard-Coded92 ; jne PSSFP_NoLinux93 ; mov dl, 1 ; Linux found...94 ; PSSFP_NoLinux:95 ; add si, LocIPT_LenOfIPT96 ; loop PSSFP_LinuxLoop97 ; PSSFP_NoPartitions:98 ; mov GotLinux, dl ; Set Flag99 82 100 83 ; ...and finally check, if we need to set a Drive-Letter
Note:
See TracChangeset
for help on using the changeset viewer.