pc: use JMPF instead of indirect jump for going to syscall()

This commit is contained in:
cinap_lenrek 2024-01-20 17:15:26 +00:00
parent 72aa282792
commit 1a73b594e6

View file

@ -1071,11 +1071,9 @@ TEXT _syscallintr(SB), $0
MOVW AX, DS MOVW AX, DS
MOVW AX, ES MOVW AX, ES
MOVL $syscall(SB), AX
PUSHL SP /* Ureg* argument to syscall */ PUSHL SP /* Ureg* argument to syscall */
PUSHL $forkret(SB) /* return pc */ PUSHL $forkret(SB) /* return pc */
JMP *AX JMPF syscall(SB)
TEXT vectortable(SB), $0 TEXT vectortable(SB), $0
CALL _strayintr(SB); BYTE $0x00 /* divide error */ CALL _strayintr(SB); BYTE $0x00 /* divide error */