multiboot header has 0 in mem_upper field
Bug #1273944 reported by
Peter Chubb
This bug affects 1 person
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| QEMU |
Expired
|
Undecided
|
Unassigned | ||
Bug Description
When booting a multiboot image,. mem_upper is now always zero.
To test, build qemu from current git head, then do
cd tests/multiboot
./run_test.sh
You will see the test fail. In each case mem_upper is 0k.
git-bisect says the bad commit is 0169c511554cb00
To post a comment you must log in.

This change fixes it.
diff --git a/exec.c b/exec.c alloc(RAMBlock *block,
index 2435d9e..b387d28 100644
--- a/exec.c
+++ b/exec.c
@@ -1070,7 +1070,7 @@ static void *file_ram_
}
/* MAP_POPULATE silently ignores failures */ hpagesize) -1; i++) {
memset( area + (hpagesize*i), 0, 1);
- for (i = 0; i < (memory/hpagesize); i++) {
+ for (i = 0; i < (memory/
}
peterc@ Diprotodon: /usr/src/ qemu/tests/ m