Kernel: Fix xHCI controller destruction

Port updater task was not actually able to exit without a kernel panic.
This patch makes controller wait until port updater exits itself :D
This commit is contained in:
2025-02-10 22:58:57 +02:00
parent 11310e7615
commit d0452a3510
2 changed files with 8 additions and 4 deletions

View File

@@ -73,10 +73,11 @@ namespace Kernel
Mutex m_mutex;
Process* m_port_updater { nullptr };
BAN::Atomic<Process*> m_port_updater { nullptr };
ThreadBlocker m_port_thread_blocker;
BAN::Atomic<bool> m_port_changed { false };
bool m_running { true };
bool m_ports_initialized { false };
PCI::Device& m_pci_device;