diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2024-04-08 20:07:54 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2024-04-08 20:07:54 +0000 |
commit | b7de4a2dc9a351e983468226e98827285d9ef110 (patch) | |
tree | fffdebfb69f8d3dc70536520d4f3842ef0489f10 /sys/arch/sparc64/include | |
parent | 32135105610242bc66ce3dd0ed2445bd40e23ecb (diff) |
Remove unused tf_fault and tf_kstack members from struct trapframe. These
fields were (seldom) written to but never used for anything.
ok kettenis@
Diffstat (limited to 'sys/arch/sparc64/include')
-rw-r--r-- | sys/arch/sparc64/include/frame.h | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/arch/sparc64/include/frame.h b/sys/arch/sparc64/include/frame.h index 8d9542356f4..a5e39c6d0c9 100644 --- a/sys/arch/sparc64/include/frame.h +++ b/sys/arch/sparc64/include/frame.h @@ -1,4 +1,4 @@ -/* $OpenBSD: frame.h,v 1.10 2024/03/29 21:04:37 miod Exp $ */ +/* $OpenBSD: frame.h,v 1.11 2024/04/08 20:07:53 miod Exp $ */ /* $NetBSD: frame.h,v 1.9 2001/03/04 09:28:35 mrg Exp $ */ /* @@ -84,18 +84,12 @@ struct frame { #define v9next_frame(f) ((struct frame*)(f->fr_fp+BIAS)) /* - * The v9 trapframe. Since we don't get a free register window with - * each trap we need some way to keep track of pending traps. We use - * tf_fault to save the faulting address for 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 v9 trapframe. */ struct trapframe { int64_t tf_tstate; /* tstate register */ int64_t tf_pc; /* return pc */ int64_t tf_npc; /* return npc */ - int64_t tf_fault; /* faulting addr -- need somewhere to save it */ - int64_t tf_kstack; /* kernel stack of prev tf */ int tf_y; /* %y register -- 32-bits */ short tf_tt; /* What type of trap this was */ char tf_pil; /* What IRQ we're handling */ |