Module Name:    src
Committed By:   matt
Date:           Fri Aug 16 22:30:28 UTC 2013

Modified Files:
        src/lib/libc/arch/arm: SYS.h

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


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/lib/libc/arch/arm/SYS.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/arch/arm/SYS.h
diff -u src/lib/libc/arch/arm/SYS.h:1.13 src/lib/libc/arch/arm/SYS.h:1.14
--- src/lib/libc/arch/arm/SYS.h:1.13	Fri Aug 16 22:20:49 2013
+++ src/lib/libc/arch/arm/SYS.h	Fri Aug 16 22:30:28 2013
@@ -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);						\

Reply via email to