add arm64 support
- add arm64 dependent codes with GICv3 and SVE support - fix bugs based on architecture separation requests
This commit is contained in:
27
arch/arm64/kernel/include/traps.h
Normal file
27
arch/arm64/kernel/include/traps.h
Normal file
@ -0,0 +1,27 @@
|
||||
/* traps.h COPYRIGHT FUJITSU LIMITED 2017 */
|
||||
|
||||
#ifndef __ASM_TRAP_H
|
||||
#define __ASM_TRAP_H
|
||||
|
||||
#include <types.h>
|
||||
|
||||
struct pt_regs;
|
||||
|
||||
/* @ref.impl arch/arm64/include/asm/traps.h */
|
||||
struct undef_hook {
|
||||
struct list_head node;
|
||||
uint32_t instr_mask;
|
||||
uint32_t instr_val;
|
||||
uint64_t pstate_mask;
|
||||
uint64_t pstate_val;
|
||||
int (*fn)(struct pt_regs *regs, uint32_t instr);
|
||||
};
|
||||
|
||||
/* @ref.impl arch/arm64/include/asm/traps.h */
|
||||
void register_undef_hook(struct undef_hook *hook);
|
||||
|
||||
/* @ref.impl arch/arm64/include/asm/traps.h */
|
||||
void unregister_undef_hook(struct undef_hook *hook);
|
||||
|
||||
#endif /* __ASM_TRAP_H */
|
||||
|
||||
Reference in New Issue
Block a user