]> Git Repo - qemu.git/blame - pc-bios/bios.diff
Revert the previous patch
[qemu.git] / pc-bios / bios.diff
CommitLineData
a7e6f8ba
FB
1Index: rombios.h
2===================================================================
3RCS file: /cvsroot/bochs/bochs/bios/rombios.h,v
6cc9215e
AJ
4retrieving revision 1.6
5diff -u -d -p -r1.6 rombios.h
6--- rombios.h 26 Jan 2008 09:15:27 -0000 1.6
7+++ rombios.h 28 Mar 2008 10:22:04 -0000
a7e6f8ba
FB
8@@ -19,7 +19,7 @@
9 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
d4afc623 10
a7e6f8ba
FB
11 /* define it to include QEMU specific code */
12-//#define BX_QEMU
13+#define BX_QEMU
d4afc623 14
597a0559
FB
15 #ifndef LEGACY
16 # define BX_ROMBIOS32 1
a7e6f8ba
FB
17Index: rombios32.c
18===================================================================
19RCS file: /cvsroot/bochs/bochs/bios/rombios32.c,v
6cc9215e
AJ
20retrieving revision 1.24
21diff -u -d -p -r1.24 rombios32.c
22--- rombios32.c 6 Mar 2008 20:18:20 -0000 1.24
23+++ rombios32.c 28 Mar 2008 10:22:04 -0000
24@@ -477,7 +477,12 @@ void smp_probe(void)
25 sipi_vector = AP_BOOT_ADDR >> 12;
26 writel(APIC_BASE + APIC_ICR_LOW, 0x000C4600 | sipi_vector);
a7e6f8ba 27
6cc9215e
AJ
28+#ifndef BX_QEMU
29 delay_ms(10);
30+#else
31+ while (cmos_readb(0x5f) + 1 != readw((void *)CPU_COUNT_ADDR))
32+ ;
e3e97e7c 33+#endif
6cc9215e
AJ
34
35 smp_cpus = readw((void *)CPU_COUNT_ADDR);
36 }
37Index: rombios32start.S
38===================================================================
39RCS file: /cvsroot/bochs/bochs/bios/rombios32start.S,v
40retrieving revision 1.4
41diff -u -d -p -r1.4 rombios32start.S
42--- rombios32start.S 26 Jan 2008 09:15:27 -0000 1.4
43+++ rombios32start.S 28 Mar 2008 10:22:04 -0000
44@@ -42,7 +42,7 @@ _start:
45 smp_ap_boot_code_start:
46 xor %ax, %ax
47 mov %ax, %ds
48- incw CPU_COUNT_ADDR
49+ lock incw CPU_COUNT_ADDR
50 1:
51 hlt
52 jmp 1b
This page took 0.111768 seconds and 4 git commands to generate.