From 79266dbd9ebb56ee20a72ce94d385388a689c71c Mon Sep 17 00:00:00 2001 From: bellard Date: Sun, 24 Sep 2006 19:36:49 +0000 Subject: [PATCH] updated git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2178 c046a42c-6fe2-441c-8c8c-71466251a162 --- pc-bios/bios.bin | Bin 131072 -> 131072 bytes pc-bios/bios.diff | 73 +++++++++++++++++++++++++++++------------------------- 2 files changed, 39 insertions(+), 34 deletions(-) diff --git a/pc-bios/bios.bin b/pc-bios/bios.bin index 051fdbb1483a22a58ddbe6cf9d6edf51c31bff87..8e6de368a07f8f419ed7bc50514e68fdfd074583 100644 GIT binary patch delta 109 zcmZo@;Am*z*kH)Z=fuFku&HQ=g$4`53-0fe?Rk~?7 +#include @@ -920,9 +925,9 @@ diff -ruN --exclude Makefile bios/pad.c bios.new/pad.c + } + return 0; +} -diff -ruN --exclude Makefile bios/rombios32.c bios.new/rombios32.c ---- bios/rombios32.c 1970-01-01 01:00:00.000000000 +0100 -+++ bios.new/rombios32.c 2006-09-24 20:22:58.000000000 +0200 +diff -ruN --exclude Makefile bios.org/rombios32.c bios/rombios32.c +--- bios.org/rombios32.c 1970-01-01 01:00:00.000000000 +0100 ++++ bios/rombios32.c 2006-09-24 21:29:27.000000000 +0200 @@ -0,0 +1,1324 @@ +// 32 bit Bochs BIOS init code +// Copyright (C) 2006 Fabrice Bellard @@ -1490,9 +1495,9 @@ diff -ruN --exclude Makefile bios/rombios32.c bios.new/rombios32.c + /* remap the BIOS to shadow RAM an keep it read/write while we + are writing tables */ + memcpy((void *)BIOS_TMP_STORAGE, (void *)0x000f0000, 0x10000); -+ v = pci_config_readb(d, 0x67); ++ v = pci_config_readb(d, 0x59); + v = (v & 0x0f) | (0x30); -+ pci_config_writeb(d, 0x67, v); ++ pci_config_writeb(d, 0x59, v); + memcpy((void *)0x000f0000, (void *)BIOS_TMP_STORAGE, 0x10000); + + i440_pcidev = *d; @@ -1503,9 +1508,9 @@ diff -ruN --exclude Makefile bios/rombios32.c bios.new/rombios32.c + PCIDevice *d = &i440_pcidev; + int v; + -+ v = pci_config_readb(d, 0x67); -+ v = (v & 0x0f) | (0x20); -+ pci_config_writeb(d, 0x67, v); ++ v = pci_config_readb(d, 0x59); ++ v = (v & 0x0f) | (0x10); ++ pci_config_writeb(d, 0x59, v); +} + +static void pci_bios_init_bridges(PCIDevice *d) @@ -1553,14 +1558,14 @@ diff -ruN --exclude Makefile bios/rombios32.c bios.new/rombios32.c + outb(0xb2, 00); + + /* enable the SMM memory window */ -+ pci_config_writel(&i440_pcidev, 0x6c, (1 << 26) | 0x000a); ++ pci_config_writeb(&i440_pcidev, 0x72, 0x02 | 0x40); + + /* copy the SMM code */ + memcpy((void *)0xa8000, &smm_code_start, + &smm_code_end - &smm_code_start); + + /* close the SMM memory window and enable normal SMM */ -+ pci_config_writel(&i440_pcidev, 0x6c, (1 << 31) | 0x000a); ++ pci_config_writeb(&i440_pcidev, 0x72, 0x02 | 0x08); +} +#endif + @@ -2248,9 +2253,9 @@ diff -ruN --exclude Makefile bios/rombios32.c bios.new/rombios32.c + bios_lock_shadow_ram(); + } +} -diff -ruN --exclude Makefile bios/rombios32.ld bios.new/rombios32.ld ---- bios/rombios32.ld 1970-01-01 01:00:00.000000000 +0100 -+++ bios.new/rombios32.ld 2006-09-24 20:28:05.000000000 +0200 +diff -ruN --exclude Makefile bios.org/rombios32.ld bios/rombios32.ld +--- bios.org/rombios32.ld 1970-01-01 01:00:00.000000000 +0100 ++++ bios/rombios32.ld 2006-09-24 20:28:05.000000000 +0200 @@ -0,0 +1,19 @@ +OUTPUT_FORMAT("elf32-i386", "elf32-i386", "elf32-i386") +OUTPUT_ARCH(i386) @@ -2271,9 +2276,9 @@ diff -ruN --exclude Makefile bios/rombios32.ld bios.new/rombios32.ld + *(.note) + } +} -diff -ruN --exclude Makefile bios/rombios32start.S bios.new/rombios32start.S ---- bios/rombios32start.S 1970-01-01 01:00:00.000000000 +0100 -+++ bios.new/rombios32start.S 2006-09-24 20:22:58.000000000 +0200 +diff -ruN --exclude Makefile bios.org/rombios32start.S bios/rombios32start.S +--- bios.org/rombios32start.S 1970-01-01 01:00:00.000000000 +0100 ++++ bios/rombios32start.S 2006-09-24 20:22:58.000000000 +0200 @@ -0,0 +1,76 @@ +.globl _start +.globl smp_ap_boot_code_start @@ -2351,9 +2356,9 @@ diff -ruN --exclude Makefile bios/rombios32start.S bios.new/rombios32start.S +2: + rsm +smm_code_end: -diff -ruN --exclude Makefile bios/rombios.c bios.new/rombios.c ---- bios/rombios.c 2006-08-11 19:34:12.000000000 +0200 -+++ bios.new/rombios.c 2006-09-24 20:35:47.000000000 +0200 +diff -ruN --exclude Makefile bios.org/rombios.c bios/rombios.c +--- bios.org/rombios.c 2006-08-11 19:34:12.000000000 +0200 ++++ bios/rombios.c 2006-09-24 20:35:47.000000000 +0200 @@ -24,7 +24,7 @@ // License along with this library; if not, write to the Free Software // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -- 2.7.4