traps.h 843 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. #define JMP_OP 0x5a000000
  16. #define JSR_OP 0x5e000000
  17. #define VECTOR(address) ((JMP_OP)|((unsigned long)address))
  18. #define REDIRECT(address) ((JSR_OP)|((unsigned long)address))
  19. #define TRACE_VEC 5
  20. #define TRAP0_VEC 8
  21. #define TRAP1_VEC 9
  22. #define TRAP2_VEC 10
  23. #define TRAP3_VEC 11
  24. #if defined(__H8300H__)
  25. #define NR_TRAPS 12
  26. #endif
  27. #if defined(__H8300S__)
  28. #define NR_TRAPS 16
  29. #endif
  30. #endif /* _H8300_TRAPS_H */