protos: Fix retf frames for Linux and chainload

This commit is contained in:
mintsuki 2021-03-17 19:40:27 +01:00
parent 495e1a131c
commit 37a40880b2
2 changed files with 2 additions and 2 deletions

View File

@ -34,8 +34,8 @@ static void spinup(uint8_t drive) {
"and al, 0xfe\n\t" "and al, 0xfe\n\t"
"mov cr0, eax\n\t" "mov cr0, eax\n\t"
"mov eax, OFFSET 1f\n\t" "mov eax, OFFSET 1f\n\t"
"push eax\n\t"
"push 0\n\t" "push 0\n\t"
"push ax\n\t"
"retf\n\t" "retf\n\t"
"1:\n\t" "1:\n\t"
"mov ax, 0\n\t" "mov ax, 0\n\t"

View File

@ -42,8 +42,8 @@ static void spinup(uint16_t real_mode_code_seg, uint16_t kernel_entry_seg,
"and al, 0xfe\n\t" "and al, 0xfe\n\t"
"mov cr0, eax\n\t" "mov cr0, eax\n\t"
"mov eax, OFFSET 1f\n\t" "mov eax, OFFSET 1f\n\t"
"push eax\n\t"
"push 0\n\t" "push 0\n\t"
"push ax\n\t"
"retf\n\t" "retf\n\t"
"1:\n\t" "1:\n\t"
"mov ds, bx\n\t" "mov ds, bx\n\t"