projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bce79b0
)
arm64: make member of struct pt_regs and it's offset macro in the same order
author
Kemeng Shi
<shikemeng@huaweicloud.com>
Tue, 30 Jan 2024 17:55:04 +0000
(
01:55
+0800)
committer
Catalin Marinas
<catalin.marinas@arm.com>
Thu, 22 Feb 2024 19:07:49 +0000
(19:07 +0000)
In struct pt_regs, member pstate is after member pc. Move offset macro
of pstate after offset macro of pc to improve readability a little.
Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link:
https://lore.kernel.org/r/20240130175504.106364-1-shikemeng@huaweicloud.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/asm-offsets.c
patch
|
blob
|
history
diff --git
a/arch/arm64/kernel/asm-offsets.c
b/arch/arm64/kernel/asm-offsets.c
index 5a7dbbe0ce639a8b7a74012c957b3c7335e8f160..81496083c0413576bf8cf0cbc534516ef4c311fc 100644
(file)
--- a/
arch/arm64/kernel/asm-offsets.c
+++ b/
arch/arm64/kernel/asm-offsets.c
@@
-75,8
+75,8
@@
int main(void)
DEFINE(S_FP, offsetof(struct pt_regs, regs[29]));
DEFINE(S_LR, offsetof(struct pt_regs, regs[30]));
DEFINE(S_SP, offsetof(struct pt_regs, sp));
- DEFINE(S_PSTATE, offsetof(struct pt_regs, pstate));
DEFINE(S_PC, offsetof(struct pt_regs, pc));
+ DEFINE(S_PSTATE, offsetof(struct pt_regs, pstate));
DEFINE(S_SYSCALLNO, offsetof(struct pt_regs, syscallno));
DEFINE(S_SDEI_TTBR1, offsetof(struct pt_regs, sdei_ttbr1));
DEFINE(S_PMR_SAVE, offsetof(struct pt_regs, pmr_save));