X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/33e49b2e6d599bc56326841b5b373b9f76adc5f7..6093edb55a1c35ac1163e244f02023345e3e3aca:/netwatch/firstrun.c diff --git a/netwatch/firstrun.c b/netwatch/firstrun.c index efa0600..e561c4f 100644 --- a/netwatch/firstrun.c +++ b/netwatch/firstrun.c @@ -1,3 +1,13 @@ +/* firstrun.c + * First-run handler + * 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 @@ -14,6 +24,7 @@ extern int _bss, _bssend; 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); +extern void cs410_pwrbtn_handler(smi_event_t ev); extern pci_driver_t *drivers[]; @@ -59,6 +70,9 @@ void smi_init() { smi_register_handler(SMI_EVENT_GBL_RLS, gbl_rls_handler); smi_enable_event(SMI_EVENT_GBL_RLS); + + smi_register_handler(SMI_EVENT_PWRBTN, cs410_pwrbtn_handler); + smi_enable_event(SMI_EVENT_PWRBTN); smi_enable();