Improved shutting down procedure

This commit is contained in:
Alex
2022-12-29 05:25:43 +02:00
parent ffdbc6e598
commit 3f166b97c7
4 changed files with 61 additions and 7 deletions

View File

@ -47,7 +47,7 @@ void KernelMainThread()
KPrint("Initializing Network Interface Manager...");
NIManager = new NetworkInterfaceManager::NetworkInterface;
KPrint("Starting Network Interface Manager...");
// NIManager->StartService();
NIManager->StartService();
KPrint("Setting up userspace...");
@ -91,10 +91,7 @@ Exit:
void KernelShutdownThread(bool Reboot)
{
delete NIManager;
if (DriverManager)
DriverManager->UnloadAllDrivers();
BeforeShutdown();
trace("Shutting Down/Rebooting...");
if (Reboot)