mirror of
https://github.com/reactos/reactos.git
synced 2024-09-29 05:54:05 +00:00
[FAT32]
Add some code that does ... nothing, but fixes 2nd stage boot with msvc. To figure out why this is needed, is left as an excercise to the reader :) svn path=/trunk/; revision=52496
This commit is contained in:
parent
47003f6ddb
commit
1fbeaa3bac
|
@ -194,6 +194,13 @@ ReadSectorsSetupDiskAddressPacket:
|
||||||
mov dl, byte ptr BP_REL(BootDrive) // Drive number
|
mov dl, byte ptr BP_REL(BootDrive) // Drive number
|
||||||
mov ah, HEX(42) // Int 13h, AH = 42h - Extended Read
|
mov ah, HEX(42) // Int 13h, AH = 42h - Extended Read
|
||||||
int HEX(13) // Call BIOS
|
int HEX(13) // Call BIOS
|
||||||
|
|
||||||
|
/* This code "fixes" loading the MSVC built kernel */
|
||||||
|
pushad
|
||||||
|
mov si, offset msgNull
|
||||||
|
call PutChars
|
||||||
|
popad
|
||||||
|
|
||||||
jc PrintDiskError // If the read failed then abort
|
jc PrintDiskError // If the read failed then abort
|
||||||
|
|
||||||
add sp, 16 // Remove disk address packet from stack
|
add sp, 16 // Remove disk address packet from stack
|
||||||
|
@ -302,6 +309,8 @@ msgFileSystemError:
|
||||||
.ascii "File system error", CR, LF, NUL
|
.ascii "File system error", CR, LF, NUL
|
||||||
msgAnyKey:
|
msgAnyKey:
|
||||||
.ascii "Press any key to restart", CR, LF, NUL
|
.ascii "Press any key to restart", CR, LF, NUL
|
||||||
|
msgNull:
|
||||||
|
.ascii NUL
|
||||||
|
|
||||||
.org 509 // Pad to 509 bytes
|
.org 509 // Pad to 509 bytes
|
||||||
|
|
||||||
|
@ -527,7 +536,7 @@ msgFreeLdr:
|
||||||
filename:
|
filename:
|
||||||
.ascii "FREELDR SYS"
|
.ascii "FREELDR SYS"
|
||||||
msgLoading:
|
msgLoading:
|
||||||
.ascii "Loading FreeLoader...\r\n", CR, LF, NUL
|
.ascii "Loading FreeLoader...", CR, LF, NUL
|
||||||
|
|
||||||
.org 1022 // Pad to 1022 bytes
|
.org 1022 // Pad to 1022 bytes
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue