Skip to content

Commit 1f377e0

Browse files
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 <[email protected]> Reviewed-by: Ard Biesheuvel <[email protected]> Reviewed-by: Torsten Duwe <[email protected]> Tested-by: Amit Daniel Kachhap <[email protected]> Tested-by: Torsten Duwe <[email protected]> Cc: Catalin Marinas <[email protected]> Cc: Will Deacon <[email protected]>
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

Lines changed: 1 addition & 0 deletions
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)