Allow multiple inclusion of trap.h. This has always been broken, but

until recently never caused problems.
This commit is contained in:
nwhitehorn 2012-03-29 02:02:14 +00:00
parent 84886cd55f
commit dc06a3cb59
3 changed files with 10 additions and 4 deletions

View File

@ -6,7 +6,3 @@
#include <machine/trap_booke.h>
#endif
#ifndef LOCORE
struct trapframe;
void trap(struct trapframe *);
#endif

View File

@ -119,4 +119,9 @@
#define EXC_PGM_PRIV (1UL << 18)
#define EXC_PGM_TRAP (1UL << 17)
#ifndef LOCORE
struct trapframe;
void trap(struct trapframe *);
#endif
#endif /* _POWERPC_TRAP_H_ */

View File

@ -52,4 +52,9 @@
#define EXC_LAST 255
#ifndef LOCORE
struct trapframe;
void trap(struct trapframe *);
#endif
#endif /* _POWERPC_TRAP_H_ */