diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 1999-11-26 16:21:02 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 1999-11-26 16:21:02 +0000 |
commit | 2ef84c0038dbbe959501569e9a1f5f0bed30c182 (patch) | |
tree | 3334be8b7d9014128ca972e550731116199cb8c4 /sys/arch/sparc | |
parent | bdc31518909df807a0119b36caaea09d83af95cb (diff) |
Use round_page instead of some home-made macro.
Diffstat (limited to 'sys/arch/sparc')
-rw-r--r-- | sys/arch/sparc/sparc/machdep.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/arch/sparc/sparc/machdep.c b/sys/arch/sparc/sparc/machdep.c index 5c697466a18..152a2331e2b 100644 --- a/sys/arch/sparc/sparc/machdep.c +++ b/sys/arch/sparc/sparc/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.42 1999/10/29 14:36:02 art Exp $ */ +/* $OpenBSD: machdep.c,v 1.43 1999/11/26 16:21:01 art Exp $ */ /* $NetBSD: machdep.c,v 1.85 1997/09/12 08:55:02 pk Exp $ */ /* @@ -1135,13 +1135,11 @@ oldmon_w_trace(va) #endif write_user_windows(); -#define round_up(x) (( (x) + (NBPG-1) ) & (~(NBPG-1)) ) - printf("\nstack trace with sp = 0x%lx\n", va); - stop = round_up(va); + stop = round_page(va); printf("stop at 0x%lx\n", stop); fp = (struct frame *) va; - while (round_up((u_long) fp) == stop) { + while (round_page((u_long) fp) == stop) { printf(" 0x%x(0x%x, 0x%x, 0x%x, 0x%x, 0x%x, 0x%x, 0x%x) fp %p\n", fp->fr_pc, fp->fr_arg[0], fp->fr_arg[1], fp->fr_arg[2], fp->fr_arg[3], fp->fr_arg[4], fp->fr_arg[5], fp->fr_arg[6], fp->fr_fp); |