]> git.proxmox.com Git - mirror_qemu.git/blame - pc-bios/bios.diff
Make likely/unlikely accessible also in hw/.
[mirror_qemu.git] / pc-bios / bios.diff
CommitLineData
1193610e
FB
1Index: rombios.c
2===================================================================
3RCS file: /cvsroot/bochs/bochs/bios/rombios.c,v
4retrieving revision 1.174
5diff -u -w -r1.174 rombios.c
6--- rombios.c 17 Oct 2006 16:48:05 -0000 1.174
7+++ rombios.c 8 Feb 2007 21:57:48 -0000
8@@ -9472,6 +9472,14 @@
9 mov eax, #0x00040000
10 call eax
11
12+ ;; reset the memory (some boot loaders such as syslinux suppose
13+ ;; that the memory is set to zero)
14+ mov edi, #0x00040000
15+ mov ecx, #0x40000 / 4
16+ xor eax, eax
17+ rep
18+ stosd
19+
20 ;; return to 16 bit protected mode first
21 db 0xea
22 dd rombios32_10
a7e6f8ba
FB
23Index: rombios.h
24===================================================================
25RCS file: /cvsroot/bochs/bochs/bios/rombios.h,v
597a0559
FB
26retrieving revision 1.3
27diff -u -w -r1.3 rombios.h
28--- rombios.h 3 Oct 2006 20:27:30 -0000 1.3
1193610e 29+++ rombios.h 8 Feb 2007 21:57:48 -0000
a7e6f8ba
FB
30@@ -19,7 +19,7 @@
31 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
d4afc623 32
a7e6f8ba
FB
33 /* define it to include QEMU specific code */
34-//#define BX_QEMU
35+#define BX_QEMU
d4afc623 36
597a0559
FB
37 #ifndef LEGACY
38 # define BX_ROMBIOS32 1
a7e6f8ba
FB
39Index: rombios32.c
40===================================================================
41RCS file: /cvsroot/bochs/bochs/bios/rombios32.c,v
597a0559
FB
42retrieving revision 1.8
43diff -u -w -r1.8 rombios32.c
44--- rombios32.c 3 Oct 2006 20:27:30 -0000 1.8
1193610e 45+++ rombios32.c 8 Feb 2007 21:57:48 -0000
597a0559 46@@ -852,6 +852,11 @@
e3e97e7c
FB
47 int ioapic_id, i, len;
48 int mp_config_table_size;
a7e6f8ba 49
a7e6f8ba 50+#ifdef BX_QEMU
e3e97e7c
FB
51+ if (smp_cpus <= 1)
52+ return;
53+#endif
d4afc623 54+
e3e97e7c
FB
55 #ifdef BX_USE_EBDA_TABLES
56 mp_config_table = (uint8_t *)(ram_size - ACPI_DATA_SIZE - MPTABLE_MAX_SIZE);
57 #else