All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Increment buffer used to read first boot sector in order to accomodate space for 4k sector
@ 2012-08-03 14:50 Frediano Ziglio
  2012-08-03 15:09 ` David Vrabel
  2012-08-03 15:22 ` Jan Beulich
  0 siblings, 2 replies; 6+ messages in thread
From: Frediano Ziglio @ 2012-08-03 14:50 UTC (permalink / raw)
  To: xen-devel@lists.xen.org


If a 4k disk is used for first BIOS disk loader corrupt itself.

This patch increase sector buffer in order to avoid this overflow

Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
---
 xen/arch/x86/boot/edd.S        |    2 +-
 xen/arch/x86/boot/trampoline.S |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/xen/arch/x86/boot/edd.S b/xen/arch/x86/boot/edd.S
index 2c8df8c..1c802a6 100644
--- a/xen/arch/x86/boot/edd.S
+++ b/xen/arch/x86/boot/edd.S
@@ -154,4 +154,4 @@ boot_mbr_signature_nr:
 boot_mbr_signature:
         .fill   EDD_MBR_SIG_MAX*8,1,0
 boot_edd_info:
-        .fill   512,1,0                         # big enough for a disc sector
+        .fill   4096,1,0                         # big enough for a disc sector
diff --git a/xen/arch/x86/boot/trampoline.S b/xen/arch/x86/boot/trampoline.S
index 4421fc2..bd54c9e 100644
--- a/xen/arch/x86/boot/trampoline.S
+++ b/xen/arch/x86/boot/trampoline.S
@@ -224,6 +224,6 @@ skip_realmode:
 rm_idt: .word   256*4-1, 0, 0
 
 #include "mem.S"
-#include "edd.S"
 #include "video.S"
 #include "wakeup.S"
+#include "edd.S"
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-08-07 12:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-03 14:50 [PATCH] Increment buffer used to read first boot sector in order to accomodate space for 4k sector Frediano Ziglio
2012-08-03 15:09 ` David Vrabel
2012-08-03 15:22 ` Jan Beulich
2012-08-03 16:43   ` Frediano Ziglio
2012-08-06  7:54     ` Jan Beulich
2012-08-07 12:08   ` Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.