mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] ARM: support PHYS_OFFSET minimum aligned at 64KiB boundary
@ 2020-09-15  1:52 Zhen Lei
  2020-09-15  1:52 ` [PATCH 1/2] ARM: fix trivial comments in head.S Zhen Lei
  2020-09-15  1:52 ` [PATCH 2/2] ARM: support PHYS_OFFSET minimum aligned at 64KiB boundary Zhen Lei
  0 siblings, 2 replies; 3+ messages in thread
From: Zhen Lei @ 2020-09-15  1:52 UTC (permalink / raw)
  To: Thomas Gleixner, Andrew Morton, Russell King, Santosh Shilimkar,
	Catalin Marinas, linux-arm-kernel, linux-kernel
  Cc: Zhen Lei, Libin, Kefeng Wang, Jianguo Chen

Currently, only support the kernels where the base of physical memory is
at a 16MiB boundary. Because the add/sub instructions only contains 8bits
unrotated value. But we can use one more "add/sub" instructions to handle
bits 23-16, to support PHYS_OFFSET minimum aligned at 64KiB boundary.

This function is required at least by some Huawei boards, such as Hi1380
board. Becuase the kernel Image is loaded at 2MiB boundary.

Zhen Lei (2):
  ARM: fix trivial comments in head.S
  ARM: support PHYS_OFFSET minimum aligned at 64KiB boundary

 arch/arm/Kconfig              | 18 +++++++++++++++++-
 arch/arm/include/asm/memory.h | 16 +++++++++++++---
 arch/arm/kernel/head.S        | 31 ++++++++++++++++++++++---------
 3 files changed, 52 insertions(+), 13 deletions(-)

-- 
1.8.3



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

end of thread, other threads:[~2020-09-15  1:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-15  1:52 [PATCH 0/2] ARM: support PHYS_OFFSET minimum aligned at 64KiB boundary Zhen Lei
2020-09-15  1:52 ` [PATCH 1/2] ARM: fix trivial comments in head.S Zhen Lei
2020-09-15  1:52 ` [PATCH 2/2] ARM: support PHYS_OFFSET minimum aligned at 64KiB boundary Zhen Lei

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®