All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Introduce macros for the offsets to reserved_pg_dir and tramp_pg_dir
@ 2021-02-02 12:36 Joey Gouly
  2021-02-02 12:36 ` [PATCH 1/2] arm64: vmlinux.ld.S: add assertion for reserved_pg_dir offset Joey Gouly
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Joey Gouly @ 2021-02-02 12:36 UTC (permalink / raw)
  To: linux-arm-kernel
  Cc: Mark Rutland, Catalin Marinas, nd, Will Deacon, Joey Gouly

Make the offsets to reserved_pg_dir and tramp_pg_dir less fragile by
introducing macros that contain their offsets.

Also use these macros to verify the offsets at link time.

Joey Gouly (2):
  arm64: vmlinux.ld.S: add assertion for reserved_pg_dir offset
  arm64: vmlinux.ld.S: add assertion for tramp_pg_dir offset

 arch/arm64/include/asm/asm-uaccess.h |  4 ++--
 arch/arm64/include/asm/memory.h      | 12 ++++++++++++
 arch/arm64/include/asm/uaccess.h     |  2 +-
 arch/arm64/kernel/entry.S            |  4 ++--
 arch/arm64/kernel/vmlinux.lds.S      |  8 ++++++++
 5 files changed, 25 insertions(+), 5 deletions(-)

-- 
2.17.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-02-03 21:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-02 12:36 [PATCH 0/2] Introduce macros for the offsets to reserved_pg_dir and tramp_pg_dir Joey Gouly
2021-02-02 12:36 ` [PATCH 1/2] arm64: vmlinux.ld.S: add assertion for reserved_pg_dir offset Joey Gouly
2021-02-02 12:36 ` [PATCH 2/2] arm64: vmlinux.ld.S: add assertion for tramp_pg_dir offset Joey Gouly
2021-02-03 12:28 ` [PATCH 0/2] Introduce macros for the offsets to reserved_pg_dir and tramp_pg_dir Mark Rutland
2021-02-03 21:31 ` Will Deacon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.