Module Name:    src
Committed By:   skrll
Date:           Sun Nov  8 08:07:43 UTC 2020

Modified Files:
        src/sys/arch/riscv/riscv: locore.S

Log Message:
Use correct instruction to load address of exception_userexit into RA


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/riscv/riscv/locore.S

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/riscv/riscv/locore.S
diff -u src/sys/arch/riscv/riscv/locore.S:1.16 src/sys/arch/riscv/riscv/locore.S:1.17
--- src/sys/arch/riscv/riscv/locore.S:1.16	Wed Nov  4 20:05:47 2020
+++ src/sys/arch/riscv/riscv/locore.S	Sun Nov  8 08:07:43 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.S,v 1.16 2020/11/04 20:05:47 skrll Exp $ */
+/* $NetBSD: locore.S,v 1.17 2020/11/08 08:07:43 skrll Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -440,7 +440,7 @@ _C_LABEL(exception_userexit):
 	j	exception_kernexit
 
 trap_syscall:
-.L0:	PTR_L	ra, exception_userexit
+.L0:	PTR_LA	ra, exception_userexit
 	PTR_L	t0, L_PROC(tp)		// get proc struct
 	PTR_L	t0, P_MD_SYSCALL(t0)	// get syscall address from proc
 	jr	t0			// and jump to it

Reply via email to