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 Save r3 instead of r4 when calling CERROR ...



details:   https://anonhg.NetBSD.org/src/rev/189520e636d6
branches:  trunk
changeset: 789371:189520e636d6
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Aug 16 22:30:28 2013 +0000

description:
Save r3 instead of r4 when calling CERROR in thumb mode.

diffstat:

 lib/libc/arch/arm/SYS.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 361efc248c26 -r 189520e636d6 lib/libc/arch/arm/SYS.h
--- a/lib/libc/arch/arm/SYS.h   Fri Aug 16 22:28:05 2013 +0000
+++ b/lib/libc/arch/arm/SYS.h   Fri Aug 16 22:30:28 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: SYS.h,v 1.13 2013/08/16 22:20:49 matt Exp $    */
+/*     $NetBSD: SYS.h,v 1.14 2013/08/16 22:30:28 matt Exp $    */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -84,7 +84,7 @@
 #define        _INVOKE_CERROR()        bcs CERROR
 #else
 #define        _INVOKE_CERROR()        \
-       bcc 86f; push {r4,lr}; bl CERROR; pop {r4,pc}; 86:
+       bcc 86f; push {r3,lr}; bl CERROR; pop {r3,pc}; 86:
 #endif
 #define _SYSCALL(x, y)                                                 \
        _SYSCALL_NOERROR(x,y);                                          \



Home | Main Index | Thread Index | Old Index