Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/arch/sh5/gen Round-up the supplied length *before* ...



details:   https://anonhg.NetBSD.org/src/rev/26a4ef8598a4
branches:  trunk
changeset: 536087:26a4ef8598a4
user:      scw <scw%NetBSD.org@localhost>
date:      Fri Sep 06 15:31:19 2002 +0000

description:
Round-up the supplied length *before* aligning.

diffstat:

 lib/libc/arch/sh5/gen/alloca.S |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 30c5b60eea0f -r 26a4ef8598a4 lib/libc/arch/sh5/gen/alloca.S
--- a/lib/libc/arch/sh5/gen/alloca.S    Fri Sep 06 15:17:53 2002 +0000
+++ b/lib/libc/arch/sh5/gen/alloca.S    Fri Sep 06 15:31:19 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: alloca.S,v 1.1 2002/07/05 13:31:30 scw Exp $   */
+/*     $NetBSD: alloca.S,v 1.2 2002/09/06 15:31:19 scw Exp $   */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -39,6 +39,7 @@
 
 ENTRY_NOPROFILE(alloca)
        ptabs/l r18, tr0
+       addi    r2, 15, r2
        andi    r2, -16, r2
        sub     r15, r2, r15
        or      r15, r63, r2



Home | Main Index | Thread Index | Old Index