Module Name: src
Committed By: maya
Date: Sat Apr 13 16:08:54 UTC 2019
Modified Files:
src/lib/libc/arch/riscv: SYS.h
Log Message:
Looks like libc is too big to be able to use j. use a longer distance jump
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/lib/libc/arch/riscv/SYS.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/arch/riscv/SYS.h
diff -u src/lib/libc/arch/riscv/SYS.h:1.2 src/lib/libc/arch/riscv/SYS.h:1.3
--- src/lib/libc/arch/riscv/SYS.h:1.2 Fri Mar 27 06:44:28 2015
+++ src/lib/libc/arch/riscv/SYS.h Sat Apr 13 16:08:54 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: SYS.h,v 1.2 2015/03/27 06:44:28 matt Exp $ */
+/* $NetBSD: SYS.h,v 1.3 2019/04/13 16:08:54 maya Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -33,7 +33,7 @@
#include <machine/asm.h>
#define SYSTRAP(x) li t6,SYS_ ## x; scall
-#define JUMP_TO_CERROR() j _C_LABEL(__cerror)
+#define JUMP_TO_CERROR() tail _C_LABEL(__cerror)
/*
* Do a syscall that cannot fail (sync, get{p,u,g,eu,eg)id)