x86/boot: Replace __PHYSICAL_START with LOAD_PHYSICAL_ADDR
authorWei Yang <richard.weiyang@gmail.com>
Wed, 13 Mar 2024 07:58:37 +0000 (07:58 +0000)
committerIngo Molnar <mingo@kernel.org>
Fri, 22 Mar 2024 10:36:45 +0000 (11:36 +0100)
commit29b0aab841da3cade64c7e41e99e9f4645e65fb1
treee47f3c075cbb64c8db7a8bf214809bc322c56fb3
parent9b67ce2c121fbf11c0c7b6216c08200fda23c9af
x86/boot: Replace __PHYSICAL_START with LOAD_PHYSICAL_ADDR

Both __PHYSICAL_START and LOAD_PHYSICAL_ADDR are defined to get aligned
CONFIG_PHYSICAL_START, so we can replace __PHYSICAL_START with
LOAD_PHYSICAL_ADDR. And then remove the definition of __PHYSICAL_START,
which is only used to define __START_KERNEL.

Since <asm/boot.h> includes <asm/pgtable_types.h>, which includes
<asm/page_types.h>, it is fine to move definition from <asm/boot.h> to
<asm/page_types.h>.

Signed-off-by: Wei Yang <richard.weiyang@gmail.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20240313075839.8321-3-richard.weiyang@gmail.com
arch/x86/include/asm/boot.h
arch/x86/include/asm/page_types.h