ps2 and pci: remove debugger commands on uninit of modules

This commit is contained in:
Jerome Duval 2013-01-18 21:34:53 +01:00
parent 02d04a7664
commit 4a9b48c1c5
2 changed files with 7 additions and 0 deletions

View File

@ -504,6 +504,9 @@ pci_uninit(void)
remove_debugger_command("inb", &display_io);
remove_debugger_command("in8", &display_io);
remove_debugger_command("pcistatus", &pcistatus);
remove_debugger_command("pcirefresh", &pcirefresh);
delete gPCI;
}

View File

@ -194,5 +194,9 @@ ps2_service_exit(void)
wait_for_thread(sServiceThread, NULL);
delete_sem(sServiceSem);
delete_packet_buffer(sServiceCmdBuffer);
#ifdef DEBUG_PUBLISHING
remove_debugger_command("ps2republish", &ps2_republish);
#endif
TRACE("ps2: ps2_service_exit done\n");
}