entry.h 1018 B

12345678910111213141516171819202122232425262728293031323334
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Definitions used by low-level trap handlers
  4. *
  5. * Copyright (C) 2008-2009 Michal Simek <[email protected]>
  6. * Copyright (C) 2007-2009 PetaLogix
  7. * Copyright (C) 2007 John Williams <[email protected]>
  8. */
  9. #ifndef _ASM_MICROBLAZE_ENTRY_H
  10. #define _ASM_MICROBLAZE_ENTRY_H
  11. #include <asm/percpu.h>
  12. #include <asm/ptrace.h>
  13. #include <linux/linkage.h>
  14. /*
  15. * These are per-cpu variables required in entry.S, among other
  16. * places
  17. */
  18. #define PER_CPU(var) var
  19. # ifndef __ASSEMBLY__
  20. DECLARE_PER_CPU(unsigned int, KSP); /* Saved kernel stack pointer */
  21. DECLARE_PER_CPU(unsigned int, KM); /* Kernel/user mode */
  22. DECLARE_PER_CPU(unsigned int, ENTRY_SP); /* Saved SP on kernel entry */
  23. DECLARE_PER_CPU(unsigned int, R11_SAVE); /* Temp variable for entry */
  24. DECLARE_PER_CPU(unsigned int, CURRENT_SAVE); /* Saved current pointer */
  25. extern asmlinkage void do_notify_resume(struct pt_regs *regs, int in_syscall);
  26. # endif /* __ASSEMBLY__ */
  27. #endif /* _ASM_MICROBLAZE_ENTRY_H */