From eab419eb597d2db3a84db713418033014e7a080f Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Tue, 22 Feb 2005 16:41:36 -0800 Subject: [PATCH] [PATCH] ppc64: fix compilation for Maple board 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- arch/ppc64/xmon/xmon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/ppc64/xmon/xmon.c b/arch/ppc64/xmon/xmon.c index edca0c485059..b456e5763645 100644 --- a/arch/ppc64/xmon/xmon.c +++ b/arch/ppc64/xmon/xmon.c @@ -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); } -- 2.39.5