Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/sparc64 eliminate oldsp variable, and don't...
details: https://anonhg.NetBSD.org/src/rev/5860cba80c7e
branches: trunk
changeset: 554421:5860cba80c7e
user: christos <christos%NetBSD.org@localhost>
date: Tue Oct 28 01:10:50 2003 +0000
description:
eliminate oldsp variable, and don't save the original sp with STACK_OFFSET.
diffstat:
sys/arch/sparc64/sparc64/machdep.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 9120fc04751b -r 5860cba80c7e sys/arch/sparc64/sparc64/machdep.c
--- a/sys/arch/sparc64/sparc64/machdep.c Tue Oct 28 00:55:28 2003 +0000
+++ b/sys/arch/sparc64/sparc64/machdep.c Tue Oct 28 01:10:50 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: machdep.c,v 1.152 2003/10/27 00:16:24 christos Exp $ */
+/* $NetBSD: machdep.c,v 1.153 2003/10/28 01:10:50 christos Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.152 2003/10/27 00:16:24 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.153 2003/10/28 01:10:50 christos Exp $");
#include "opt_ddb.h"
#include "opt_compat_netbsd.h"
@@ -536,7 +536,6 @@
sig_t catcher = SIGACTION(p, sig).sa_handler;
struct trapframe *tf = l->l_md.md_tf;
struct rwindow *newsp;
- struct rwindow *oldsp = (void *)(tf->tf_out[6] + STACK_OFFSET);
/* Allocate an aligned sigframe */
fp = (void *)((u_long)(fp - 1) & ~0x0f);
@@ -573,7 +572,8 @@
newsp = (struct rwindow *)((u_long)fp - CCFSZ);
if (copyout(&ksi->ksi_info, &fp->sf_si, sizeof(ksi->ksi_info)) != 0 ||
copyout(&uc, &fp->sf_uc, ucsz) != 0 ||
- copyout(&oldsp, &newsp->rw_in[6], sizeof(oldsp)) != 0) {
+ copyout(&tf->tf_out[6], &newsp->rw_in[6],
+ sizeof(tf->tf_out[6])) != 0) {
/*
* Process has trashed its stack; give it an illegal
* instruction to halt it in its tracks.
Home |
Main Index |
Thread Index |
Old Index