diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-12-22 23:01:32 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-12-22 23:01:32 +0000 |
commit | 2b71c05b84e4c294a6de9eca51cc0b36d0514a8a (patch) | |
tree | 6959f0b5f7c361aa8cf40c22e9a684d724c4093e /sys/arch | |
parent | 2f911177811e54b9fbb15dae3d6807c0bd041b6b (diff) |
We never actually rely on storing %fp in tf_global[0] for clockframes. So
save ourselves an instruction and remove the pretty misleading comments.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc64/include/reg.h | 5 | ||||
-rw-r--r-- | sys/arch/sparc64/sparc64/locore.s | 3 |
2 files changed, 2 insertions, 6 deletions
diff --git a/sys/arch/sparc64/include/reg.h b/sys/arch/sparc64/include/reg.h index 33cc924f277..89560650b39 100644 --- a/sys/arch/sparc64/include/reg.h +++ b/sys/arch/sparc64/include/reg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: reg.h,v 1.4 2003/06/02 23:27:56 millert Exp $ */ +/* $OpenBSD: reg.h,v 1.5 2008/12/22 23:01:31 kettenis Exp $ */ /* $NetBSD: reg.h,v 1.8 2001/06/19 12:59:16 wiz Exp $ */ /* @@ -67,8 +67,6 @@ struct trapframe32 { * memory faults and tf_kstack to thread trapframes on the kernel * stack(s). If tf_kstack == 0 then this is the lowest level trap; * we came from user mode. - * (The slot tf_global[0] is used to store the %fp when this is used - * as a clockframe. This is known as `cheating'.) */ struct trapframe64 { int64_t tf_tstate; /* tstate register */ @@ -81,7 +79,6 @@ struct trapframe64 { char tf_pil; /* What IRQ we're handling */ char tf_oldpil; /* What our old SPL was */ int64_t tf_global[8]; /* global registers in trap's caller */ - /* n.b. tf_global[0] is used for fp when this is a clockframe */ int64_t tf_out[8]; /* output registers in trap's caller */ int64_t tf_local[8]; /* local registers in trap's caller */ int64_t tf_in[8]; /* in registers in trap's caller (for debug) */ diff --git a/sys/arch/sparc64/sparc64/locore.s b/sys/arch/sparc64/sparc64/locore.s index 7e390aa4e3a..6fdaa0e0e98 100644 --- a/sys/arch/sparc64/sparc64/locore.s +++ b/sys/arch/sparc64/sparc64/locore.s @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.s,v 1.155 2008/12/22 18:08:25 kettenis Exp $ */ +/* $OpenBSD: locore.s,v 1.156 2008/12/22 23:01:31 kettenis Exp $ */ /* $NetBSD: locore.s,v 1.137 2001/08/13 06:10:10 jdolecek Exp $ */ /* @@ -1573,7 +1573,6 @@ intr_setup_msg: stx %i5, [%sp + CC64FSZ + BIAS + TF_O + (5*8)] stx %i6, [%sp + CC64FSZ + BIAS + TF_O + (6*8)] - stx %i6, [%sp + CC64FSZ + BIAS + TF_G + (0*8)] ! Save fp in clockframe->cf_fp brz,pt %g3, 1f ! If we were in kernel mode start saving globals stx %i7, [%sp + CC64FSZ + BIAS + TF_O + (7*8)] |