xmon.h 876 B

123456789101112131415161718192021222324252627282930313233
  1. #ifndef __ASM_POWERPC_XMON_H
  2. #define __ASM_POWERPC_XMON_H
  3. /*
  4. * Copyrignt (C) 2006 IBM Corp
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * as published by the Free Software Foundation; either version
  9. * 2 of the License, or (at your option) any later version.
  10. */
  11. #ifdef __KERNEL__
  12. #include <linux/irqreturn.h>
  13. #ifdef CONFIG_XMON
  14. extern void xmon_setup(void);
  15. extern void xmon_register_spus(struct list_head *list);
  16. struct pt_regs;
  17. extern int xmon(struct pt_regs *excp);
  18. extern irqreturn_t xmon_irq(int, void *);
  19. #else
  20. static inline void xmon_setup(void) { };
  21. static inline void xmon_register_spus(struct list_head *list) { };
  22. #endif
  23. #if defined(CONFIG_XMON) && defined(CONFIG_SMP)
  24. extern int cpus_are_in_xmon(void);
  25. #endif
  26. #endif /* __KERNEL __ */
  27. #endif /* __ASM_POWERPC_XMON_H */