X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/47c4e0c19ae8526b14ce4e0d7b243f7a4dc6fafd..bffa3430fbbaaad29bec0b5bee9c1f0bfc7fd068:/lunaix-os/includes/lunaix/kpreempt.h diff --git a/lunaix-os/includes/lunaix/kpreempt.h b/lunaix-os/includes/lunaix/kpreempt.h index 400aaff..ef1680b 100644 --- a/lunaix-os/includes/lunaix/kpreempt.h +++ b/lunaix-os/includes/lunaix/kpreempt.h @@ -5,19 +5,6 @@ #include #include -#define _preemptible \ - __attribute__((section(".kf.preempt"))) no_inline - -#define ensure_preempt_caller() \ - do { \ - extern int __kf_preempt_start[]; \ - extern int __kf_preempt_end[]; \ - ptr_t _retaddr = abi_get_retaddr(); \ - assert_msg((ptr_t)__kf_preempt_start <= _retaddr \ - && _retaddr < (ptr_t)__kf_preempt_end, \ - "caller must be kernel preemptible"); \ - } while(0) - static inline void set_preemption() {