diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-06-06 03:20:59 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2009-06-06 03:20:59 +0000 |
commit | 034e75d22e9fec0a70df06f1255b6448c8021d6b (patch) | |
tree | 28888057d8f330d5ebc8f742e9d051acf7b1a0ef /sys/arch/amd64 | |
parent | caeb2c7cc4eec6ee9431d8bda5f2b44ed059af3e (diff) |
option X86EMU is how this subsystem is brought into a kernel
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r-- | sys/arch/amd64/conf/GENERIC | 4 | ||||
-rw-r--r-- | sys/arch/amd64/conf/files.amd64 | 4 | ||||
-rw-r--r-- | sys/arch/amd64/pci/vga_post.c | 20 |
3 files changed, 14 insertions, 14 deletions
diff --git a/sys/arch/amd64/conf/GENERIC b/sys/arch/amd64/conf/GENERIC index 10ffde59e04..b31b2f3e497 100644 --- a/sys/arch/amd64/conf/GENERIC +++ b/sys/arch/amd64/conf/GENERIC @@ -1,4 +1,4 @@ -# $OpenBSD: GENERIC,v 1.268 2009/06/06 00:35:00 pirofti Exp $ +# $OpenBSD: GENERIC,v 1.269 2009/06/06 03:20:57 deraadt Exp $ # # For further information on compiling OpenBSD kernels, see the config(8) # man page. @@ -275,7 +275,7 @@ pckbd* at pckbc? # PC keyboard pms* at pckbc? # PS/2 mouse for wsmouse pmsi* at pckbc? # PS/2 "Intelli"mouse for wsmouse vga0 at isa? -option VGA_POST # we can repost video cards +option X86EMU # to POST video cards vga* at pci? wsdisplay* at vga? wskbd* at pckbd? mux 1 diff --git a/sys/arch/amd64/conf/files.amd64 b/sys/arch/amd64/conf/files.amd64 index ef617ff155b..f772602558c 100644 --- a/sys/arch/amd64/conf/files.amd64 +++ b/sys/arch/amd64/conf/files.amd64 @@ -1,4 +1,4 @@ -# $OpenBSD: files.amd64,v 1.50 2009/06/06 00:35:00 pirofti Exp $ +# $OpenBSD: files.amd64,v 1.51 2009/06/06 03:20:57 deraadt Exp $ maxpartitions 16 maxusers 2 16 128 @@ -109,7 +109,7 @@ include "dev/pci/files.pci" file arch/amd64/pci/pci_machdep.c pci file arch/amd64/pci/iommu.c pci file arch/amd64/pci/pciide_machdep.c pciide -file arch/amd64/pci/vga_post.c vga_pci & vga_post +file arch/amd64/pci/vga_post.c vga_pci & x86emu include "dev/puc/files.puc" diff --git a/sys/arch/amd64/pci/vga_post.c b/sys/arch/amd64/pci/vga_post.c index 1cf51cf541b..bf2ddb861a2 100644 --- a/sys/arch/amd64/pci/vga_post.c +++ b/sys/arch/amd64/pci/vga_post.c @@ -1,5 +1,5 @@ +/* $OpenBSD: vga_post.c,v 1.3 2009/06/06 03:20:57 deraadt Exp $ */ /* $NetBSD: vga_post.c,v 1.12 2009/03/15 21:32:36 cegger Exp $ */ -/* $OpenBSD: vga_post.c,v 1.2 2009/06/06 00:49:08 deraadt Exp $ */ /*- * Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>. @@ -48,7 +48,7 @@ #define BASE_MEMORY 65536 /* How much memory to allocate in Real Mode */ struct vga_post { - struct X86EMU emu; + struct x86emu emu; vaddr_t sys_image; uint32_t initial_eax; uint8_t bios_data[PAGE_SIZE]; @@ -61,7 +61,7 @@ void ddb_vgapost(void); #endif static uint8_t -vm86_emu_inb(struct X86EMU *emu, uint16_t port) +vm86_emu_inb(struct x86emu *emu, uint16_t port) { if (port == 0xb2) /* APM scratch register */ return 0; @@ -73,7 +73,7 @@ vm86_emu_inb(struct X86EMU *emu, uint16_t port) } static uint16_t -vm86_emu_inw(struct X86EMU *emu, uint16_t port) +vm86_emu_inw(struct x86emu *emu, uint16_t port) { if (port >= 0x80 && port < 0x88) /* POST status register */ return 0; @@ -82,7 +82,7 @@ vm86_emu_inw(struct X86EMU *emu, uint16_t port) } static uint32_t -vm86_emu_inl(struct X86EMU *emu, uint16_t port) +vm86_emu_inl(struct x86emu *emu, uint16_t port) { if (port >= 0x80 && port < 0x88) /* POST status register */ return 0; @@ -91,7 +91,7 @@ vm86_emu_inl(struct X86EMU *emu, uint16_t port) } static void -vm86_emu_outb(struct X86EMU *emu, uint16_t port, uint8_t val) +vm86_emu_outb(struct x86emu *emu, uint16_t port, uint8_t val) { if (port == 0xb2) /* APM scratch register */ return; @@ -103,7 +103,7 @@ vm86_emu_outb(struct X86EMU *emu, uint16_t port, uint8_t val) } static void -vm86_emu_outw(struct X86EMU *emu, uint16_t port, uint16_t val) +vm86_emu_outw(struct x86emu *emu, uint16_t port, uint16_t val) { if (port >= 0x80 && port < 0x88) /* POST status register */ return; @@ -112,7 +112,7 @@ vm86_emu_outw(struct X86EMU *emu, uint16_t port, uint16_t val) } static void -vm86_emu_outl(struct X86EMU *emu, uint16_t port, uint32_t val) +vm86_emu_outl(struct x86emu *emu, uint16_t port, uint32_t val) { if (port >= 0x80 && port < 0x88) /* POST status register */ return; @@ -171,7 +171,7 @@ vga_post_init(int bus, int device, int function) pmap_update(pmap_kernel()); memset(&sc->emu, 0, sizeof(sc->emu)); - X86EMU_init_default(&sc->emu); + x86emu_init_default(&sc->emu); sc->emu.emu_inb = vm86_emu_inb; sc->emu.emu_inw = vm86_emu_inw; sc->emu.emu_inl = vm86_emu_inl; @@ -204,7 +204,7 @@ vga_post_call(struct vga_post *sc) sc->emu.x86.R_ESP = 0; /* Jump straight into the VGA BIOS POST code */ - X86EMU_exec_call(&sc->emu, 0xc000, 0x0003); + x86emu_exec_call(&sc->emu, 0xc000, 0x0003); } void |