[PATCH] arm64: add architecture specified current_pt_regs

2016-02-18 Thread Zhi-zhou Zhang
From: zhizhou This patch is based on the implementation of arm. The generic current_pt_regs is implemented with current->stack. It need to access memory that would be too expensive. Signed-off-by: zhizhou --- arch/arm64/include/asm/ptrace.h | 4 1 file changed, 4 insertions(+) diff --git

[PATCH] arm64: entry.S: add missing trace_hardirqs_off

2015-12-25 Thread Zhi-zhou Zhang
189): [] irq_exit+0x9c/0xec Signed-off-by: Zhi-zhou Zhang --- arch/arm64/kernel/entry.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm64/kernel/entry.S b/arch/arm64/kernel/entry.S index 7ed3d75..4769190 100644 --- a/arch/arm64/kernel/entry.S +++ b/arch/arm64/kernel/entry.S @@ -634,6 +63

[PATCH] mips: lib/bitops.c: fix wrong return type

2013-03-12 Thread Zhi-zhou Zhang
Here should return 64-bit types rather than 32-bit types. Or we may get wrong return value if high 32-bit isn't equal to zero. Signed-off-by: Zhi-zhou Zhang --- arch/mips/include/asm/bitops.h |8 arch/mips/lib/bitops.c | 10 ++ 2 files changed, 10 insertions(