stage1: fix segment order for BIOS int
This commit is contained in:
parent
4c8a00abc4
commit
b175190db1
1 changed files with 4 additions and 4 deletions
|
@ -34,8 +34,8 @@ GLOBL __do_bios_int
|
|||
pop %edx // '4 (44 <- 48)
|
||||
pop %eax // '3 (40 <- 44)
|
||||
|
||||
pop %es // '2 (38 <- 40)
|
||||
pop %ds // '2 (36 <- 38)
|
||||
pop %ds // '2 (38 <- 40)
|
||||
pop %es // '2 (36 <- 38)
|
||||
|
||||
/* call that polymorphism! */
|
||||
.byte 0xcd /* opcode for `int imm8` */
|
||||
|
@ -44,8 +44,8 @@ GLOBL __bios_int_number, object
|
|||
|
||||
/* be careful not to touch EFLAGS now because that's our return value */
|
||||
|
||||
push %ds // '2 (36 -> 38)
|
||||
push %es // '2 (38 -> 40)
|
||||
push %es // '2 (36 -> 38)
|
||||
push %ds // '2 (38 -> 40)
|
||||
|
||||
push %eax // '3 (40 -> 44)
|
||||
push %edx // '4 (44 -> 48)
|
||||
|
|
Loading…
Reference in a new issue