/Ethereal-msm8939-beta9/arch/microblaze/include/asm/entry.h

https://bitbucket.org/MilosStamenkovic95/etherealos · C Header · 36 lines · 14 code · 7 blank · 15 comment · 0 complexity · 4f3ca3543b23540ef0e9889b84c758c1 MD5 · raw file

  1. /*
  2. * Definitions used by low-level trap handlers
  3. *
  4. * Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu>
  5. * Copyright (C) 2007-2009 PetaLogix
  6. * Copyright (C) 2007 John Williams <john.williams@petalogix.com>
  7. *
  8. * This file is subject to the terms and conditions of the GNU General
  9. * Public License. See the file COPYING in the main directory of this
  10. * archive for more details.
  11. */
  12. #ifndef _ASM_MICROBLAZE_ENTRY_H
  13. #define _ASM_MICROBLAZE_ENTRY_H
  14. #include <asm/percpu.h>
  15. #include <asm/ptrace.h>
  16. /*
  17. * These are per-cpu variables required in entry.S, among other
  18. * places
  19. */
  20. #define PER_CPU(var) var
  21. # ifndef __ASSEMBLY__
  22. DECLARE_PER_CPU(unsigned int, KSP); /* Saved kernel stack pointer */
  23. DECLARE_PER_CPU(unsigned int, KM); /* Kernel/user mode */
  24. DECLARE_PER_CPU(unsigned int, ENTRY_SP); /* Saved SP on kernel entry */
  25. DECLARE_PER_CPU(unsigned int, R11_SAVE); /* Temp variable for entry */
  26. DECLARE_PER_CPU(unsigned int, CURRENT_SAVE); /* Saved current pointer */
  27. extern asmlinkage void do_notify_resume(struct pt_regs *regs, int in_syscall);
  28. # endif /* __ASSEMBLY__ */
  29. #endif /* _ASM_MICROBLAZE_ENTRY_H */