Implement lock IRQ nesting via stack variables/contexts
All checks were successful
Build documentation / build-and-deploy (push) Successful in 21s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 21s
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
#ifndef _KERNEL_SYS_IRQ_H
|
||||
#define _KERNEL_SYS_IRQ_H
|
||||
|
||||
void irq_save (void);
|
||||
void irq_restore (void);
|
||||
#include <sys/spin_lock.h>
|
||||
|
||||
void irq_save (spin_lock_ctx_t* ctx);
|
||||
void irq_restore (spin_lock_ctx_t* ctx);
|
||||
|
||||
#endif // _KERNEL_SYS_IRQ_H
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
#ifndef _KERNEL_SYS_SPIN_LOCK_H
|
||||
#define _KERNEL_SYS_SPIN_LOCK_H
|
||||
|
||||
#include <libk/std.h>
|
||||
|
||||
#if defined(__x86_64__)
|
||||
typedef uint64_t spin_lock_ctx_t;
|
||||
#endif
|
||||
|
||||
void spin_lock_relax (void);
|
||||
|
||||
#endif // _KERNEL_SYS_SPIN_LOCK_H
|
||||
|
||||
Reference in New Issue
Block a user