2009-03-27 07:25:43 -06:00
|
|
|
/*
|
|
|
|
* Definitions used by low-level trap handlers
|
|
|
|
*
|
2009-05-26 08:30:21 -06:00
|
|
|
* Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu>
|
|
|
|
* Copyright (C) 2007-2009 PetaLogix
|
2009-03-27 07:25:43 -06:00
|
|
|
* Copyright (C) 2007 John Williams <john.williams@petalogix.com>
|
|
|
|
*
|
|
|
|
* This file is subject to the terms and conditions of the GNU General
|
|
|
|
* Public License. See the file COPYING in the main directory of this
|
|
|
|
* archive for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _ASM_MICROBLAZE_ENTRY_H
|
|
|
|
#define _ASM_MICROBLAZE_ENTRY_H
|
|
|
|
|
|
|
|
#include <asm/percpu.h>
|
|
|
|
#include <asm/ptrace.h>
|
2014-08-06 07:32:53 -06:00
|
|
|
#include <linux/linkage.h>
|
2009-03-27 07:25:43 -06:00
|
|
|
|
|
|
|
/*
|
|
|
|
* These are per-cpu variables required in entry.S, among other
|
|
|
|
* places
|
|
|
|
*/
|
|
|
|
|
2009-10-29 07:34:15 -06:00
|
|
|
#define PER_CPU(var) var
|
2009-03-27 07:25:43 -06:00
|
|
|
|
|
|
|
# ifndef __ASSEMBLY__
|
|
|
|
DECLARE_PER_CPU(unsigned int, KSP); /* Saved kernel stack pointer */
|
|
|
|
DECLARE_PER_CPU(unsigned int, KM); /* Kernel/user mode */
|
|
|
|
DECLARE_PER_CPU(unsigned int, ENTRY_SP); /* Saved SP on kernel entry */
|
|
|
|
DECLARE_PER_CPU(unsigned int, R11_SAVE); /* Temp variable for entry */
|
|
|
|
DECLARE_PER_CPU(unsigned int, CURRENT_SAVE); /* Saved current pointer */
|
2012-12-13 10:03:50 -07:00
|
|
|
|
|
|
|
extern asmlinkage void do_notify_resume(struct pt_regs *regs, int in_syscall);
|
2009-03-27 07:25:43 -06:00
|
|
|
# endif /* __ASSEMBLY__ */
|
|
|
|
|
|
|
|
#endif /* _ASM_MICROBLAZE_ENTRY_H */
|