mirror of
https://github.com/FDOS/kernel.git
synced 2025-07-27 15:54:06 +02:00
sys, boot: mark additional magic offsets
This commit is contained in:
parent
eb75bea6c1
commit
4ae6f22249
@ -264,6 +264,7 @@ real_start:
|
|||||||
jmp word 0x1FE0:cont
|
jmp word 0x1FE0:cont
|
||||||
|
|
||||||
loadseg_off dw 0
|
loadseg_off dw 0
|
||||||
|
magicoffset "loadseg", 5Ch, 5Ch
|
||||||
loadseg_seg dw LOADSEG
|
loadseg_seg dw LOADSEG
|
||||||
|
|
||||||
cont:
|
cont:
|
||||||
@ -276,6 +277,7 @@ cont:
|
|||||||
; in DL, however we work around this in SYS.COM by NOP'ing out the use of DL
|
; in DL, however we work around this in SYS.COM by NOP'ing out the use of DL
|
||||||
; (formerly we checked for [drive]==0xff; update sys.c if code moves)
|
; (formerly we checked for [drive]==0xff; update sys.c if code moves)
|
||||||
;
|
;
|
||||||
|
magicoffset "set unit", 66h, 66h
|
||||||
mov [drive], dl ; rely on BIOS drive number in DL
|
mov [drive], dl ; rely on BIOS drive number in DL
|
||||||
|
|
||||||
mov LBA_SIZE, 10h
|
mov LBA_SIZE, 10h
|
||||||
@ -616,6 +618,7 @@ do_int13_read:
|
|||||||
|
|
||||||
times 0x01f1-$+$$ db 0
|
times 0x01f1-$+$$ db 0
|
||||||
|
|
||||||
|
magicoffset "kernel name", 1F1h, 1F1h
|
||||||
filename db "KERNEL SYS",0,0
|
filename db "KERNEL SYS",0,0
|
||||||
|
|
||||||
sign dw 0xAA55
|
sign dw 0xAA55
|
||||||
|
@ -1762,6 +1762,7 @@ void put_boot(SYSOptions *opts)
|
|||||||
|
|
||||||
{
|
{
|
||||||
int i = 0;
|
int i = 0;
|
||||||
|
/* magic offset: (first) kernel filename */
|
||||||
memset(&newboot[0x1f1], ' ', 11);
|
memset(&newboot[0x1f1], ' ', 11);
|
||||||
while (opts->kernel.kernel[i] && opts->kernel.kernel[i] != '.')
|
while (opts->kernel.kernel[i] && opts->kernel.kernel[i] != '.')
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user