[PATCH/RFC v7] ARM: boot: Obtain start of physical memory from DTB
Linus Walleij
linus.walleij at linaro.org
Sat Aug 15 06:28:32 EDT 2020
On Sat, Aug 15, 2020 at 11:16 AM Russell King - ARM Linux admin
<linux at armlinux.org.uk> wrote:
> On Fri, Aug 14, 2020 at 04:03:41PM +0200, Linus Walleij wrote:
> > But TEXT_OFFSET is also used inside the kernel to offset the
> > virtual memory. This means that when we set up the virtual
> > memory split, the kernel virtual memory is also bumped by
> > these 2 MB so the virtual memory starts at 0xC0208000
> > instead of 0xC0008000 as is normal.
>
> No. Virtual memory starts without the 32KiB offset. The L1 swapper
> page table starts 16KiB below (or slightly more if LPAE) for example.
Thanks Russell, I am struggling to learn these things. Slow learner.
I'm reading through the assembler line-by-line and trying to learn
things from the ground up now, let's see if I manage to get these
things eventually.
Best regards,
Linus Walleij
More information about the linux-arm-kernel
mailing list