traps.h 605 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (C) 2011 Tobias Klauser <tklauser@distanz.ch>
  3. * Copyright (C) 2004 Microtronix Datacom Ltd.
  4. *
  5. * This file is subject to the terms and conditions of the GNU General Public
  6. * License. See the file "COPYING" in the main directory of this archive
  7. * for more details.
  8. */
  9. #ifndef _ASM_NIOS2_TRAPS_H
  10. #define _ASM_NIOS2_TRAPS_H
  11. #define TRAP_ID_SYSCALL 0
  12. #ifndef __ASSEMBLY__
  13. void _exception(int signo, struct pt_regs *regs, int code, unsigned long addr);
  14. void do_page_fault(struct pt_regs *regs, unsigned long cause,
  15. unsigned long address);
  16. #endif
  17. #endif /* _ASM_NIOS2_TRAPS_H */