Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/include Add a RETr(r) macro (indirect return th...
details: https://anonhg.NetBSD.org/src/rev/4b61f564898b
branches: trunk
changeset: 784462:4b61f564898b
user: matt <matt%NetBSD.org@localhost>
date: Mon Jan 28 23:47:38 2013 +0000
description:
Add a RETr(r) macro (indirect return through register r).
diffstat:
sys/arch/arm/include/asm.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 18f1865991f7 -r 4b61f564898b sys/arch/arm/include/asm.h
--- a/sys/arch/arm/include/asm.h Mon Jan 28 23:46:33 2013 +0000
+++ b/sys/arch/arm/include/asm.h Mon Jan 28 23:47:38 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: asm.h,v 1.16 2012/09/01 14:46:25 matt Exp $ */
+/* $NetBSD: asm.h,v 1.17 2013/01/28 23:47:38 matt Exp $ */
/*
* Copyright (c) 1990 The Regents of the University of California.
@@ -170,9 +170,11 @@
#if defined (_ARM_ARCH_4T)
# define RET bx lr
+# define RETr(r) bx r
# define RETc(c) __CONCAT(bx,c) lr
#else
# define RET mov pc, lr
+# define RETr(r) mov pc, r
# define RETc(c) __CONCAT(mov,c) pc, lr
#endif
Home |
Main Index |
Thread Index |
Old Index