Lines Matching full:handler
27 #define __EXCEPTION_STUB_NAME(handler, vec) \ argument
28 _ ## handler ## _vector_ ## vec ## _stub
30 #define _EXCEPTION_STUB_NAME(handler, vec) \ argument
31 __EXCEPTION_STUB_NAME(handler, vec) \
44 #define __EXCEPTION_CONNECT(handler, vector, dpl, codepush) \ argument
49 ".global " STRINGIFY(_EXCEPTION_STUB_NAME(handler, vector)) "\n\t" \
50 STRINGIFY(_EXCEPTION_STUB_NAME(handler, vector)) ":\n\t" \
53 "push $" STRINGIFY(handler) "\n\t" \
60 * @brief Connect an exception handler that doesn't expect error code
62 * Assign an exception handler to a particular vector in the IDT.
64 * @param handler A handler function of the prototype
65 * void handler(const z_arch_esf_t *esf)
68 #define _EXCEPTION_CONNECT_NOCODE(handler, vector, dpl) \ argument
69 __EXCEPTION_CONNECT(handler, vector, dpl, "push $0\n\t")
72 * @brief Connect an exception handler that does expect error code
74 * Assign an exception handler to a particular vector in the IDT.
77 * @param handler A handler function of the prototype
78 * void handler(const z_arch_esf_t *esf)
81 #define _EXCEPTION_CONNECT_CODE(handler, vector, dpl) \ argument
82 __EXCEPTION_CONNECT(handler, vector, dpl, "")