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