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 Use _INVOKE_CERROR



details:   https://anonhg.NetBSD.org/src/rev/eaa06807feae
branches:  trunk
changeset: 789368:eaa06807feae
user:      matt <matt%NetBSD.org@localhost>
date:      Fri Aug 16 22:21:59 2013 +0000

description:
Use _INVOKE_CERROR
use stmia instead of two str
add END

diffstat:

 lib/libc/arch/arm/sys/pipe.S |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (22 lines):

diff -r 331633013f85 -r eaa06807feae lib/libc/arch/arm/sys/pipe.S
--- a/lib/libc/arch/arm/sys/pipe.S      Fri Aug 16 22:20:49 2013 +0000
+++ b/lib/libc/arch/arm/sys/pipe.S      Fri Aug 16 22:21:59 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pipe.S,v 1.7 2013/08/01 05:54:24 matt Exp $    */
+/*     $NetBSD: pipe.S,v 1.8 2013/08/16 22:21:59 matt Exp $    */
 
 /*-
  * Copyright (c) 1990 The Regents of the University of California.
@@ -40,8 +40,8 @@
 ENTRY(_pipe)
        mov     r2, r0
        SYSTRAP(pipe)
-       bcs     CERROR
-       str     r0, [r2, #0x0000]
-       str     r1, [r2, #0x0004]
-       mov     r0, #0x00000000
+       _INVOKE_CERROR()
+       stmia   r2!, {r0-r1}
+       movs    r0, #0
        RET
+END(_pipe)



Home | Main Index | Thread Index | Old Index