Wrap hardware trap types in ifdef _kernel.
This commit is contained in:
parent
0faa0047f4
commit
539ccfaeb2
@ -29,6 +29,8 @@
|
||||
#ifndef _MACHINE_TRAP_H_
|
||||
#define _MACHINE_TRAP_H_
|
||||
|
||||
#ifdef _KERNEL
|
||||
|
||||
#define T_RESERVED 0x0
|
||||
#define T_POWER_ON 0x1
|
||||
#define T_WATCHDOG 0x2
|
||||
@ -70,6 +72,8 @@
|
||||
extern const char *trap_msg[];
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
#define ST_BREAKPOINT 0x1
|
||||
#define ST_SYSCALL 0x9
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user