]> Joshua Wise's Git repositories - netwatch.git/blob - aseg/firstrun.c
Move dolog to output
[netwatch.git] / aseg / firstrun.c
1 #include <io.h>
2 #include <smi.h>
3 #include <pci.h>
4 #include <reg-82801b.h>
5 #include "vga-overlay.h"
6
7 void __firstrun_start() {
8         dologf("NetWatch running");
9
10         /* Try really hard to shut up USB_LEGKEY. */
11         pci_write16(0, 31, 2, 0xC0, pci_read16(0, 31, 2, 0xC0));
12         pci_write16(0, 31, 2, 0xC0, 0);
13         pci_write16(0, 31, 4, 0xC0, pci_read16(0, 31, 4, 0xC0));
14         pci_write16(0, 31, 4, 0xC0, 0);
15
16         /* Turn on the SMIs we want */
17         outb(0x830, inb(0x830) | ICH2_SMI_EN_SWSMI_TMR_EN);
18         outb(0x848, ICH2_DEVTRAP_EN_KBC_TRP_EN);
19         smi_enable();
20 }
21
This page took 0.027841 seconds and 4 git commands to generate.