summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2016-03-06 19:42:27 +0000
committermpi <mpi@openbsd.org>2016-03-06 19:42:27 +0000
commitb43ebd1336ec45c4f58736636aa17c117ac3cbe6 (patch)
tree97cfe7d9fc869abc26e28c0c5e0067b1ff6ca53e
parentDrop "rpath" promise. Now that pledge() is called after setlocale(), (diff)
downloadwireguard-openbsd-b43ebd1336ec45c4f58736636aa17c117ac3cbe6.tar.xz
wireguard-openbsd-b43ebd1336ec45c4f58736636aa17c117ac3cbe6.zip
Rename mips64's trap_frame into trapframe.
For coherency with other archs and in order to use it in MI code. ok visa@, tobiasu@
-rw-r--r--sys/arch/loongson/dev/bonito.c14
-rw-r--r--sys/arch/loongson/include/intr.h6
-rw-r--r--sys/arch/loongson/loongson/generic2e_machdep.c6
-rw-r--r--sys/arch/loongson/loongson/machdep.c4
-rw-r--r--sys/arch/loongson/loongson/yeeloong_machdep.c6
-rw-r--r--sys/arch/mips64/include/cpu.h18
-rw-r--r--sys/arch/mips64/include/db_machdep.h4
-rw-r--r--sys/arch/mips64/include/frame.h4
-rw-r--r--sys/arch/mips64/include/pcb.h4
-rw-r--r--sys/arch/mips64/include/proc.h4
-rw-r--r--sys/arch/mips64/include/rm7000.h6
-rw-r--r--sys/arch/mips64/mips64/clock.c6
-rw-r--r--sys/arch/mips64/mips64/db_machdep.c8
-rw-r--r--sys/arch/mips64/mips64/fp_emulate.c114
-rw-r--r--sys/arch/mips64/mips64/interrupt.c10
-rw-r--r--sys/arch/mips64/mips64/mips64_machdep.c4
-rw-r--r--sys/arch/mips64/mips64/process_machdep.c6
-rw-r--r--sys/arch/mips64/mips64/r4000_errata.c6
-rw-r--r--sys/arch/mips64/mips64/sendsig.c6
-rw-r--r--sys/arch/mips64/mips64/trap.c40
-rw-r--r--sys/arch/mips64/mips64/vm_machdep.c4
-rw-r--r--sys/arch/octeon/dev/octeon_intr.c6
-rw-r--r--sys/arch/octeon/include/intr.h6
-rw-r--r--sys/arch/octeon/octeon/machdep.c8
-rw-r--r--sys/arch/sgi/include/intr.h6
-rw-r--r--sys/arch/sgi/localbus/imc.c6
-rw-r--r--sys/arch/sgi/localbus/int.c10
-rw-r--r--sys/arch/sgi/localbus/macebus.c8
-rw-r--r--sys/arch/sgi/localbus/tcc.c6
-rw-r--r--sys/arch/sgi/sgi/intr_template.c4
-rw-r--r--sys/arch/sgi/sgi/ip27_machdep.c10
-rw-r--r--sys/arch/sgi/sgi/ip30_machdep.c18
-rw-r--r--sys/arch/sgi/sgi/machdep.c8
-rw-r--r--sys/arch/sgi/xbow/xheart.c6
34 files changed, 191 insertions, 191 deletions
diff --git a/sys/arch/loongson/dev/bonito.c b/sys/arch/loongson/dev/bonito.c
index ddeedbf9df6..7ccb4861f4f 100644
--- a/sys/arch/loongson/dev/bonito.c
+++ b/sys/arch/loongson/dev/bonito.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: bonito.c,v 1.30 2015/09/19 21:07:04 semarie Exp $ */
+/* $OpenBSD: bonito.c,v 1.31 2016/03/06 19:42:27 mpi Exp $ */
/* $NetBSD: bonito_mainbus.c,v 1.11 2008/04/28 20:23:10 martin Exp $ */
/* $NetBSD: bonito_pci.c,v 1.5 2008/04/28 20:23:28 martin Exp $ */
@@ -95,9 +95,9 @@ bus_addr_t bonito_pa_to_device(paddr_t);
paddr_t bonito_device_to_pa(bus_addr_t);
void bonito_intr_makemasks(void);
-uint32_t bonito_intr_2e(uint32_t, struct trap_frame *);
-uint32_t bonito_intr_2f(uint32_t, struct trap_frame *);
-void bonito_intr_dispatch(uint64_t, int, struct trap_frame *);
+uint32_t bonito_intr_2e(uint32_t, struct trapframe *);
+uint32_t bonito_intr_2f(uint32_t, struct trapframe *);
+void bonito_intr_dispatch(uint64_t, int, struct trapframe *);
void bonito_attach_hook(struct device *, struct device *,
struct pcibus_attach_args *);
@@ -573,7 +573,7 @@ bonito_intr_makemasks()
*/
uint32_t
-bonito_intr_2e(uint32_t hwpend, struct trap_frame *frame)
+bonito_intr_2e(uint32_t hwpend, struct trapframe *frame)
{
uint64_t imr, isr, mask;
@@ -630,7 +630,7 @@ bonito_intr_2e(uint32_t hwpend, struct trap_frame *frame)
}
uint32_t
-bonito_intr_2f(uint32_t hwpend, struct trap_frame *frame)
+bonito_intr_2f(uint32_t hwpend, struct trapframe *frame)
{
uint64_t imr, isr, mask;
@@ -677,7 +677,7 @@ bonito_intr_2f(uint32_t hwpend, struct trap_frame *frame)
}
void
-bonito_intr_dispatch(uint64_t isr, int startbit, struct trap_frame *frame)
+bonito_intr_dispatch(uint64_t isr, int startbit, struct trapframe *frame)
{
int lvl, bitno;
uint64_t tmpisr, mask;
diff --git a/sys/arch/loongson/include/intr.h b/sys/arch/loongson/include/intr.h
index b14f15d5f29..c8c990b032b 100644
--- a/sys/arch/loongson/include/intr.h
+++ b/sys/arch/loongson/include/intr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.h,v 1.7 2015/09/13 20:38:45 kettenis Exp $ */
+/* $OpenBSD: intr.h,v 1.8 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -180,8 +180,8 @@ void intr_barrier(void *);
extern uint32_t idle_mask;
-struct trap_frame;
-void set_intr(int, uint32_t, uint32_t(*)(uint32_t, struct trap_frame *));
+struct trapframe;
+void set_intr(int, uint32_t, uint32_t(*)(uint32_t, struct trapframe *));
uint32_t updateimask(uint32_t);
void dosoftint(void);
diff --git a/sys/arch/loongson/loongson/generic2e_machdep.c b/sys/arch/loongson/loongson/generic2e_machdep.c
index 3077542195c..f7a9a2e8ca9 100644
--- a/sys/arch/loongson/loongson/generic2e_machdep.c
+++ b/sys/arch/loongson/loongson/generic2e_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: generic2e_machdep.c,v 1.6 2014/03/27 22:16:03 miod Exp $ */
+/* $OpenBSD: generic2e_machdep.c,v 1.7 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 2010 Miodrag Vallat.
@@ -92,7 +92,7 @@ void *generic2e_isa_intr_establish(void *, int, int, int, int (*)(void *),
void *, char *);
void generic2e_isa_intr_disestablish(void *, void *);
-uint32_t generic2e_isa_intr(uint32_t, struct trap_frame *);
+uint32_t generic2e_isa_intr(uint32_t, struct trapframe *);
void via686sb_setup(pci_chipset_tag_t, int);
@@ -236,7 +236,7 @@ generic2e_isa_intr_disestablish(void *v, void *ih)
}
uint32_t
-generic2e_isa_intr(uint32_t hwpend, struct trap_frame *frame)
+generic2e_isa_intr(uint32_t hwpend, struct trapframe *frame)
{
struct intrhand *ih;
uint64_t isr, mask = 0;
diff --git a/sys/arch/loongson/loongson/machdep.c b/sys/arch/loongson/loongson/machdep.c
index bf3bc055c3c..c65ebcd5295 100644
--- a/sys/arch/loongson/loongson/machdep.c
+++ b/sys/arch/loongson/loongson/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.63 2015/05/07 01:55:43 jsg Exp $ */
+/* $OpenBSD: machdep.c,v 1.64 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 2009, 2010, 2014 Miodrag Vallat.
@@ -685,7 +685,7 @@ mips_init(uint64_t argc, uint64_t argv, uint64_t envp, uint64_t cv,
proc0.p_addr = proc0paddr = curcpu()->ci_curprocpaddr =
(struct user *)pmap_steal_memory(USPACE, NULL, NULL);
- proc0.p_md.md_regs = (struct trap_frame *)&proc0paddr->u_pcb.pcb_regs;
+ proc0.p_md.md_regs = (struct trapframe *)&proc0paddr->u_pcb.pcb_regs;
tlb_set_pid(MIN_USER_ASID);
/*
diff --git a/sys/arch/loongson/loongson/yeeloong_machdep.c b/sys/arch/loongson/loongson/yeeloong_machdep.c
index ad52a4fddc0..2b48b92dcf8 100644
--- a/sys/arch/loongson/loongson/yeeloong_machdep.c
+++ b/sys/arch/loongson/loongson/yeeloong_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: yeeloong_machdep.c,v 1.24 2014/03/27 22:16:03 miod Exp $ */
+/* $OpenBSD: yeeloong_machdep.c,v 1.25 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 2009, 2010 Miodrag Vallat.
@@ -78,7 +78,7 @@ void lemote_isa_intr_disestablish(void *, void *);
uint lemote_get_isa_imr(void);
uint lemote_get_isa_isr(void);
-uint32_t lemote_isa_intr(uint32_t, struct trap_frame *);
+uint32_t lemote_isa_intr(uint32_t, struct trapframe *);
extern void (*cpu_setperf)(int);
const struct bonito_config lemote_bonito = {
@@ -339,7 +339,7 @@ lemote_isa_intr_disestablish(void *v, void *ih)
* XXX if they ever are triggered...
*/
uint32_t
-lemote_isa_intr(uint32_t hwpend, struct trap_frame *frame)
+lemote_isa_intr(uint32_t hwpend, struct trapframe *frame)
{
uint64_t imr, isr, mask;
int bit;
diff --git a/sys/arch/mips64/include/cpu.h b/sys/arch/mips64/include/cpu.h
index e8ce3a60464..c1ba47cc0a4 100644
--- a/sys/arch/mips64/include/cpu.h
+++ b/sys/arch/mips64/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.109 2016/03/01 19:17:37 mmcc Exp $ */
+/* $OpenBSD: cpu.h,v 1.110 2016/03/06 19:42:27 mpi Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -281,7 +281,7 @@ void cp0_calibrate(struct cpu_info *);
* Arguments to hardclock encapsulate the previous machine state in
* an opaque clockframe.
*/
-#define clockframe trap_frame /* Use normal trap frame */
+#define clockframe trapframe /* Use normal trap frame */
#define SR_KSU_USER 0x00000010
#define CLKF_USERMODE(framep) ((framep)->sr & SR_KSU_USER)
@@ -431,20 +431,20 @@ void savectx(struct user *, int);
void enable_fpu(struct proc *);
void save_fpu(void);
-int fpe_branch_emulate(struct proc *, struct trap_frame *, uint32_t,
+int fpe_branch_emulate(struct proc *, struct trapframe *, uint32_t,
vaddr_t);
void MipsSaveCurFPState(struct proc *);
void MipsSaveCurFPState16(struct proc *);
-void MipsSwitchFPState(struct proc *, struct trap_frame *);
-void MipsSwitchFPState16(struct proc *, struct trap_frame *);
+void MipsSwitchFPState(struct proc *, struct trapframe *);
+void MipsSwitchFPState16(struct proc *, struct trapframe *);
int guarded_read_1(paddr_t, uint8_t *);
int guarded_read_2(paddr_t, uint16_t *);
int guarded_read_4(paddr_t, uint32_t *);
int guarded_write_4(paddr_t, uint32_t);
-void MipsFPTrap(struct trap_frame *);
-register_t MipsEmulateBranch(struct trap_frame *, vaddr_t, uint32_t, uint32_t);
+void MipsFPTrap(struct trapframe *);
+register_t MipsEmulateBranch(struct trapframe *, vaddr_t, uint32_t, uint32_t);
int classify_insn(uint32_t);
#define INSNCLASS_NEUTRAL 0
@@ -458,9 +458,9 @@ int classify_insn(uint32_t);
extern int r4000_errata;
u_int eop_page_check(paddr_t);
void eop_tlb_flush_addr(struct pmap *, vaddr_t, u_long);
-int eop_tlb_miss_handler(struct trap_frame *, struct cpu_info *,
+int eop_tlb_miss_handler(struct trapframe *, struct cpu_info *,
struct proc *);
-void eop_cleanup(struct trap_frame *, struct proc *);
+void eop_cleanup(struct trapframe *, struct proc *);
/*
* Low level access routines to CPU registers
diff --git a/sys/arch/mips64/include/db_machdep.h b/sys/arch/mips64/include/db_machdep.h
index b707ac376fe..f53a2e78b51 100644
--- a/sys/arch/mips64/include/db_machdep.h
+++ b/sys/arch/mips64/include/db_machdep.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_machdep.h,v 1.15 2014/03/21 23:05:41 miod Exp $ */
+/* $OpenBSD: db_machdep.h,v 1.16 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 1998-2003 Opsycon AB (www.opsycon.se)
@@ -35,7 +35,7 @@
#define DB_MACHINE_COMMANDS /* We have machine specific commands */
-typedef struct trap_frame db_regs_t;
+typedef struct trapframe db_regs_t;
extern db_regs_t ddb_regs;
typedef long db_expr_t;
diff --git a/sys/arch/mips64/include/frame.h b/sys/arch/mips64/include/frame.h
index 76ee38128f9..ab32612e8ee 100644
--- a/sys/arch/mips64/include/frame.h
+++ b/sys/arch/mips64/include/frame.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: frame.h,v 1.6 2014/07/09 12:58:08 miod Exp $ */
+/* $OpenBSD: frame.h,v 1.7 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 1998-2003 Opsycon AB (www.opsycon.se)
@@ -32,7 +32,7 @@
* The layout of this *must* match with regnum.h or bad things
* will happen. libc setjmp/longjmp depends on this as well.
*/
-struct trap_frame {
+struct trapframe {
register_t zero;
register_t ast;
register_t v0;
diff --git a/sys/arch/mips64/include/pcb.h b/sys/arch/mips64/include/pcb.h
index 08c32512ecd..b16749101d9 100644
--- a/sys/arch/mips64/include/pcb.h
+++ b/sys/arch/mips64/include/pcb.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pcb.h,v 1.7 2015/05/05 02:13:47 guenther Exp $ */
+/* $OpenBSD: pcb.h,v 1.8 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -46,7 +46,7 @@
* MIPS process control block. This is first in the U-area.
*/
struct pcb {
- struct trap_frame pcb_regs; /* saved CPU and registers */
+ struct trapframe pcb_regs; /* saved CPU and registers */
struct {
register_t val[13];
} pcb_context; /* kernel context for resume */
diff --git a/sys/arch/mips64/include/proc.h b/sys/arch/mips64/include/proc.h
index 04aba12c08c..198b98594a4 100644
--- a/sys/arch/mips64/include/proc.h
+++ b/sys/arch/mips64/include/proc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: proc.h,v 1.8 2011/03/23 16:54:36 pirofti Exp $ */
+/* $OpenBSD: proc.h,v 1.9 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -41,7 +41,7 @@
* Machine-dependent part of the proc structure.
*/
struct mdproc {
- struct trap_frame *md_regs; /* registers on current frame */
+ struct trapframe *md_regs; /* registers on current frame */
volatile int md_astpending; /* AST pending for this process */
int md_flags; /* machine-dependent flags */
vaddr_t md_uarea; /* allocated uarea virtual addr */
diff --git a/sys/arch/mips64/include/rm7000.h b/sys/arch/mips64/include/rm7000.h
index cdf9318abc5..524535ea603 100644
--- a/sys/arch/mips64/include/rm7000.h
+++ b/sys/arch/mips64/include/rm7000.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rm7000.h,v 1.3 2010/03/01 22:41:09 jasper Exp $ */
+/* $OpenBSD: rm7000.h,v 1.4 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -88,8 +88,8 @@
#ifdef _KERNEL
__BEGIN_DECLS
int rm7k_perfcntr(int, long, long, long);
-void rm7k_perfintr(struct trap_frame *);
-int rm7k_watchintr(struct trap_frame *);
+void rm7k_perfintr(struct trapframe *);
+int rm7k_watchintr(struct trapframe *);
void cp0_setperfcount(int);
void cp0_setperfctrl(int);
int cp0_getperfcount(void);
diff --git a/sys/arch/mips64/mips64/clock.c b/sys/arch/mips64/mips64/clock.c
index 53091b2c02a..063aaa0c29c 100644
--- a/sys/arch/mips64/mips64/clock.c
+++ b/sys/arch/mips64/mips64/clock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: clock.c,v 1.40 2015/05/01 11:17:22 miod Exp $ */
+/* $OpenBSD: clock.c,v 1.41 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -61,7 +61,7 @@ struct cfattach clock_ca = {
};
void cp0_startclock(struct cpu_info *);
-uint32_t cp0_int5(uint32_t, struct trap_frame *);
+uint32_t cp0_int5(uint32_t, struct trapframe *);
int
clockmatch(struct device *parent, void *vcf, void *aux)
@@ -100,7 +100,7 @@ clockattach(struct device *parent, struct device *self, void *aux)
* the clock is logically unmasked again.
*/
uint32_t
-cp0_int5(uint32_t mask, struct trap_frame *tf)
+cp0_int5(uint32_t mask, struct trapframe *tf)
{
u_int32_t clkdiff;
struct cpu_info *ci = curcpu();
diff --git a/sys/arch/mips64/mips64/db_machdep.c b/sys/arch/mips64/mips64/db_machdep.c
index 4fe9e81d607..fbd82d25edd 100644
--- a/sys/arch/mips64/mips64/db_machdep.c
+++ b/sys/arch/mips64/mips64/db_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_machdep.c,v 1.44 2016/02/27 13:08:07 mpi Exp $ */
+/* $OpenBSD: db_machdep.c,v 1.45 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 1998-2003 Opsycon AB (www.opsycon.se)
@@ -62,7 +62,7 @@ void kdbpoke(vaddr_t, uint32_t);
void kdbpoked(vaddr_t, uint64_t);
void kdbpokew(vaddr_t, uint16_t);
void kdbpokeb(vaddr_t, uint8_t);
-int db_ktrap(int, struct trap_frame *);
+int db_ktrap(int, struct trapframe *);
void db_print_tlb(uint, uint64_t);
void db_trap_trace_cmd(db_expr_t, int, db_expr_t, char *);
@@ -130,7 +130,7 @@ struct db_variable *db_eregs = db_regs + nitems(db_regs);
extern label_t *db_recover;
int
-db_ktrap(int type, struct trap_frame *fp)
+db_ktrap(int type, struct trapframe *fp)
{
switch(type) {
case T_BREAK: /* breakpoint */
@@ -336,7 +336,7 @@ void
db_stack_trace_print(db_expr_t addr, boolean_t have_addr, db_expr_t count,
char *modif, int (*pr)(const char *, ...))
{
- struct trap_frame *regs = &ddb_regs;
+ struct trapframe *regs = &ddb_regs;
if (have_addr) {
(*pr)("mips trace requires a trap frame... giving up\n");
diff --git a/sys/arch/mips64/mips64/fp_emulate.c b/sys/arch/mips64/mips64/fp_emulate.c
index c9a31c650b9..a7e0d213c8e 100644
--- a/sys/arch/mips64/mips64/fp_emulate.c
+++ b/sys/arch/mips64/mips64/fp_emulate.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fp_emulate.c,v 1.13 2015/09/10 14:37:20 miod Exp $ */
+/* $OpenBSD: fp_emulate.c,v 1.14 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 2010 Miodrag Vallat.
@@ -44,30 +44,30 @@
#include <machine/db_machdep.h>
#endif
-int fpu_emulate(struct proc *, struct trap_frame *, uint32_t,
+int fpu_emulate(struct proc *, struct trapframe *, uint32_t,
union sigval *);
-int fpu_emulate_cop1(struct proc *, struct trap_frame *, uint32_t);
-int fpu_emulate_cop1x(struct proc *, struct trap_frame *, uint32_t);
+int fpu_emulate_cop1(struct proc *, struct trapframe *, uint32_t);
+int fpu_emulate_cop1x(struct proc *, struct trapframe *, uint32_t);
uint64_t
- fpu_load(struct proc *, struct trap_frame *, uint, uint);
-void fpu_store(struct proc *, struct trap_frame *, uint, uint, uint64_t);
+ fpu_load(struct proc *, struct trapframe *, uint, uint);
+void fpu_store(struct proc *, struct trapframe *, uint, uint, uint64_t);
#ifdef FPUEMUL
-int nofpu_emulate_cop1(struct proc *, struct trap_frame *, uint32_t,
+int nofpu_emulate_cop1(struct proc *, struct trapframe *, uint32_t,
union sigval *);
-int nofpu_emulate_cop1x(struct proc *, struct trap_frame *, uint32_t,
+int nofpu_emulate_cop1x(struct proc *, struct trapframe *, uint32_t,
union sigval *);
-int nofpu_emulate_loadstore(struct proc *, struct trap_frame *, uint32_t,
+int nofpu_emulate_loadstore(struct proc *, struct trapframe *, uint32_t,
union sigval *);
-int nofpu_emulate_movci(struct trap_frame *, uint32_t);
+int nofpu_emulate_movci(struct trapframe *, uint32_t);
#endif
-typedef int (fpu_fn3)(struct proc *, struct trap_frame *, uint, uint, uint,
+typedef int (fpu_fn3)(struct proc *, struct trapframe *, uint, uint, uint,
uint);
-typedef int (fpu_fn4)(struct proc *, struct trap_frame *, uint, uint, uint,
+typedef int (fpu_fn4)(struct proc *, struct trapframe *, uint, uint, uint,
uint, uint);
fpu_fn3 fpu_abs;
fpu_fn3 fpu_add;
-int fpu_c(struct proc *, struct trap_frame *, uint, uint, uint, uint, uint);
+int fpu_c(struct proc *, struct trapframe *, uint, uint, uint, uint, uint);
fpu_fn3 fpu_ceil_l;
fpu_fn3 fpu_ceil_w;
fpu_fn3 fpu_cvt_d;
@@ -77,9 +77,9 @@ fpu_fn3 fpu_cvt_w;
fpu_fn3 fpu_div;
fpu_fn3 fpu_floor_l;
fpu_fn3 fpu_floor_w;
-int fpu_int_l(struct proc *, struct trap_frame *, uint, uint, uint, uint,
+int fpu_int_l(struct proc *, struct trapframe *, uint, uint, uint, uint,
uint);
-int fpu_int_w(struct proc *, struct trap_frame *, uint, uint, uint, uint,
+int fpu_int_w(struct proc *, struct trapframe *, uint, uint, uint, uint,
uint);
fpu_fn4 fpu_madd;
fpu_fn4 fpu_msub;
@@ -127,7 +127,7 @@ fpu_fn3 fpu_trunc_w;
* Handle a floating-point exception.
*/
void
-MipsFPTrap(struct trap_frame *tf)
+MipsFPTrap(struct trapframe *tf)
{
struct cpu_info *ci = curcpu();
struct proc *p = ci->ci_curproc;
@@ -410,7 +410,7 @@ deliver:
* current PCB, and is pointed to by the trap frame.
*/
int
-fpu_emulate(struct proc *p, struct trap_frame *tf, uint32_t insn,
+fpu_emulate(struct proc *p, struct trapframe *tf, uint32_t insn,
union sigval *sv)
{
InstFmt inst;
@@ -480,7 +480,7 @@ fpu_emulate(struct proc *p, struct trap_frame *tf, uint32_t insn,
* Emulate a COP1 FPU instruction.
*/
int
-fpu_emulate_cop1(struct proc *p, struct trap_frame *tf, uint32_t insn)
+fpu_emulate_cop1(struct proc *p, struct trapframe *tf, uint32_t insn)
{
InstFmt inst;
uint ft, fs, fd;
@@ -612,7 +612,7 @@ fpu_emulate_cop1(struct proc *p, struct trap_frame *tf, uint32_t insn)
* Emulate a COP1X FPU instruction.
*/
int
-fpu_emulate_cop1x(struct proc *p, struct trap_frame *tf, uint32_t insn)
+fpu_emulate_cop1x(struct proc *p, struct trapframe *tf, uint32_t insn)
{
InstFmt inst;
uint fr, ft, fs, fd;
@@ -678,7 +678,7 @@ fpu_emulate_cop1x(struct proc *p, struct trap_frame *tf, uint32_t insn)
* Load a floating-point argument according to the specified format.
*/
uint64_t
-fpu_load(struct proc *p, struct trap_frame *tf, uint fmt, uint regno)
+fpu_load(struct proc *p, struct trapframe *tf, uint fmt, uint regno)
{
uint64_t tmp, tmp2;
@@ -716,7 +716,7 @@ fpu_load(struct proc *p, struct trap_frame *tf, uint fmt, uint regno)
* Store a floating-point result according to the specified format.
*/
void
-fpu_store(struct proc *p, struct trap_frame *tf, uint fmt, uint regno,
+fpu_store(struct proc *p, struct trapframe *tf, uint fmt, uint regno,
uint64_t rslt)
{
if (tf->sr & SR_FR_32) {
@@ -735,7 +735,7 @@ fpu_store(struct proc *p, struct trap_frame *tf, uint fmt, uint regno,
*/
int
-fpu_int_l(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
+fpu_int_l(struct proc *p, struct trapframe *tf, uint fmt, uint ft, uint fs,
uint fd, uint rm)
{
uint64_t raw;
@@ -765,7 +765,7 @@ fpu_int_l(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
}
int
-fpu_int_w(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
+fpu_int_w(struct proc *p, struct trapframe *tf, uint fmt, uint ft, uint fs,
uint fd, uint rm)
{
uint64_t raw;
@@ -799,7 +799,7 @@ fpu_int_w(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
*/
int
-fpu_abs(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
+fpu_abs(struct proc *p, struct trapframe *tf, uint fmt, uint ft, uint fs,
uint fd)
{
uint64_t raw;
@@ -834,7 +834,7 @@ fpu_abs(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
}
int
-fpu_add(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
+fpu_add(struct proc *p, struct trapframe *tf, uint fmt, uint ft, uint fs,
uint fd)
{
uint64_t raw1, raw2, rslt;
@@ -857,7 +857,7 @@ fpu_add(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
}
int
-fpu_c(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
+fpu_c(struct proc *p, struct trapframe *tf, uint fmt, uint ft, uint fs,
uint fd, uint op)
{
uint64_t raw1, raw2;
@@ -932,7 +932,7 @@ skip:
}
int
-fpu_ceil_l(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
+fpu_ceil_l(struct proc *p, struct trapframe *tf, uint fmt, uint ft, uint fs,
uint fd)
{
/* round towards positive infinity */
@@ -940,7 +940,7 @@ fpu_ceil_l(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
}
int
-fpu_ceil_w(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
+fpu_ceil_w(struct proc *p, struct trapframe *tf, uint fmt, uint ft, uint fs,
uint fd)
{
/* round towards positive infinity */
@@ -948,7 +948,7 @@ fpu_ceil_w(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
}
int
-fpu_cvt_d(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
+fpu_cvt_d(struct proc *p, struct trapframe *tf, uint fmt, uint ft, uint fs,
uint fd)
{
uint64_t raw;
@@ -976,7 +976,7 @@ fpu_cvt_d(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
}
int
-fpu_cvt_l(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
+fpu_cvt_l(struct proc *p, struct trapframe *tf, uint fmt, uint ft, uint fs,
uint fd)
{
uint64_t raw;
@@ -1007,7 +1007,7 @@ fpu_cvt_l(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
}
int
-fpu_cvt_s(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
+fpu_cvt_s(struct proc *p, struct trapframe *tf, uint fmt, uint ft, uint fs,
uint fd)
{
uint64_t raw;
@@ -1035,7 +1035,7 @@ fpu_cvt_s(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
}
int
-fpu_cvt_w(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
+fpu_cvt_w(struct proc *p, struct trapframe *tf, uint fmt, uint ft, uint fs,
uint fd)
{
uint64_t raw;
@@ -1066,7 +1066,7 @@ fpu_cvt_w(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
}
int
-fpu_div(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
+fpu_div(struct proc *p, struct trapframe *tf, uint fmt, uint ft, uint fs,
uint fd)
{
uint64_t raw1, raw2, rslt;
@@ -1089,7 +1089,7 @@ fpu_div(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
}
int
-fpu_floor_l(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
+fpu_floor_l(struct proc *p, struct trapframe *tf, uint fmt, uint ft, uint fs,
uint fd)
{
/* round towards negative infinity */
@@ -1097,7 +1097,7 @@ fpu_floor_l(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
}
int
-fpu_floor_w(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
+fpu_floor_w(struct proc *p, struct trapframe *tf, uint fmt, uint ft, uint fs,
uint fd)
{
/* round towards negative infinity */
@@ -1105,7 +1105,7 @@ fpu_floor_w(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
}
int
-fpu_madd(struct proc *p, struct trap_frame *tf, uint fmt, uint fr, uint ft,
+fpu_madd(struct proc *p, struct trapframe *tf, uint fmt, uint fr, uint ft,
uint fs, uint fd)
{
uint64_t raw1, raw2, raw3, rslt;
@@ -1133,7 +1133,7 @@ fpu_madd(struct proc *p, struct trap_frame *tf, uint fmt, uint fr, uint ft,
}
int
-fpu_mov(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
+fpu_mov(struct proc *p, struct trapframe *tf, uint fmt, uint ft, uint fs,
uint fd)
{
uint64_t raw;
@@ -1150,7 +1150,7 @@ fpu_mov(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
}
int
-fpu_movcf(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
+fpu_movcf(struct proc *p, struct trapframe *tf, uint fmt, uint ft, uint fs,
uint fd)
{
uint64_t raw;
@@ -1174,7 +1174,7 @@ fpu_movcf(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
}
int
-fpu_movn(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
+fpu_movn(struct proc *p, struct trapframe *tf, uint fmt, uint ft, uint fs,
uint fd)
{
register_t *regs = (register_t *)tf;
@@ -1192,7 +1192,7 @@ fpu_movn(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
}
int
-fpu_movz(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
+fpu_movz(struct proc *p, struct trapframe *tf, uint fmt, uint ft, uint fs,
uint fd)
{
register_t *regs = (register_t *)tf;
@@ -1210,7 +1210,7 @@ fpu_movz(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
}
int
-fpu_msub(struct proc *p, struct trap_frame *tf, uint fmt, uint fr, uint ft,
+fpu_msub(struct proc *p, struct trapframe *tf, uint fmt, uint fr, uint ft,
uint fs, uint fd)
{
uint64_t raw1, raw2, raw3, rslt;
@@ -1238,7 +1238,7 @@ fpu_msub(struct proc *p, struct trap_frame *tf, uint fmt, uint fr, uint ft,
}
int
-fpu_mul(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
+fpu_mul(struct proc *p, struct trapframe *tf, uint fmt, uint ft, uint fs,
uint fd)
{
uint64_t raw1, raw2, rslt;
@@ -1261,7 +1261,7 @@ fpu_mul(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
}
int
-fpu_neg(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
+fpu_neg(struct proc *p, struct trapframe *tf, uint fmt, uint ft, uint fs,
uint fd)
{
uint64_t raw;
@@ -1296,7 +1296,7 @@ fpu_neg(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
}
int
-fpu_nmadd(struct proc *p, struct trap_frame *tf, uint fmt, uint fr, uint ft,
+fpu_nmadd(struct proc *p, struct trapframe *tf, uint fmt, uint fr, uint ft,
uint fs, uint fd)
{
uint64_t raw1, raw2, raw3, rslt;
@@ -1332,7 +1332,7 @@ fpu_nmadd(struct proc *p, struct trap_frame *tf, uint fmt, uint fr, uint ft,
}
int
-fpu_nmsub(struct proc *p, struct trap_frame *tf, uint fmt, uint fr, uint ft,
+fpu_nmsub(struct proc *p, struct trapframe *tf, uint fmt, uint fr, uint ft,
uint fs, uint fd)
{
uint64_t raw1, raw2, raw3, rslt;
@@ -1368,7 +1368,7 @@ fpu_nmsub(struct proc *p, struct trap_frame *tf, uint fmt, uint fr, uint ft,
}
int
-fpu_recip(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
+fpu_recip(struct proc *p, struct trapframe *tf, uint fmt, uint ft, uint fs,
uint fd)
{
uint64_t raw;
@@ -1392,7 +1392,7 @@ fpu_recip(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
}
int
-fpu_round_l(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
+fpu_round_l(struct proc *p, struct trapframe *tf, uint fmt, uint ft, uint fs,
uint fd)
{
/* round towards nearest */
@@ -1400,7 +1400,7 @@ fpu_round_l(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
}
int
-fpu_round_w(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
+fpu_round_w(struct proc *p, struct trapframe *tf, uint fmt, uint ft, uint fs,
uint fd)
{
/* round towards nearest */
@@ -1408,7 +1408,7 @@ fpu_round_w(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
}
int
-fpu_rsqrt(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
+fpu_rsqrt(struct proc *p, struct trapframe *tf, uint fmt, uint ft, uint fs,
uint fd)
{
uint64_t raw;
@@ -1438,7 +1438,7 @@ fpu_rsqrt(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
}
int
-fpu_sqrt(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
+fpu_sqrt(struct proc *p, struct trapframe *tf, uint fmt, uint ft, uint fs,
uint fd)
{
uint64_t raw;
@@ -1462,7 +1462,7 @@ fpu_sqrt(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
}
int
-fpu_sub(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
+fpu_sub(struct proc *p, struct trapframe *tf, uint fmt, uint ft, uint fs,
uint fd)
{
uint64_t raw1, raw2, rslt;
@@ -1485,7 +1485,7 @@ fpu_sub(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
}
int
-fpu_trunc_l(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
+fpu_trunc_l(struct proc *p, struct trapframe *tf, uint fmt, uint ft, uint fs,
uint fd)
{
/* round towards zero */
@@ -1493,7 +1493,7 @@ fpu_trunc_l(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
}
int
-fpu_trunc_w(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
+fpu_trunc_w(struct proc *p, struct trapframe *tf, uint fmt, uint ft, uint fs,
uint fd)
{
/* round towards zero */
@@ -1506,7 +1506,7 @@ fpu_trunc_w(struct proc *p, struct trap_frame *tf, uint fmt, uint ft, uint fs,
* Emulate a COP1 non-FPU instruction.
*/
int
-nofpu_emulate_cop1(struct proc *p, struct trap_frame *tf, uint32_t insn,
+nofpu_emulate_cop1(struct proc *p, struct trapframe *tf, uint32_t insn,
union sigval *sv)
{
register_t *regs = (register_t *)tf;
@@ -1636,7 +1636,7 @@ nofpu_emulate_cop1(struct proc *p, struct trap_frame *tf, uint32_t insn,
* Emulate a COP1X non-FPU instruction.
*/
int
-nofpu_emulate_cop1x(struct proc *p, struct trap_frame *tf, uint32_t insn,
+nofpu_emulate_cop1x(struct proc *p, struct trapframe *tf, uint32_t insn,
union sigval *sv)
{
register_t *regs = (register_t *)tf;
@@ -1725,7 +1725,7 @@ nofpu_emulate_cop1x(struct proc *p, struct trap_frame *tf, uint32_t insn,
* Emulate a load/store instruction on FPU registers.
*/
int
-nofpu_emulate_loadstore(struct proc *p, struct trap_frame *tf, uint32_t insn,
+nofpu_emulate_loadstore(struct proc *p, struct trapframe *tf, uint32_t insn,
union sigval *sv)
{
register_t *regs = (register_t *)tf;
@@ -1799,7 +1799,7 @@ nofpu_emulate_loadstore(struct proc *p, struct trap_frame *tf, uint32_t insn,
* Emulate MOVF and MOVT.
*/
int
-nofpu_emulate_movci(struct trap_frame *tf, uint32_t insn)
+nofpu_emulate_movci(struct trapframe *tf, uint32_t insn)
{
register_t *regs = (register_t *)tf;
InstFmt inst;
diff --git a/sys/arch/mips64/mips64/interrupt.c b/sys/arch/mips64/mips64/interrupt.c
index 0ae3daf5ea1..f82f1861381 100644
--- a/sys/arch/mips64/mips64/interrupt.c
+++ b/sys/arch/mips64/mips64/interrupt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: interrupt.c,v 1.65 2015/09/13 20:38:45 kettenis Exp $ */
+/* $OpenBSD: interrupt.c,v 1.66 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -48,7 +48,7 @@
#endif
void dummy_splx(int);
-void interrupt(struct trap_frame *);
+void interrupt(struct trapframe *);
static struct evcount soft_count;
static int soft_irq = 0;
@@ -58,7 +58,7 @@ int last_low_int;
struct {
uint32_t int_mask;
- uint32_t (*int_hand)(uint32_t, struct trap_frame *);
+ uint32_t (*int_hand)(uint32_t, struct trapframe *);
} cpu_int_tab[NLOWINT];
int_f *splx_hand = &dummy_splx;
@@ -98,7 +98,7 @@ int_f *splx_hand = &dummy_splx;
*/
void
-interrupt(struct trap_frame *trapframe)
+interrupt(struct trapframe *trapframe)
{
struct cpu_info *ci = curcpu();
u_int32_t pending;
@@ -164,7 +164,7 @@ interrupt(struct trap_frame *trapframe)
*/
void
set_intr(int pri, uint32_t mask,
- uint32_t (*int_hand)(uint32_t, struct trap_frame *))
+ uint32_t (*int_hand)(uint32_t, struct trapframe *))
{
if ((idle_mask & SOFT_INT_MASK) == 0) {
evcount_attach(&soft_count, "soft", &soft_irq);
diff --git a/sys/arch/mips64/mips64/mips64_machdep.c b/sys/arch/mips64/mips64/mips64_machdep.c
index 3ddf2c1fabd..f6e2e3e2913 100644
--- a/sys/arch/mips64/mips64/mips64_machdep.c
+++ b/sys/arch/mips64/mips64/mips64_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mips64_machdep.c,v 1.19 2014/12/15 02:24:22 guenther Exp $ */
+/* $OpenBSD: mips64_machdep.c,v 1.20 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 2009, 2010, 2012 Miodrag Vallat.
@@ -148,7 +148,7 @@ setregs(p, pack, stack, retval)
{
struct cpu_info *ci = curcpu();
- bzero((caddr_t)p->p_md.md_regs, sizeof(struct trap_frame));
+ bzero((caddr_t)p->p_md.md_regs, sizeof(struct trapframe));
p->p_md.md_regs->sp = stack;
p->p_md.md_regs->pc = pack->ep_entry & ~3;
p->p_md.md_regs->t9 = pack->ep_entry & ~3; /* abicall req */
diff --git a/sys/arch/mips64/mips64/process_machdep.c b/sys/arch/mips64/mips64/process_machdep.c
index e26950f0f24..24c27ce3c35 100644
--- a/sys/arch/mips64/mips64/process_machdep.c
+++ b/sys/arch/mips64/mips64/process_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: process_machdep.c,v 1.16 2010/11/24 21:01:03 miod Exp $ */
+/* $OpenBSD: process_machdep.c,v 1.17 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 1994 Adam Glass
@@ -40,7 +40,7 @@
* From:
* Id: procfs_i386.c,v 4.1 1993/12/17 10:47:45 jsp Rel
*
- * $Id: process_machdep.c,v 1.16 2010/11/24 21:01:03 miod Exp $
+ * $Id: process_machdep.c,v 1.17 2016/03/06 19:42:27 mpi Exp $
*/
/*
@@ -76,7 +76,7 @@
#include <machine/frame.h>
#include <machine/reg.h>
-#define REGSIZE (sizeof(struct trap_frame) - sizeof(register_t))
+#define REGSIZE (sizeof(struct trapframe) - sizeof(register_t))
int
process_read_regs(p, regs)
diff --git a/sys/arch/mips64/mips64/r4000_errata.c b/sys/arch/mips64/mips64/r4000_errata.c
index 7f55d011c90..869ab692c0f 100644
--- a/sys/arch/mips64/mips64/r4000_errata.c
+++ b/sys/arch/mips64/mips64/r4000_errata.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: r4000_errata.c,v 1.5 2014/11/16 12:30:58 deraadt Exp $ */
+/* $OpenBSD: r4000_errata.c,v 1.6 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 2014 Miodrag Vallat.
@@ -147,7 +147,7 @@ eop_tlb_flush_addr(struct pmap *pmap, vaddr_t va, u_long asid)
* further processing in the trap handler is necessary.
*/
int
-eop_tlb_miss_handler(struct trap_frame *trapframe, struct cpu_info *ci,
+eop_tlb_miss_handler(struct trapframe *trapframe, struct cpu_info *ci,
struct proc *p)
{
struct pcb *pcb;
@@ -266,7 +266,7 @@ eop_tlb_miss_handler(struct trap_frame *trapframe, struct cpu_info *ci,
* current pc is no longer in an errata vulnerable page.
*/
void
-eop_cleanup(struct trap_frame *trapframe, struct proc *p)
+eop_cleanup(struct trapframe *trapframe, struct proc *p)
{
struct pcb *pcb;
diff --git a/sys/arch/mips64/mips64/sendsig.c b/sys/arch/mips64/mips64/sendsig.c
index 8376975ae41..b022882a217 100644
--- a/sys/arch/mips64/mips64/sendsig.c
+++ b/sys/arch/mips64/mips64/sendsig.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sendsig.c,v 1.24 2015/02/09 08:48:23 miod Exp $ */
+/* $OpenBSD: sendsig.c,v 1.25 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 1990 The Regents of the University of California.
@@ -110,7 +110,7 @@ sendsig(catcher, sig, mask, code, type, val)
struct cpu_info *ci = curcpu();
struct proc *p = curproc;
struct sigframe *fp;
- struct trap_frame *regs;
+ struct trapframe *regs;
struct sigacts *psp = p->p_p->ps_sigacts;
int fsize;
struct sigcontext ksc;
@@ -216,7 +216,7 @@ sys_sigreturn(p, v, retval)
syscallarg(struct sigcontext *) sigcntxp;
} */ *uap = v;
struct sigcontext *scp;
- struct trap_frame *regs;
+ struct trapframe *regs;
struct sigcontext ksc;
int error;
diff --git a/sys/arch/mips64/mips64/trap.c b/sys/arch/mips64/mips64/trap.c
index 8e0049d2955..0bd71e562d2 100644
--- a/sys/arch/mips64/mips64/trap.c
+++ b/sys/arch/mips64/mips64/trap.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trap.c,v 1.115 2016/03/01 11:56:00 mpi Exp $ */
+/* $OpenBSD: trap.c,v 1.116 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -121,7 +121,7 @@ const char *trap_type[] = {
struct trapdebug trapdebug[MAXCPUS * TRAPSIZE];
uint trppos[MAXCPUS];
-void stacktrace(struct trap_frame *);
+void stacktrace(struct trapframe *);
uint32_t kdbpeek(vaddr_t);
uint64_t kdbpeekd(vaddr_t);
#endif /* DDB || DEBUG */
@@ -131,9 +131,9 @@ extern int db_ktrap(int, db_regs_t *);
#endif
void ast(void);
-extern void interrupt(struct trap_frame *);
-void itsa(struct trap_frame *, struct cpu_info *, struct proc *, int);
-void trap(struct trap_frame *);
+extern void interrupt(struct trapframe *);
+void itsa(struct trapframe *, struct cpu_info *, struct proc *, int);
+void trap(struct trapframe *);
#ifdef PTRACE
int ptrace_read_insn(struct proc *, vaddr_t, uint32_t *);
int ptrace_write_insn(struct proc *, vaddr_t, uint32_t);
@@ -162,7 +162,7 @@ ast(void)
* pcb_onfault is set, otherwise, return old pc.
*/
void
-trap(struct trap_frame *trapframe)
+trap(struct trapframe *trapframe)
{
struct cpu_info *ci = curcpu();
struct proc *p = ci->ci_curproc;
@@ -265,7 +265,7 @@ trap(struct trap_frame *trapframe)
* Handle a single exception.
*/
void
-itsa(struct trap_frame *trapframe, struct cpu_info *ci, struct proc *p,
+itsa(struct trapframe *trapframe, struct cpu_info *ci, struct proc *p,
int type)
{
int i;
@@ -430,7 +430,7 @@ fault_common_no_miss:
case T_SYSCALL+T_USER:
{
- struct trap_frame *locr0 = p->p_md.md_regs;
+ struct trapframe *locr0 = p->p_md.md_regs;
struct sysent *callp;
unsigned int code;
register_t tpc;
@@ -549,7 +549,7 @@ fault_common_no_miss:
{
caddr_t va;
u_int32_t instr;
- struct trap_frame *locr0 = p->p_md.md_regs;
+ struct trapframe *locr0 = p->p_md.md_regs;
/* compute address of break instruction */
va = (caddr_t)trapframe->pc;
@@ -662,7 +662,7 @@ fault_common_no_miss:
{
caddr_t va;
u_int32_t instr;
- struct trap_frame *locr0 = p->p_md.md_regs;
+ struct trapframe *locr0 = p->p_md.md_regs;
/* compute address of trap instruction */
va = (caddr_t)trapframe->pc;
@@ -816,7 +816,7 @@ void
child_return(void *arg)
{
struct proc *p = arg;
- struct trap_frame *trapframe;
+ struct trapframe *trapframe;
trapframe = p->p_md.md_regs;
trapframe->v0 = 0;
@@ -890,7 +890,7 @@ trapDump(const char *msg, int (*pr)(const char *, ...))
* Return the resulting PC as if the branch was executed.
*/
register_t
-MipsEmulateBranch(struct trap_frame *tf, vaddr_t instPC, uint32_t fsr,
+MipsEmulateBranch(struct trapframe *tf, vaddr_t instPC, uint32_t fsr,
uint32_t curinst)
{
register_t *regsPtr = (register_t *)tf;
@@ -1050,7 +1050,7 @@ ptrace_write_insn(struct proc *p, vaddr_t va, uint32_t insn)
int
process_sstep(struct proc *p, int sstep)
{
- struct trap_frame *locr0 = p->p_md.md_regs;
+ struct trapframe *locr0 = p->p_md.md_regs;
int rc;
uint32_t curinstr;
vaddr_t va;
@@ -1124,13 +1124,13 @@ process_sstep(struct proc *p, int sstep)
#if !defined(DDB)
const char *fn_name(vaddr_t);
#endif
-void stacktrace_subr(struct trap_frame *, int, int (*)(const char*, ...));
+void stacktrace_subr(struct trapframe *, int, int (*)(const char*, ...));
/*
* Print a stack backtrace.
*/
void
-stacktrace(struct trap_frame *regs)
+stacktrace(struct trapframe *regs)
{
stacktrace_subr(regs, 6, printf);
}
@@ -1146,7 +1146,7 @@ stacktrace(struct trap_frame *regs)
#endif
void
-stacktrace_subr(struct trap_frame *regs, int count,
+stacktrace_subr(struct trapframe *regs, int count,
int (*pr)(const char*, ...))
{
vaddr_t pc, sp, ra, va, subr;
@@ -1337,9 +1337,9 @@ loop:
else
(*pr)("(KERNEL INTERRUPT)\n");
sp = *(register_t *)sp;
- pc = ((struct trap_frame *)sp)->pc;
- ra = ((struct trap_frame *)sp)->ra;
- sp = ((struct trap_frame *)sp)->sp;
+ pc = ((struct trapframe *)sp)->pc;
+ ra = ((struct trapframe *)sp)->ra;
+ sp = ((struct trapframe *)sp)->sp;
goto loop;
}
@@ -1409,7 +1409,7 @@ fn_name(vaddr_t addr)
* destination.
*/
int
-fpe_branch_emulate(struct proc *p, struct trap_frame *tf, uint32_t insn,
+fpe_branch_emulate(struct proc *p, struct trapframe *tf, uint32_t insn,
vaddr_t dest)
{
struct vm_map *map = &p->p_vmspace->vm_map;
diff --git a/sys/arch/mips64/mips64/vm_machdep.c b/sys/arch/mips64/mips64/vm_machdep.c
index fbc0ca5b491..f49bed30773 100644
--- a/sys/arch/mips64/mips64/vm_machdep.c
+++ b/sys/arch/mips64/mips64/vm_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vm_machdep.c,v 1.32 2015/05/05 02:13:47 guenther Exp $ */
+/* $OpenBSD: vm_machdep.c,v 1.33 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 1988 University of Utah.
* Copyright (c) 1992, 1993
@@ -136,7 +136,7 @@ cpu_fork(p1, p2, stack, stacksize, func, arg)
}
pcb->pcb_context.val[10] = (register_t)proc_trampoline;
pcb->pcb_context.val[8] = (register_t)pcb +
- USPACE - sizeof(struct trap_frame);
+ USPACE - sizeof(struct trapframe);
pcb->pcb_context.val[1] = (register_t)arg;
pcb->pcb_context.val[0] = (register_t)func;
}
diff --git a/sys/arch/octeon/dev/octeon_intr.c b/sys/arch/octeon/dev/octeon_intr.c
index 2bcb2047b4f..a2be8b8005c 100644
--- a/sys/arch/octeon/dev/octeon_intr.c
+++ b/sys/arch/octeon/dev/octeon_intr.c
@@ -51,8 +51,8 @@ extern bus_space_handle_t iobus_h;
void octeon_intr_makemasks(void);
void octeon_splx(int);
-uint32_t octeon_iointr(uint32_t, struct trap_frame *);
-uint32_t octeon_aux(uint32_t, struct trap_frame *);
+uint32_t octeon_iointr(uint32_t, struct trapframe *);
+uint32_t octeon_aux(uint32_t, struct trapframe *);
int octeon_iointr_skip(struct intrhand *, uint64_t, uint64_t);
void octeon_setintrmask(int);
@@ -215,7 +215,7 @@ octeon_intr_makemasks()
* Interrupt dispatcher.
*/
uint32_t
-octeon_iointr(uint32_t hwpend, struct trap_frame *frame)
+octeon_iointr(uint32_t hwpend, struct trapframe *frame)
{
struct cpu_info *ci = curcpu();
int cpuid = cpu_number();
diff --git a/sys/arch/octeon/include/intr.h b/sys/arch/octeon/include/intr.h
index 51afa341243..88417321056 100644
--- a/sys/arch/octeon/include/intr.h
+++ b/sys/arch/octeon/include/intr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.h,v 1.6 2015/09/26 04:05:42 visa Exp $ */
+/* $OpenBSD: intr.h,v 1.7 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -189,8 +189,8 @@ void intr_barrier(void *);
extern uint32_t idle_mask;
-struct trap_frame;
-void set_intr(int, uint32_t, uint32_t(*)(uint32_t, struct trap_frame *));
+struct trapframe;
+void set_intr(int, uint32_t, uint32_t(*)(uint32_t, struct trapframe *));
uint32_t updateimask(uint32_t);
void dosoftint(void);
diff --git a/sys/arch/octeon/octeon/machdep.c b/sys/arch/octeon/octeon/machdep.c
index d75818a5ffb..825216bb4e3 100644
--- a/sys/arch/octeon/octeon/machdep.c
+++ b/sys/arch/octeon/octeon/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.71 2016/01/16 11:15:37 visa Exp $ */
+/* $OpenBSD: machdep.c,v 1.72 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 2009, 2010 Miodrag Vallat.
@@ -131,7 +131,7 @@ static void process_bootargs(void);
static uint64_t get_ncpusfound(void);
#ifdef MULTIPROCESSOR
-uint32_t ipi_intr(uint32_t, struct trap_frame *);
+uint32_t ipi_intr(uint32_t, struct trapframe *);
#endif
extern void parse_uboot_root(void);
@@ -432,7 +432,7 @@ mips_init(__register_t a0, __register_t a1, __register_t a2 __unused,
proc0.p_addr = proc0paddr = curcpu()->ci_curprocpaddr =
(struct user *)pmap_steal_memory(USPACE, NULL, NULL);
- proc0.p_md.md_regs = (struct trap_frame *)&proc0paddr->u_pcb.pcb_regs;
+ proc0.p_md.md_regs = (struct trapframe *)&proc0paddr->u_pcb.pcb_regs;
tlb_set_pid(MIN_USER_ASID);
/*
@@ -837,7 +837,7 @@ hw_cpu_hatch(struct cpu_info *ci)
* IPI dispatcher.
*/
uint32_t
-ipi_intr(uint32_t hwpend, struct trap_frame *frame)
+ipi_intr(uint32_t hwpend, struct trapframe *frame)
{
u_long cpuid = cpu_number();
diff --git a/sys/arch/sgi/include/intr.h b/sys/arch/sgi/include/intr.h
index 8f88c358f6c..3834bfa0d28 100644
--- a/sys/arch/sgi/include/intr.h
+++ b/sys/arch/sgi/include/intr.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr.h,v 1.46 2015/12/25 09:22:00 visa Exp $ */
+/* $OpenBSD: intr.h,v 1.47 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 2001-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -183,8 +183,8 @@ void intr_barrier(void *);
extern uint32_t idle_mask;
-struct trap_frame;
-void set_intr(int, uint32_t, uint32_t(*)(uint32_t, struct trap_frame *));
+struct trapframe;
+void set_intr(int, uint32_t, uint32_t(*)(uint32_t, struct trapframe *));
uint32_t updateimask(uint32_t);
void dosoftint(void);
diff --git a/sys/arch/sgi/localbus/imc.c b/sys/arch/sgi/localbus/imc.c
index 99e9ad0db79..f4ed8688f4f 100644
--- a/sys/arch/sgi/localbus/imc.c
+++ b/sys/arch/sgi/localbus/imc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: imc.c,v 1.20 2015/09/24 18:37:50 miod Exp $ */
+/* $OpenBSD: imc.c,v 1.21 2016/03/06 19:42:27 mpi Exp $ */
/* $NetBSD: imc.c,v 1.32 2011/07/01 18:53:46 dyoung Exp $ */
/*
@@ -86,7 +86,7 @@ struct cfdriver imc_cd = {
NULL, "imc", DV_DULL
};
-uint32_t imc_bus_error(uint32_t, struct trap_frame *);
+uint32_t imc_bus_error(uint32_t, struct trapframe *);
int imc_watchdog_cb(void *, int);
void imc_space_barrier(bus_space_tag_t, bus_space_handle_t, bus_size_t,
@@ -735,7 +735,7 @@ imc_bus_reset()
}
uint32_t
-imc_bus_error(uint32_t hwpend, struct trap_frame *tf)
+imc_bus_error(uint32_t hwpend, struct trapframe *tf)
{
uint32_t cpustat, giostat;
paddr_t cpuaddr, gioaddr;
diff --git a/sys/arch/sgi/localbus/int.c b/sys/arch/sgi/localbus/int.c
index 4eba6335916..bad3c1291c4 100644
--- a/sys/arch/sgi/localbus/int.c
+++ b/sys/arch/sgi/localbus/int.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: int.c,v 1.11 2014/09/30 06:51:58 jmatthew Exp $ */
+/* $OpenBSD: int.c,v 1.12 2016/03/06 19:42:27 mpi Exp $ */
/* $NetBSD: int.c,v 1.24 2011/07/01 18:53:46 dyoung Exp $ */
/*
@@ -75,7 +75,7 @@ paddr_t int2_get_base(void);
void int_8254_cal(void);
void int_8254_startclock(struct cpu_info *);
-uint32_t int_8254_intr0(uint32_t, struct trap_frame *);
+uint32_t int_8254_intr0(uint32_t, struct trapframe *);
/*
* INT2 Interrupt handling declarations: 16 local sources on 2 levels.
@@ -102,9 +102,9 @@ uint32_t int2_intem;
uint8_t int2_l0imask[NIPLS], int2_l1imask[NIPLS];
void int2_splx(int);
-uint32_t int2_l0intr(uint32_t, struct trap_frame *);
+uint32_t int2_l0intr(uint32_t, struct trapframe *);
void int2_l0makemasks(void);
-uint32_t int2_l1intr(uint32_t, struct trap_frame *);
+uint32_t int2_l1intr(uint32_t, struct trapframe *);
void int2_l1makemasks(void);
/*
@@ -513,7 +513,7 @@ int_8254_cal(void)
}
uint32_t
-int_8254_intr0(uint32_t hwpend, struct trap_frame *tf)
+int_8254_intr0(uint32_t hwpend, struct trapframe *tf)
{
struct cpu_info *ci = curcpu();
diff --git a/sys/arch/sgi/localbus/macebus.c b/sys/arch/sgi/localbus/macebus.c
index 4081ca6956f..e6aa16c0754 100644
--- a/sys/arch/sgi/localbus/macebus.c
+++ b/sys/arch/sgi/localbus/macebus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: macebus.c,v 1.63 2014/09/30 06:51:58 jmatthew Exp $ */
+/* $OpenBSD: macebus.c,v 1.64 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 2000-2004 Opsycon AB (www.opsycon.se)
@@ -57,8 +57,8 @@ int macebussubmatch(struct device *, void *, void *);
void macebus_intr_makemasks(void);
void macebus_splx(int);
-uint32_t macebus_iointr(uint32_t, struct trap_frame *);
-uint32_t macebus_aux(uint32_t, struct trap_frame *);
+uint32_t macebus_iointr(uint32_t, struct trapframe *);
+uint32_t macebus_aux(uint32_t, struct trapframe *);
int macebus_iointr_skip(struct intrhand *, uint64_t, uint64_t);
void crime_setintrmask(int);
@@ -633,7 +633,7 @@ macebus_iointr_skip(struct intrhand *ih, uint64_t mace_isr, uint64_t mace_imr)
* Macebus auxilary functions run each clock interrupt.
*/
uint32_t
-macebus_aux(uint32_t hwpend, struct trap_frame *cf)
+macebus_aux(uint32_t hwpend, struct trapframe *cf)
{
u_int64_t mask;
diff --git a/sys/arch/sgi/localbus/tcc.c b/sys/arch/sgi/localbus/tcc.c
index 133f30c687d..490a90fc977 100644
--- a/sys/arch/sgi/localbus/tcc.c
+++ b/sys/arch/sgi/localbus/tcc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcc.c,v 1.9 2016/01/05 05:27:54 visa Exp $ */
+/* $OpenBSD: tcc.c,v 1.10 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 2012 Miodrag Vallat.
@@ -50,7 +50,7 @@ struct cfdriver tcc_cd = {
NULL, "tcc", DV_DULL
};
-uint32_t tcc_bus_error(uint32_t, struct trap_frame *);
+uint32_t tcc_bus_error(uint32_t, struct trapframe *);
CACHE_PROTOS(tcc)
@@ -99,7 +99,7 @@ tcc_bus_reset()
}
uint32_t
-tcc_bus_error(uint32_t hwpend, struct trap_frame *tf)
+tcc_bus_error(uint32_t hwpend, struct trapframe *tf)
{
uint64_t intr, error, addr, errack;
unsigned int errtype;
diff --git a/sys/arch/sgi/sgi/intr_template.c b/sys/arch/sgi/sgi/intr_template.c
index 3091fdab2b0..ed0fdfc6517 100644
--- a/sys/arch/sgi/sgi/intr_template.c
+++ b/sys/arch/sgi/sgi/intr_template.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: intr_template.c,v 1.16 2015/12/25 09:22:00 visa Exp $ */
+/* $OpenBSD: intr_template.c,v 1.17 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 2009 Miodrag Vallat.
@@ -97,7 +97,7 @@ MASK_FUNCTIONNAME()
* Interrupt dispatcher.
*/
uint32_t
-INTR_FUNCTIONNAME(uint32_t hwpend, struct trap_frame *frame)
+INTR_FUNCTIONNAME(uint32_t hwpend, struct trapframe *frame)
{
struct cpu_info *ci = curcpu();
uint64_t imr, isr, mask;
diff --git a/sys/arch/sgi/sgi/ip27_machdep.c b/sys/arch/sgi/sgi/ip27_machdep.c
index 7d12e12970a..733d6e57159 100644
--- a/sys/arch/sgi/sgi/ip27_machdep.c
+++ b/sys/arch/sgi/sgi/ip27_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip27_machdep.c,v 1.72 2016/02/27 13:08:07 mpi Exp $ */
+/* $OpenBSD: ip27_machdep.c,v 1.73 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 2008, 2009 Miodrag Vallat.
@@ -81,8 +81,8 @@ int ip27_hub_intr_establish(int (*)(void *), void *, int, int,
void ip27_hub_intr_disestablish(int);
void ip27_hub_intr_clear(int);
void ip27_hub_intr_set(int);
-uint32_t hubpi_intr0(uint32_t, struct trap_frame *);
-uint32_t hubpi_intr1(uint32_t, struct trap_frame *);
+uint32_t hubpi_intr0(uint32_t, struct trapframe *);
+uint32_t hubpi_intr1(uint32_t, struct trapframe *);
void ip27_hub_intr_makemasks0(void);
void ip27_hub_intr_makemasks1(void);
void ip27_hub_setintrmask(int);
@@ -1018,8 +1018,8 @@ ip27_nmi(void *arg)
{
vaddr_t regs_offs;
register_t *regs, epc;
- struct trap_frame nmi_frame;
- extern int db_ktrap(int, struct trap_frame *);
+ struct trapframe nmi_frame;
+ extern int db_ktrap(int, struct trapframe *);
/*
* Build a ddb frame from the registers saved in the NMI KREGS
diff --git a/sys/arch/sgi/sgi/ip30_machdep.c b/sys/arch/sgi/sgi/ip30_machdep.c
index cb77373213a..17be960e0dc 100644
--- a/sys/arch/sgi/sgi/ip30_machdep.c
+++ b/sys/arch/sgi/sgi/ip30_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip30_machdep.c,v 1.64 2016/02/27 13:08:07 mpi Exp $ */
+/* $OpenBSD: ip30_machdep.c,v 1.65 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 2008, 2009 Miodrag Vallat.
@@ -62,7 +62,7 @@ extern void xheart_setintrmask(int);
extern struct user *proc0paddr;
#endif
-uint32_t ip30_lights_frob(uint32_t, struct trap_frame *);
+uint32_t ip30_lights_frob(uint32_t, struct trapframe *);
paddr_t ip30_widget_short(int16_t, u_int);
paddr_t ip30_widget_long(int16_t, u_int);
paddr_t ip30_widget_map(int16_t, u_int, bus_addr_t *, bus_size_t *);
@@ -386,7 +386,7 @@ ip30_find_video()
* Fun with the lightbar
*/
uint32_t
-ip30_lights_frob(uint32_t hwpend, struct trap_frame *cf)
+ip30_lights_frob(uint32_t hwpend, struct trapframe *cf)
{
uint32_t gpioold, gpio;
@@ -436,12 +436,12 @@ ip30_get_ncpusfound(void)
void
ip30_nmi_handler()
{
- extern int db_ktrap(int, struct trap_frame *);
- extern void stacktrace(struct trap_frame *);
- struct trap_frame *fr0;
+ extern int db_ktrap(int, struct trapframe *);
+ extern void stacktrace(struct trapframe *);
+ struct trapframe *fr0;
int s;
#ifdef MULTIPROCESSOR
- struct trap_frame *fr1;
+ struct trapframe *fr1;
struct cpu_info *ci = curcpu();
#endif
@@ -458,10 +458,10 @@ ip30_nmi_handler()
printf("NMI\n");
- fr0 = (struct trap_frame *)PHYS_TO_XKPHYS(IP30_MEMORY_BASE + 0x4000,
+ fr0 = (struct trapframe *)PHYS_TO_XKPHYS(IP30_MEMORY_BASE + 0x4000,
CCA_CACHED);
#ifdef MULTIPROCESSOR
- fr1 = (struct trap_frame *)PHYS_TO_XKPHYS(IP30_MEMORY_BASE + 0x6000,
+ fr1 = (struct trapframe *)PHYS_TO_XKPHYS(IP30_MEMORY_BASE + 0x6000,
CCA_CACHED);
#endif
diff --git a/sys/arch/sgi/sgi/machdep.c b/sys/arch/sgi/sgi/machdep.c
index bd67676657f..069aaa1b755 100644
--- a/sys/arch/sgi/sgi/machdep.c
+++ b/sys/arch/sgi/sgi/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.150 2014/12/10 15:29:53 mikeb Exp $ */
+/* $OpenBSD: machdep.c,v 1.151 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 2003-2004 Opsycon AB (www.opsycon.se / www.opsycon.com)
@@ -587,7 +587,7 @@ mips_init(int argc, void *argv, caddr_t boot_esym)
proc0.p_cpu = ci;
proc0.p_addr = proc0paddr = ci->ci_curprocpaddr =
(struct user *)pmap_steal_memory(USPACE, NULL, NULL);
- proc0.p_md.md_regs = (struct trap_frame *)&proc0paddr->u_pcb.pcb_regs;
+ proc0.p_md.md_regs = (struct trapframe *)&proc0paddr->u_pcb.pcb_regs;
tlb_set_pid(MIN_USER_ASID);
/*
@@ -1066,7 +1066,7 @@ printf("perfcnt error %d\n", cmd);
*/
void
rm7k_perfintr(trapframe)
- struct trap_frame *trapframe;
+ struct trapframe *trapframe;
{
struct proc *p = curproc;
@@ -1081,7 +1081,7 @@ rm7k_perfintr(trapframe)
int
rm7k_watchintr(trapframe)
- struct trap_frame *trapframe;
+ struct trapframe *trapframe;
{
return(0);
}
diff --git a/sys/arch/sgi/xbow/xheart.c b/sys/arch/sgi/xbow/xheart.c
index 18c4c485736..cff9b445f2f 100644
--- a/sys/arch/sgi/xbow/xheart.c
+++ b/sys/arch/sgi/xbow/xheart.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xheart.c,v 1.29 2015/09/26 04:37:18 visa Exp $ */
+/* $OpenBSD: xheart.c,v 1.30 2016/03/06 19:42:27 mpi Exp $ */
/*
* Copyright (c) 2008 Miodrag Vallat.
@@ -70,7 +70,7 @@ int xheart_intr_establish(int (*)(void *), void *, int, int, const char *,
void xheart_intr_disestablish(int);
void xheart_intr_clear(int);
void xheart_intr_set(int);
-uint32_t xheart_intr_handler(uint32_t, struct trap_frame *);
+uint32_t xheart_intr_handler(uint32_t, struct trapframe *);
void xheart_intr_makemasks(void);
void xheart_setintrmask(int);
void xheart_splx(int);
@@ -86,7 +86,7 @@ struct timecounter xheart_timecounter = {
.tc_quality = 100
};
-extern uint32_t ip30_lights_frob(uint32_t, struct trap_frame *);
+extern uint32_t ip30_lights_frob(uint32_t, struct trapframe *);
/*
* HEART interrupt handling declarations: 64 sources; 5 levels.