forked from Minki/linux
arm64: Cast KSTK_(EIP|ESP) to unsigned long
This is for similarity with thread_saved_(pc|sp) and to avoid some compiler warnings in the audit code. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
This commit is contained in:
parent
875cbf3e46
commit
ebe6152e72
@ -137,8 +137,8 @@ extern struct task_struct *cpu_switch_to(struct task_struct *prev,
|
||||
#define task_pt_regs(p) \
|
||||
((struct pt_regs *)(THREAD_START_SP + task_stack_page(p)) - 1)
|
||||
|
||||
#define KSTK_EIP(tsk) task_pt_regs(tsk)->pc
|
||||
#define KSTK_ESP(tsk) task_pt_regs(tsk)->sp
|
||||
#define KSTK_EIP(tsk) ((unsigned long)task_pt_regs(tsk)->pc)
|
||||
#define KSTK_ESP(tsk) ((unsigned long)task_pt_regs(tsk)->sp)
|
||||
|
||||
/*
|
||||
* Prefetching support
|
||||
|
Loading…
Reference in New Issue
Block a user