XHCI works on real hardware!

This commit is contained in:
2026-03-24 22:12:36 +01:00
parent b2e4a3802d
commit 0478570b2b
11 changed files with 215 additions and 102 deletions

View File

@@ -1,7 +1,7 @@
#include <sys/spin_lock.h>
/// Relax the spinlock using AMD64 pause instruction
void spin_lock_relax (void) { __asm__ volatile ("pause"); }
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");