Define IDTVEC() and TRAP() assembly macros so that they can be shared
with several files.
This commit is contained in:
parent
eb2a2211ff
commit
5eb39b8d24
@ -138,4 +138,15 @@
|
||||
#define MEXITCOUNT
|
||||
#endif /* GPROF */
|
||||
|
||||
#ifdef LOCORE
|
||||
/*
|
||||
* Convenience macros for declaring interrupt entry points and trap
|
||||
* stubs.
|
||||
*/
|
||||
#define IDTVEC(name) ALIGN_TEXT; .globl __CONCAT(X,name); \
|
||||
.type __CONCAT(X,name),@function; __CONCAT(X,name):
|
||||
#define TRAP(a) pushl $(a) ; jmp alltraps
|
||||
|
||||
#endif /* LOCORE */
|
||||
|
||||
#endif /* !_MACHINE_ASMACROS_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user