[PATCH 1/2] systemsim: boot hacks for non-standard platforms

Eric Van Hensbergen ericvh at gmail.com
Sat Feb 25 09:58:24 EST 2006


>From nobody Mon Sep 17 00:00:00 2001
From: Eric Van Hensbergen <ericvh at gmail.com>
Date: Fri Feb 24 16:46:07 2006 -0600
Subject: [PATCH] systemsim: add boot hacks for non-standard platforms

When booting on some "experimental platforms" under the IBM Full System
Simulator - a certain set of boot hacks are required which differentiate
the hardware from standard pSeries systems.  This patch adds a config flag
which allows you to use these hacks.

Signed-off-by: Eric Van Hensbergen <bergevan at us.ibm.com>

---

 arch/powerpc/Kconfig                   |    8 ++++++++
 arch/powerpc/platforms/pseries/setup.c |    8 ++++++++
 2 files changed, 16 insertions(+), 0 deletions(-)

6f27df783005ca87d1a27370837070b98798fbeb
diff --git a/arch/powerpc/Kconfig b/arch/powerpc/Kconfig
index 371043b..592846c 100644
--- a/arch/powerpc/Kconfig
+++ b/arch/powerpc/Kconfig
@@ -384,6 +384,14 @@ config SYSTEMSIM_IDLE
 	  significantly reduces the load on the host system when
 	  simulating an idle system.
 
+config SYSTEMSIM_BOOT
+	bool "   Boot hacks for non-standard hardware under systemsim"
+	depends on PPC_SYSTEMSIM
+	help
+	  Selecting this option will enable boot hacks during setup
+	  to facilitate Linux boots on non-standard hardware under the
+          IBM Full System Simulator.
+
 config XICS
 	depends on PPC_PSERIES
 	bool
diff --git a/arch/powerpc/platforms/pseries/setup.c b/arch/powerpc/platforms/pseries/setup.c
index 9edeca8..ca5d20a 100644
--- a/arch/powerpc/platforms/pseries/setup.c
+++ b/arch/powerpc/platforms/pseries/setup.c
@@ -171,11 +171,19 @@ static void __init pSeries_setup_mpic(vo
 	
 	/* Setup the openpic driver */
 	irq_count = NR_IRQS - NUM_ISA_INTERRUPTS - 4; /* leave room for IPIs */
+#ifndef CONFIG_SYSTEMSIM_BOOT
 	pSeries_mpic = mpic_alloc(openpic_addr, MPIC_PRIMARY,
 				  16, 16, irq_count, /* isu size, irq offset, irq count */ 
 				  NR_IRQS - 4, /* ipi offset */
 				  senses, irq_count, /* sense & sense size */
 				  " MPIC     ");
+#else /* CONFIG_SYSTEMSIM_BOOT */
+	pSeries_mpic = mpic_alloc(openpic_addr, MPIC_PRIMARY,
+				  0, 0, irq_count, /* isu size, irq offset, irq count */ 
+				  NR_IRQS - 4, /* ipi offset */
+				  senses, irq_count, /* sense & sense size */
+				  " MPIC     ");
+#endif /* CONFIG_SYSTEMSIM_BOOT */
 }
 
 static void pseries_lpar_enable_pmcs(void)
-- 





More information about the Linuxppc64-dev mailing list