[PATCH] hide plpar_hcall_norets call in xmon

Olaf Hering olh at suse.de
Mon Feb 7 02:28:11 EST 2005


plpar_hcall_norets() is only availbe if pseries is selected in .config.
The maple defconfig doesnt build right now because it has xmon enabled. 

Signed-off-by: Olaf Hering <olh at suse.de>

diff -purNx tags ../linux-2.6.11-rc3.orig/arch/ppc64/xmon/xmon.c ./arch/ppc64/xmon/xmon.c
--- ../linux-2.6.11-rc3.orig/arch/ppc64/xmon/xmon.c	2005-02-03 02:56:35.000000000 +0100
+++ ./arch/ppc64/xmon/xmon.c	2005-02-06 15:44:50.643489636 +0100
@@ -629,9 +629,11 @@ int xmon_fault_handler(struct pt_regs *r
 static void set_controlled_dabr(unsigned long val)
 {
 	if (systemcfg->platform == PLATFORM_PSERIES_LPAR) {
+#ifdef CONFIG_PPC_PSERIES
 		int rc = plpar_hcall_norets(H_SET_DABR, val);
 		if (rc != H_Success)
 			xmon_printf("Warning: setting DABR failed (%d)\n", rc);
+#endif
 	} else
 		set_dabr(val);
 }



More information about the Linuxppc64-dev mailing list