Skip to content

Re-organize linker layouts

David Brown linux-arm-kernel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest0 of 7 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 7 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] Re-organize linker layouts
Quoted 4 lines · Nicolas Pitre
Quoted 3 lines

Anyway, maybe we've been going about this the wrong way. Couldn't we just make TEXT_OFFSET be 0x00208000 and then make sure to remove the first 2MB of memory in a machine->reserve() routine if we're MSM?

Quoted 8 lines

I think that would certainly be a worthwhile thing to do. This would even make ARM_PATCH_PHYS_VIRT more efficient as you won't have to enable ARM_PATCH_PHYS_VIRT_16BIT anymore. And even without ARM_PATCH_PHYS_VIRT, the compiled code for virt_to_phys() and phys_to_virt() would be more efficient.

Whether or not we would like to still keep the ARM_PATCH_PHYS_VIRT_16BIT code around is a separate question.

Wouldn't it still be needed if people want to build an ARM kernel that works on both MSM targets and non-MSM targets?

What about loading the kernel at the next 128MB boundary, and coming up with a way to use the 126MB before the kernel for allocation. That might end up being more invasive, though.

David

Signature · 2 lines
Sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum.