Path: blob/master/arch/microblaze/include/asm/entry.h
15126 views
/*1* Definitions used by low-level trap handlers2*3* Copyright (C) 2008-2009 Michal Simek <[email protected]>4* Copyright (C) 2007-2009 PetaLogix5* Copyright (C) 2007 John Williams <[email protected]>6*7* This file is subject to the terms and conditions of the GNU General8* Public License. See the file COPYING in the main directory of this9* archive for more details.10*/1112#ifndef _ASM_MICROBLAZE_ENTRY_H13#define _ASM_MICROBLAZE_ENTRY_H1415#include <asm/percpu.h>16#include <asm/ptrace.h>1718/*19* These are per-cpu variables required in entry.S, among other20* places21*/2223#define PER_CPU(var) var2425# ifndef __ASSEMBLY__26DECLARE_PER_CPU(unsigned int, KSP); /* Saved kernel stack pointer */27DECLARE_PER_CPU(unsigned int, KM); /* Kernel/user mode */28DECLARE_PER_CPU(unsigned int, ENTRY_SP); /* Saved SP on kernel entry */29DECLARE_PER_CPU(unsigned int, R11_SAVE); /* Temp variable for entry */30DECLARE_PER_CPU(unsigned int, CURRENT_SAVE); /* Saved current pointer */31# endif /* __ASSEMBLY__ */3233#endif /* _ASM_MICROBLAZE_ENTRY_H */343536