OSDN Git Service

ARM: 9089/1: Define kernel physical section start and end
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 3 Jun 2021 08:51:21 +0000 (09:51 +0100)
committerRussell King (Oracle) <rmk+kernel@armlinux.org.uk>
Sun, 13 Jun 2021 17:16:41 +0000 (18:16 +0100)
commita91da54570856e3d3af4ba2884db71fbce06f70b
tree6a7cfbf300f11676e139292794744a472cef7e1b
parentb78f63f4439bbfd02bfc628114ed0f63460e5570
ARM: 9089/1: Define kernel physical section start and end

When we are mapping the initial sections in head.S we
know very well where the start and end of the kernel image
in physical memory is placed. Later on it gets hard
to determine this.

Save the information into two variables named
kernel_sec_start and kernel_sec_end for convenience
for later work involving the physical start and end
of the kernel. These variables are section-aligned
corresponding to the early section mappings set up
in head.S.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
arch/arm/include/asm/memory.h
arch/arm/kernel/head.S