projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02273a4
)
arm64: Cast KSTK_(EIP|ESP) to unsigned long
author
Catalin Marinas
<catalin.marinas@arm.com>
Thu, 10 Jul 2014 10:37:40 +0000
(11:37 +0100)
committer
Greg Hackmann
<ghackmann@google.com>
Fri, 29 Aug 2014 23:49:10 +0000
(16:49 -0700)
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>
arch/arm64/include/asm/processor.h
patch
|
blob
|
history
diff --git
a/arch/arm64/include/asm/processor.h
b/arch/arm64/include/asm/processor.h
index ab239b2c456fa7c0e5950f92490166f0c38de9cf..db3112886968d539c10e291257a1df09b549bb55 100644
(file)
--- a/
arch/arm64/include/asm/processor.h
+++ b/
arch/arm64/include/asm/processor.h
@@
-131,8
+131,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