Commit 1193610e5df9eb88eaf7750f290fe8dd24ed620d
1 parent
26a16623
reset rombios32 area
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2403 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
2 changed files
with
24 additions
and
2 deletions
pc-bios/bios.bin
No preview for this file type
pc-bios/bios.diff
1 | +Index: rombios.c | |
2 | +=================================================================== | |
3 | +RCS file: /cvsroot/bochs/bochs/bios/rombios.c,v | |
4 | +retrieving revision 1.174 | |
5 | +diff -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 | |
1 | 23 | Index: rombios.h |
2 | 24 | =================================================================== |
3 | 25 | RCS file: /cvsroot/bochs/bochs/bios/rombios.h,v |
4 | 26 | retrieving revision 1.3 |
5 | 27 | diff -u -w -r1.3 rombios.h |
6 | 28 | --- rombios.h 3 Oct 2006 20:27:30 -0000 1.3 |
7 | -+++ rombios.h 1 Nov 2006 19:16:34 -0000 | |
29 | ++++ rombios.h 8 Feb 2007 21:57:48 -0000 | |
8 | 30 | @@ -19,7 +19,7 @@ |
9 | 31 | // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
10 | 32 | |
... | ... | @@ -20,7 +42,7 @@ RCS file: /cvsroot/bochs/bochs/bios/rombios32.c,v |
20 | 42 | retrieving revision 1.8 |
21 | 43 | diff -u -w -r1.8 rombios32.c |
22 | 44 | --- rombios32.c 3 Oct 2006 20:27:30 -0000 1.8 |
23 | -+++ rombios32.c 1 Nov 2006 19:16:34 -0000 | |
45 | ++++ rombios32.c 8 Feb 2007 21:57:48 -0000 | |
24 | 46 | @@ -852,6 +852,11 @@ |
25 | 47 | int ioapic_id, i, len; |
26 | 48 | int mp_config_table_size; | ... | ... |