summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-03-17 18:38:44 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-03-17 18:38:44 +0000
commit62bd2075b0b1469654e6939f5e7f54e66e82713c (patch)
treeb524f984c0f5e94d1f4499ab73febbd03e66fff5 /sys/arch
parent3d7bb245c0b70b48b1a760bd15001838d30f58d3 (diff)
In PT_{GET,SET}REGS there is no reason to not get/set %l* and %i*.
This change will break debuggers, so if you have any, rebuild.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/sparc64/include/reg.h8
-rw-r--r--sys/arch/sparc64/sparc64/process_machdep.c4
2 files changed, 8 insertions, 4 deletions
diff --git a/sys/arch/sparc64/include/reg.h b/sys/arch/sparc64/include/reg.h
index d79726c6661..4026348d993 100644
--- a/sys/arch/sparc64/include/reg.h
+++ b/sys/arch/sparc64/include/reg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: reg.h,v 1.1 2001/08/18 04:16:40 jason Exp $ */
+/* $OpenBSD: reg.h,v 1.2 2002/03/17 18:38:43 art Exp $ */
/* $NetBSD: reg.h,v 1.8 2001/06/19 12:59:16 wiz Exp $ */
/*
@@ -129,8 +129,10 @@ struct reg64 {
int64_t r_pc; /* return pc */
int64_t r_npc; /* return npc */
int r_y; /* %y register -- 32-bits */
- int64_t r_global[8]; /* global registers in trap's caller */
- int64_t r_out[8]; /* output registers in trap's caller */
+ int64_t r_global[8]; /* %g* registers in trap's caller */
+ int64_t r_out[8]; /* %o* registers in trap's caller */
+ int64_t r_local[8]; /* %l* registers in trap's caller */
+ int64_t r_in[8]; /* %i* registers in trap's caller */
};
#include <machine/fsr.h>
diff --git a/sys/arch/sparc64/sparc64/process_machdep.c b/sys/arch/sparc64/sparc64/process_machdep.c
index 0efd1c967a9..ade3346b299 100644
--- a/sys/arch/sparc64/sparc64/process_machdep.c
+++ b/sys/arch/sparc64/sparc64/process_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: process_machdep.c,v 1.3 2002/03/14 00:42:24 miod Exp $ */
+/* $OpenBSD: process_machdep.c,v 1.4 2002/03/17 18:38:43 art Exp $ */
/* $NetBSD: process_machdep.c,v 1.10 2000/09/26 22:05:50 eeh Exp $ */
/*
@@ -97,6 +97,8 @@ process_read_regs(p, regs)
for (i = 0; i < 8; i++) {
regs->r_global[i] = tf->tf_global[i];
regs->r_out[i] = tf->tf_out[i];
+ regs->r_local[i] = tf->tf_local[i];
+ regs->r_in[i] = tf->tf_in[i];
}
return (0);
}