Define IDTVEC() and TRAP() assembly macros so that they can be shared
with several files.
This commit is contained in:
parent
eb2a2211ff
commit
5eb39b8d24
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=121978
@ -138,4 +138,15 @@
|
|||||||
#define MEXITCOUNT
|
#define MEXITCOUNT
|
||||||
#endif /* GPROF */
|
#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_ */
|
#endif /* !_MACHINE_ASMACROS_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user