summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2008-03-01 21:07:17 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2008-03-01 21:07:17 +0000
commit67a7ff35bf1cab29193a4d260b66ee825c9eb4d5 (patch)
tree827256e0947c279a0b75e60655f9c2e5e04397c7 /src/patchsets/grub
parentAdd GPT support per bug #178586. (diff)
downloadgentoo-67a7ff35bf1cab29193a4d260b66ee825c9eb4d5.tar.gz
gentoo-67a7ff35bf1cab29193a4d260b66ee825c9eb4d5.tar.bz2
gentoo-67a7ff35bf1cab29193a4d260b66ee825c9eb4d5.zip
Fix for buggy BIOS/compiler combos with Xen per bug #188312.
Diffstat (limited to 'src/patchsets/grub')
-rw-r--r--src/patchsets/grub/0.97/016_all_grub-0.97-multiboot-memory-amount.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/patchsets/grub/0.97/016_all_grub-0.97-multiboot-memory-amount.patch b/src/patchsets/grub/0.97/016_all_grub-0.97-multiboot-memory-amount.patch
new file mode 100644
index 0000000000..16d813cc5e
--- /dev/null
+++ b/src/patchsets/grub/0.97/016_all_grub-0.97-multiboot-memory-amount.patch
@@ -0,0 +1,18 @@
+Gentoo bug #188312
+
+Buggy BIOS plus compiler makes boxes with 16GB of RAM show up as less than 4GB
+under Xen.
+
+diff -Nuar grub-0.97.orig/stage2/common.c grub-0.97/stage2/common.c
+--- grub-0.97.orig/stage2/common.c 2004-03-27 08:25:44.000000000 -0800
++++ grub-0.97/stage2/common.c 2008-02-29 21:41:30.962021889 -0800
+@@ -142,7 +142,8 @@
+ init_bios_info (void)
+ {
+ #ifndef STAGE1_5
+- unsigned long cont, memtmp, addr;
++ unsigned long memtmp, addr;
++ volatile unsigned long cont;
+ int drive;
+ #endif
+