]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ppc64: fix compilation for Maple board
authorPaul Mackerras <paulus@samba.org>
Wed, 23 Feb 2005 00:41:36 +0000 (16:41 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 23 Feb 2005 00:41:36 +0000 (16:41 -0800)
A patch that I sent in earlier to allow the use of the data address
breakpoint on machines with a hypervisor happened to break things for those
configs, such as for the Maple board, where we don't compile in the
routines for calling the hypervisor.  This patch fixes it.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/ppc64/xmon/xmon.c

index edca0c485059563dc69ae7bf3eb15b6ee6300c2c..b456e57636457e35df0dc626b0b78eef328acc53 100644 (file)
@@ -628,11 +628,13 @@ int xmon_fault_handler(struct pt_regs *regs)
    (data address breakpoint register) directly. */
 static void set_controlled_dabr(unsigned long val)
 {
+#ifdef CONFIG_PPC_PSERIES
        if (systemcfg->platform == PLATFORM_PSERIES_LPAR) {
                int rc = plpar_hcall_norets(H_SET_DABR, val);
                if (rc != H_Success)
                        xmon_printf("Warning: setting DABR failed (%d)\n", rc);
        } else
+#endif
                set_dabr(val);
 }