Minor fixes to comments.
[AROS.git] / rom / kernel / remexceptionhandler.c
blob7d5b61280f2df917e284e47db022368264f59a96
1 #include <aros/kernel.h>
2 #include <aros/libcall.h>
3 #include <proto/exec.h>
5 #include <kernel_base.h>
6 #include <kernel_cpu.h>
7 #include <kernel_debug.h>
8 #include <kernel_interrupts.h>
9 #include <kernel_objects.h>
11 /* We use own implementation of bug(), so we don't need aros/debug.h */
12 #define D(x)
14 /*****************************************************************************
16 NAME */
17 #include <proto/kernel.h>
19 AROS_LH1(void, KrnRemExceptionHandler,
21 /* SYNOPSIS */
22 AROS_LHA(void *, handle, A0),
24 /* LOCATION */
25 struct KernelBase *, KernelBase, 15, Kernel)
27 /* FUNCTION
28 Remove previously installed CPU exception handler
30 INPUTS
31 handle - an opaque handler returned by KrnAddExceptionHandler()
32 function
34 RESULT
35 None
37 NOTES
39 EXAMPLE
41 BUGS
43 SEE ALSO
45 INTERNALS
47 ******************************************************************************/
49 AROS_LIBFUNC_INIT
51 struct IntrNode *h = handle;
53 if (h && (h->in_type == it_exception))
55 (void)goSuper();
57 Disable();
58 REMOVE(h);
59 Enable();
61 krnFreeIntrNode(h);
63 goUser();
66 AROS_LIBFUNC_EXIT