Define IDTVEC() and TRAP() assembly macros so that they can be shared

with several files.
This commit is contained in:
John Baldwin 2003-11-03 21:09:17 +00:00
parent eb2a2211ff
commit 5eb39b8d24

View File

@ -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_ */