protos: Fix retf frames for Linux and chainload
This commit is contained in:
parent
495e1a131c
commit
37a40880b2
|
@ -34,8 +34,8 @@ static void spinup(uint8_t drive) {
|
|||
"and al, 0xfe\n\t"
|
||||
"mov cr0, eax\n\t"
|
||||
"mov eax, OFFSET 1f\n\t"
|
||||
"push eax\n\t"
|
||||
"push 0\n\t"
|
||||
"push ax\n\t"
|
||||
"retf\n\t"
|
||||
"1:\n\t"
|
||||
"mov ax, 0\n\t"
|
||||
|
|
|
@ -42,8 +42,8 @@ static void spinup(uint16_t real_mode_code_seg, uint16_t kernel_entry_seg,
|
|||
"and al, 0xfe\n\t"
|
||||
"mov cr0, eax\n\t"
|
||||
"mov eax, OFFSET 1f\n\t"
|
||||
"push eax\n\t"
|
||||
"push 0\n\t"
|
||||
"push ax\n\t"
|
||||
"retf\n\t"
|
||||
"1:\n\t"
|
||||
"mov ds, bx\n\t"
|
||||
|
|
Loading…
Reference in New Issue