From 4dd016126778eb97ae58d3bc60ef7a44c09ada88 Mon Sep 17 00:00:00 2001 From: bjh21 Date: Tue, 7 Aug 2001 22:56:09 +0000 Subject: [PATCH] Use STACKALIGN rather than &=~7. --- sys/arch/arm/arm/sig_machdep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/arch/arm/arm/sig_machdep.c b/sys/arch/arm/arm/sig_machdep.c index 909321f79cf8..8cf1bbbd3f33 100644 --- a/sys/arch/arm/arm/sig_machdep.c +++ b/sys/arch/arm/arm/sig_machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: sig_machdep.c,v 1.6 2001/08/06 22:32:23 bjh21 Exp $ */ +/* $NetBSD: sig_machdep.c,v 1.7 2001/08/07 22:56:09 bjh21 Exp $ */ /* * Copyright (c) 1994-1998 Mark Brinicombe. @@ -45,7 +45,7 @@ #include -__KERNEL_RCSID(0, "$NetBSD: sig_machdep.c,v 1.6 2001/08/06 22:32:23 bjh21 Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sig_machdep.c,v 1.7 2001/08/07 22:56:09 bjh21 Exp $"); #include /* XXX only needed by syscallargs.h */ #include @@ -101,7 +101,7 @@ sendsig(sig_t catcher, int sig, sigset_t *mask, u_long code) else fp = (struct sigframe *)tf->tf_usr_sp; fp--; - (u_int)fp &= ~7; + (u_int)fp = STACKALIGN(fp); /* Build stack frame for signal trampoline. */ frame.sf_signum = sig;