Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/arch/mips Use .set noreorder and use reg names.



details:   https://anonhg.NetBSD.org/src/rev/e4ba96434829
branches:  trunk
changeset: 958809:e4ba96434829
user:      simonb <simonb%NetBSD.org@localhost>
date:      Thu Jan 21 00:56:41 2021 +0000

description:
Use .set noreorder and use reg names.

atf- lib/libc/sys/t_mprotect mprotect_mremap_exec is a bit happier now.

diffstat:

 tests/lib/libc/arch/mips/return_one.S |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r a1341bea40d9 -r e4ba96434829 tests/lib/libc/arch/mips/return_one.S
--- a/tests/lib/libc/arch/mips/return_one.S     Thu Jan 21 00:38:28 2021 +0000
+++ b/tests/lib/libc/arch/mips/return_one.S     Thu Jan 21 00:56:41 2021 +0000
@@ -1,11 +1,13 @@
-/*     $NetBSD: return_one.S,v 1.2 2019/02/14 10:36:33 mrg Exp $ */
+/*     $NetBSD: return_one.S,v 1.3 2021/01/21 00:56:41 simonb Exp $ */
 
 #include <machine/asm.h>
 
+.set noreorder
+
 .globl return_one, return_one_end;
 
 return_one:
-       jr      $31
-       li      $2,1
+       jr      ra
+        li     v0,1
 
 return_one_end:



Home | Main Index | Thread Index | Old Index