mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-28 07:04:00 +08:00
6e83557c38
r0_ram pool was used for saving/restoring register content if hw exception happen. This poll was replaced by pt_pool_space with PT_SIZE size. Based on this change SAVE_STATE_ARG_SPACE was removed which caused that PTO offset is zero that's why is also removed. r0_ram space was used as scratchpad by v850. In early Microblaze Linux developing phase was this part of code blindly copied. Signed-off-by: Michal Simek <monstr@monstr.eu>
35 lines
1.0 KiB
C
35 lines
1.0 KiB
C
/*
|
|
* Definitions used by low-level trap handlers
|
|
*
|
|
* Copyright (C) 2008-2009 Michal Simek <monstr@monstr.eu>
|
|
* Copyright (C) 2007-2009 PetaLogix
|
|
* 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>
|
|
|
|
/*
|
|
* 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 */
|
|
# endif /* __ASSEMBLY__ */
|
|
|
|
#endif /* _ASM_MICROBLAZE_ENTRY_H */
|