summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/include
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2003-05-18 15:57:48 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2003-05-18 15:57:48 +0000
commit0104529bd466688238c5b5bc13cc1adcf0a5a682 (patch)
treef392f92ae34f837ee797809733c172fad912bdc4 /sys/arch/hppa/include
parent2445b5bb89a257c9aec8e304a44845476b289008 (diff)
save the fpu state for the signal handler. this is essential
as the fpu regs can be used by the gcc even for non-fpu means and data copying. rearrange the sigcontext a bit to include only the general registers that are needed restoring upon return and thus less waste of space and make up some space for the fpu regs. ALL software that used the signal context on the stack needs at least rebuilding now. a new snap has bin built as well.
Diffstat (limited to 'sys/arch/hppa/include')
-rw-r--r--sys/arch/hppa/include/signal.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/hppa/include/signal.h b/sys/arch/hppa/include/signal.h
index 875a6b7b3b2..fb6635c9dd2 100644
--- a/sys/arch/hppa/include/signal.h
+++ b/sys/arch/hppa/include/signal.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: signal.h,v 1.2 2002/02/06 19:39:20 mickey Exp $ */
+/* $OpenBSD: signal.h,v 1.3 2003/05/18 15:57:47 mickey Exp $ */
/*
* Copyright (c) 1994, The University of Utah and
@@ -44,10 +44,10 @@ struct sigcontext {
int sc_onstack; /* sigstack state to restore */
int sc_mask; /* signal mask to restore */
int sc_ps; /* psl to restore */
- int sc_sp; /* sp to restore */
int sc_fp; /* fp to restore */
int sc_pcoqh; /* pc offset queue (head) to restore */
int sc_pcoqt; /* pc offset queue (tail) to restore */
- int sc_resv[5];
- int sc_tf[64];
+ int sc_resv[2];
+ int sc_regs[32];
+ int sc_fpregs[64];
};