2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 #include <asm/linkage.h>
7 #include <exec/ptrace.h>
8 #include <exec/alerts.h>
9 #include <proto/exec.h>
10 #include <aros/debug.h>
12 #include <asm/registers.h>
15 #include "pp_exec_internal.h"
17 void do_TRAP(struct pt_regs regs
)
21 kprintf("*** trap: eip = %x eflags = %x ds = %x sp ~= %x\n",
22 regs
.eip
, regs
.eflags
, regs
.xds
, ®s
);
24 switch (regs
.orig_eax
) {
32 alert
= AT_DeadEnd
| 0x100 | regs
.orig_eax
;
38 void Init_Traps(void) {
39 INSTALL_TRAP_HANDLER(TRAP_1
, _sys_trap1_handler
);