Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dev/dtrace/mips Use NAL (nop-and-link) t...
details: https://anonhg.NetBSD.org/src/rev/61140ea05b3d
branches: trunk
changeset: 982274:61140ea05b3d
user: simonb <simonb%NetBSD.org@localhost>
date: Wed Apr 07 01:54:31 2021 +0000
description:
Use NAL (nop-and-link) to get the current PC.
diffstat:
external/cddl/osnet/dev/dtrace/mips/dtrace_isa.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (15 lines):
diff -r 91acab2cf630 -r 61140ea05b3d external/cddl/osnet/dev/dtrace/mips/dtrace_isa.c
--- a/external/cddl/osnet/dev/dtrace/mips/dtrace_isa.c Tue Apr 06 22:21:53 2021 +0000
+++ b/external/cddl/osnet/dev/dtrace/mips/dtrace_isa.c Wed Apr 07 01:54:31 2021 +0000
@@ -107,9 +107,8 @@
ra = (register_t)(intptr_t)__builtin_return_address(0);
__asm __volatile(
- "jal 99f\n"
- "nop\n"
- "99:\n"
+ "nal\n"
+ " nop\n"
"move %0, $31\n" /* get ra */
"move $31, %1\n" /* restore ra */
: "=r" (pc)
Home |
Main Index |
Thread Index |
Old Index