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