Remove spin_lock_save_flags() and spin_lock_restore_flags()
All checks were successful
Build ISO image / build-and-deploy (push) Successful in 1m31s
Build documentation / build-and-deploy (push) Successful in 1m2s

This commit is contained in:
2026-04-27 18:11:18 +02:00
parent e5ebd7f3ba
commit 90084652fa
2 changed files with 0 additions and 12 deletions

View File

@@ -2,11 +2,3 @@
/// Relax the spinlock using AMD64 pause instruction
void spin_lock_relax(void) { __asm__ volatile("pause" ::: "memory"); }
void spin_lock_save_flags(uint64_t* flags) {
__asm__ volatile("pushfq; cli; popq %0" : "=rm"(*flags)::"memory");
}
void spin_lock_restore_flags(uint64_t flags) {
__asm__ volatile("pushq %0; popfq" ::"rm"(flags) : "memory", "cc");
}

View File

@@ -5,8 +5,4 @@
void spin_lock_relax(void);
void spin_lock_save_flags(uint64_t* flags);
void spin_lock_restore_flags(uint64_t flags);
#endif // _KERNEL_SYS_SPIN_LOCK_H