Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/arm/sys Add $NetBSD$ tag. Use ip to save r1 i...
details: https://anonhg.NetBSD.org/src/rev/4e06aea4c996
branches: trunk
changeset: 782804:4e06aea4c996
user: matt <matt%NetBSD.org@localhost>
date: Tue Nov 20 22:02:46 2012 +0000
description:
Add $NetBSD$ tag. Use ip to save r1 instead of the stack.
diffstat:
lib/libc/arch/arm/sys/__aeabi_read_tp.S | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r dfc06e4a30db -r 4e06aea4c996 lib/libc/arch/arm/sys/__aeabi_read_tp.S
--- a/lib/libc/arch/arm/sys/__aeabi_read_tp.S Tue Nov 20 21:36:35 2012 +0000
+++ b/lib/libc/arch/arm/sys/__aeabi_read_tp.S Tue Nov 20 22:02:46 2012 +0000
@@ -1,13 +1,20 @@
+/* $NetBSD: __aeabi_read_tp.S,v 1.3 2012/11/20 22:02:46 matt Exp $ */
+
#include "SYS.h"
+/*
+ * Implementations of this function should corrupt only the result register
+ * (r0) and the non-parameter integer core registers allowed to be corrupted
+ * by the [AAPCS] (ip, lr, and CPSR).
+ */
ENTRY(__aeabi_read_tp)
- mrc p15, 0, r0, c13, c0, 3
+ mrc p15, 0, r0, c13, c0, 3
#ifndef _ARM_ARCH_6
- cmp r0, #0 /* was it zero? */
+ cmp r0, #0 /* was it zero? */
RETc(ne) /* return it's not zero */
- push {r1} /* syscall zeroes r1 */
+ mov ip, r1 /* syscall zeroes r1 */
SYSTRAP(_lwp_getprivate) /* can't fail */
- pop {r1} /* restore r1 */
+ mov r1, ip /* restore r1 */
#endif
RET
_END(__aeabi_read_tp)
Home |
Main Index |
Thread Index |
Old Index