diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-07-04 22:03:31 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-07-04 22:03:31 +0000 |
commit | 858ab36526e4038a4de75665fd90d3ec89d15e17 (patch) | |
tree | 3f39813031bd7152aa2b6d936d317a65b3333b32 | |
parent | f664e3bda8ba8eb8d43ca40bae934aeb5acaa806 (diff) |
Change trapbase from a pointer to a variable-length array such that it can
actually be used to access trap vectors.
-rw-r--r-- | sys/arch/sparc64/include/cpu.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/include/cpu.h b/sys/arch/sparc64/include/cpu.h index 59c938281aa..709165826e1 100644 --- a/sys/arch/sparc64/include/cpu.h +++ b/sys/arch/sparc64/include/cpu.h @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.h,v 1.61 2008/04/17 19:52:27 kettenis Exp $ */ +/* $OpenBSD: cpu.h,v 1.62 2008/07/04 22:03:30 kettenis Exp $ */ /* $NetBSD: cpu.h,v 1.28 2001/06/14 22:56:58 thorpej Exp $ */ /* @@ -304,7 +304,7 @@ int emul_popc(int32_t, struct proc *, union sigval, struct trapframe64 *); struct trapvec { int tv_instr[8]; /* the eight instructions */ }; -extern struct trapvec *trapbase; /* the 256 vectors */ +extern struct trapvec trapbase[]; /* the 256 vectors */ extern void wzero(void *, u_int); extern void wcopy(const void *, void *, u_int); |