/* SPDX-License-Identifier: GPL-2.0 */1/*2* Definitions used by low-level trap handlers3*4* Copyright (C) 2008-2009 Michal Simek <[email protected]>5* Copyright (C) 2007-2009 PetaLogix6* Copyright (C) 2007 John Williams <[email protected]>7*/89#ifndef _ASM_MICROBLAZE_ENTRY_H10#define _ASM_MICROBLAZE_ENTRY_H1112#include <asm/percpu.h>13#include <asm/ptrace.h>14#include <linux/linkage.h>1516/*17* These are per-cpu variables required in entry.S, among other18* places19*/2021#define PER_CPU(var) var2223# ifndef __ASSEMBLY__24DECLARE_PER_CPU(unsigned int, KSP); /* Saved kernel stack pointer */25DECLARE_PER_CPU(unsigned int, KM); /* Kernel/user mode */26DECLARE_PER_CPU(unsigned int, ENTRY_SP); /* Saved SP on kernel entry */27DECLARE_PER_CPU(unsigned int, R11_SAVE); /* Temp variable for entry */28DECLARE_PER_CPU(unsigned int, CURRENT_SAVE); /* Saved current pointer */2930extern asmlinkage void do_notify_resume(struct pt_regs *regs, int in_syscall);31# endif /* __ASSEMBLY__ */3233#endif /* _ASM_MICROBLAZE_ENTRY_H */343536