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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user