X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/33e49b2e6d599bc56326841b5b373b9f76adc5f7..789ebb2d04033053b3cfeaa73648e3a1c3b3d8f5:/netwatch/smi.c diff --git a/netwatch/smi.c b/netwatch/smi.c index d519341..88570a6 100644 --- a/netwatch/smi.c +++ b/netwatch/smi.c @@ -1,3 +1,13 @@ +/* smi.c + * First-run SMI C entry point + * NetWatch system management mode administration console + * + * Copyright (c) 2008 Jacob Potter and Joshua Wise. All rights reserved. + * This program is free software; you can redistribute and/or modify it under + * the terms found in the file LICENSE in the root of this source tree. + * + */ + #include #include #include @@ -64,14 +74,8 @@ extern void timer_handler(smi_event_t ev); extern void kbc_handler(smi_event_t ev); extern void gbl_rls_handler(smi_event_t ev); -void __firstrun_stub() { - - /* Try really hard to shut up USB_LEGKEY. */ - pci_write16(0, 31, 2, 0xC0, pci_read16(0, 31, 2, 0xC0)); - pci_write16(0, 31, 2, 0xC0, 0); - pci_write16(0, 31, 4, 0xC0, pci_read16(0, 31, 4, 0xC0)); - pci_write16(0, 31, 4, 0xC0, 0); - +void __firstrun_stub() +{ /* Turn on the SMIs we want */ smi_disable();