powerpc/mm: Fixup tlbie vs mtpidr/mtlpidr ordering issue on POWER9
[linux-2.6-block.git] / arch / powerpc / include / asm / xmon.h
CommitLineData
2874c5fd 1/* SPDX-License-Identifier: GPL-2.0-or-later */
23b8acb1
ME
2#ifndef __ASM_POWERPC_XMON_H
3#define __ASM_POWERPC_XMON_H
4
5/*
6 * Copyrignt (C) 2006 IBM Corp
23b8acb1 7 */
60a3d741 8
23b8acb1 9#ifdef __KERNEL__
60a3d741 10
af3b74df
ME
11#include <linux/irqreturn.h>
12
47679283
ME
13#ifdef CONFIG_XMON
14extern void xmon_setup(void);
ff8a8f25 15extern void xmon_register_spus(struct list_head *list);
7d9e7934
ME
16struct pt_regs;
17extern int xmon(struct pt_regs *excp);
af3b74df 18extern irqreturn_t xmon_irq(int, void *);
47679283
ME
19#else
20static inline void xmon_setup(void) { };
ff8a8f25 21static inline void xmon_register_spus(struct list_head *list) { };
47679283 22#endif
60a3d741 23
1c8950ff
ME
24#if defined(CONFIG_XMON) && defined(CONFIG_SMP)
25extern int cpus_are_in_xmon(void);
26#endif
27
e70d8f55 28extern __printf(1, 2) void xmon_printf(const char *format, ...);
243e2511 29
23b8acb1
ME
30#endif /* __KERNEL __ */
31#endif /* __ASM_POWERPC_XMON_H */