+/* 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 <io.h>
#include <smi.h>
#include <pci.h>
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[];
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();