git: 9front

Download patch

ref: 1ded64db57d739c01d98b2629d972488b236da77
parent: be5cdf69f40f121de7a880bbfeef310b9d6acc17
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Jan 20 12:15:26 EST 2024

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

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