Skip to content

Commit 1f377e0

Browse files
author
Mark Rutland
committed
arm64: asm-offsets: add S_FP
So that assembly code can more easily manipulate the FP (x29) within a pt_regs, add an S_FP asm-offsets definition. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Torsten Duwe <duwe@suse.de> Tested-by: Amit Daniel Kachhap <amit.kachhap@arm.com> Tested-by: Torsten Duwe <duwe@suse.de> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Will Deacon <will@kernel.org>
1 parent e3bf8a6 commit 1f377e0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/arm64/kernel/asm-offsets.c

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ int main(void)
5656
DEFINE(S_X24, offsetof(struct pt_regs, regs[24]));
5757
DEFINE(S_X26, offsetof(struct pt_regs, regs[26]));
5858
DEFINE(S_X28, offsetof(struct pt_regs, regs[28]));
59+
DEFINE(S_FP, offsetof(struct pt_regs, regs[29]));
5960
DEFINE(S_LR, offsetof(struct pt_regs, regs[30]));
6061
DEFINE(S_SP, offsetof(struct pt_regs, sp));
6162
DEFINE(S_PSTATE, offsetof(struct pt_regs, pstate));

0 commit comments

Comments
 (0)