virtualization.lists.linux-foundation.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] i386: modified CONFIG_PHYSICAL_ALIGN
@ 2007-08-14  0:55 Yoshimi Ichiyanagi
  2007-08-14  3:29 ` Andi Kleen
  0 siblings, 1 reply; 5+ messages in thread
From: Yoshimi Ichiyanagi @ 2007-08-14  0:55 UTC (permalink / raw)
  To: rusty; +Cc: moriai.satoshi, virtualization

CONFIG_PHYSICAL_ALIGN gives the physical address's alignment where the 
kernel is loaded.

CONFIG_PHYSICAL_ALIGN's default value is different from i386 kernel with the 
x86_84 kernel. The i386's default CONFIG_PHYSICAL_ALIGN value is 1MB, but 
the x86_64's is 2MB.

The problem is, if you compile x86_64 kernel, the value of 
CONFIG_PHYSICAL_ALIGN will be fixed, and the next time you compile i386 
kernel, previous CONFIG_PHYSICAL_ALIGN value of x86_64(default: 2MB) will 
be used by default.

The follwing patch will fix this problem. With this patch, either 
CONFIG_RELOCATABLE's option or CONFIG_EMNBEDDED's option is set "Y", 
you can configure the value of CONFIG_PHYSICAL_ALIGN.


Signed-off-by: Yoshimi Ichiyanagi <ichiyanagi.yoshimi@lab.ntt.co.jp>

---
diff --git a/arch/i386/Kconfig b/arch/i386/Kconfig
index f952493..05c3316 100644
--- a/arch/i386/Kconfig
+++ b/arch/i386/Kconfig
@@ -880,7 +880,7 @@ config RELOCATABLE
           kernel.
 
 config PHYSICAL_ALIGN
-	hex "Alignment value to which kernel should be aligned"
+	hex "Alignment value to which kernel should be aligned" if (EMBEDDED || RELOCATABLE)
 	default "0x100000"
 	range 0x2000 0x400000
 	help


--
Yoshimi Ichiyanagi
Open source software computing project, NTT Cyber Space Laboratories
E-mail : ichiyanagi.yoshimi@lab.ntt.co.jp

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

end of thread, other threads:[~2007-08-14 18:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-14  0:55 [PATCH] i386: modified CONFIG_PHYSICAL_ALIGN Yoshimi Ichiyanagi
2007-08-14  3:29 ` Andi Kleen
2007-08-14  3:17   ` Rusty Russell
2007-08-14  8:59     ` Yoshimi Ichiyanagi
2007-08-14 18:35     ` Jeremy Fitzhardinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).