31004e6
From b138cfd473ab65282af07d400fc95a8a5bc7e22e Mon Sep 17 00:00:00 2001
a5bd9f6
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
a5bd9f6
Date: Sun, 24 Mar 2013 14:03:33 +0100
f74b50e
Subject: [PATCH 231/482] 	* util/grub.d/20_linux_xen.in: Automatically
a5bd9f6
 add no-real-mode edd=off on 	non-BIOS platforms.
a5bd9f6
a5bd9f6
---
a5bd9f6
 ChangeLog                   | 5 +++++
a5bd9f6
 util/grub.d/20_linux_xen.in | 7 ++++++-
a5bd9f6
 2 files changed, 11 insertions(+), 1 deletion(-)
a5bd9f6
a5bd9f6
diff --git a/ChangeLog b/ChangeLog
a5bd9f6
index 43dcf93..981991b 100644
a5bd9f6
--- a/ChangeLog
a5bd9f6
+++ b/ChangeLog
a5bd9f6
@@ -1,5 +1,10 @@
a5bd9f6
 2013-03-24  Vladimir Serbinenko  <phcoder@gmail.com>
a5bd9f6
 
a5bd9f6
+	* util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
a5bd9f6
+	non-BIOS platforms.
a5bd9f6
+
a5bd9f6
+2013-03-24  Vladimir Serbinenko  <phcoder@gmail.com>
a5bd9f6
+
a5bd9f6
 	* grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
a5bd9f6
 	platforms.
a5bd9f6
 
a5bd9f6
diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in
a5bd9f6
index ac05ee4..6651cbc 100644
a5bd9f6
--- a/util/grub.d/20_linux_xen.in
a5bd9f6
+++ b/util/grub.d/20_linux_xen.in
a5bd9f6
@@ -121,7 +121,12 @@ linux_entry ()
a5bd9f6
   lmessage="$(gettext_printf "Loading Linux %s ..." ${version})"
a5bd9f6
   sed "s/^/$submenu_indentation/" << EOF
a5bd9f6
 	echo	'$(echo "$xmessage" | grub_quote)'
a5bd9f6
-	multiboot	${rel_xen_dirname}/${xen_basename} placeholder ${xen_args}
a5bd9f6
+        if [ "\$grub_platform" = "pc" -o "\$grub_platform" = "" ]; then
a5bd9f6
+            xen_rm_opts=
a5bd9f6
+        else
a5bd9f6
+            xen_rm_opts="no-real-mode edd=off"
a5bd9f6
+        fi
a5bd9f6
+	multiboot	${rel_xen_dirname}/${xen_basename} placeholder ${xen_args} \${xen_rm_opts}
a5bd9f6
 	echo	'$(echo "$lmessage" | grub_quote)'
a5bd9f6
 	module	${rel_dirname}/${basename} placeholder root=${linux_root_device_thisversion} ro ${args}
a5bd9f6
 EOF
a5bd9f6
-- 
31004e6
1.8.2.1
a5bd9f6