mirror of https://github.com/Qortal/Brooklyn
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1018 B
34 lines
1018 B
/* SPDX-License-Identifier: GPL-2.0 */ |
|
/* |
|
* Definitions used by low-level trap handlers |
|
* |
|
* Copyright (C) 2008-2009 Michal Simek <[email protected]> |
|
* Copyright (C) 2007-2009 PetaLogix |
|
* Copyright (C) 2007 John Williams <[email protected]> |
|
*/ |
|
|
|
#ifndef _ASM_MICROBLAZE_ENTRY_H |
|
#define _ASM_MICROBLAZE_ENTRY_H |
|
|
|
#include <asm/percpu.h> |
|
#include <asm/ptrace.h> |
|
#include <linux/linkage.h> |
|
|
|
/* |
|
* These are per-cpu variables required in entry.S, among other |
|
* places |
|
*/ |
|
|
|
#define PER_CPU(var) var |
|
|
|
# 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 */ |
|
|
|
extern asmlinkage void do_notify_resume(struct pt_regs *regs, int in_syscall); |
|
# endif /* __ASSEMBLY__ */ |
|
|
|
#endif /* _ASM_MICROBLAZE_ENTRY_H */
|
|
|