traps.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * linux/include/asm-h8300/traps.h
  3. *
  4. * Copyright (C) 2003 Yoshinori Sato <ysato@users.sourceforge.jp>
  5. *
  6. * This file is subject to the terms and conditions of the GNU General Public
  7. * License. See the file COPYING in the main directory of this archive
  8. * for more details.
  9. */
  10. #ifndef _H8300_TRAPS_H
  11. #define _H8300_TRAPS_H
  12. extern void _system_call(void);
  13. extern void _interrupt_entry(void);
  14. extern void _trace_break(void);
  15. extern void _nmi(void);
  16. extern void _interrupt_entry(void);
  17. extern unsigned long *_interrupt_redirect_table;
  18. #define JMP_OP 0x5a000000
  19. #define JSR_OP 0x5e000000
  20. #define VECTOR(address) ((JMP_OP)|((unsigned long)address))
  21. #define REDIRECT(address) ((JSR_OP)|((unsigned long)address))
  22. #define CPU_VECTOR ((unsigned long *)0x000000)
  23. #define ADDR_MASK (0xffffff)
  24. #define TRACE_VEC 5
  25. #define TRAP0_VEC 8
  26. #define TRAP1_VEC 9
  27. #define TRAP2_VEC 10
  28. #define TRAP3_VEC 11
  29. extern char _start, _etext;
  30. #define check_kernel_text(addr) \
  31. ((addr >= (unsigned long)(&_start)) && \
  32. (addr < (unsigned long)(&_etext)))
  33. #endif /* _H8300_TRAPS_H */