mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 22:40:55 +07:00
40c6d8aee4
Boards used to specify zreladdr in their Makefile.boot with zreladdr-y := x, so conflicting zreladdrs were silently overwritten. This patch changes this to zreladdr-y += x, so that we end up with multiple words in zreladdr in such a case. We can detect this later and complain if necessary. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
19 lines
509 B
Clojure
19 lines
509 B
Clojure
# Note: the following conditions must always be true:
|
|
# ZRELADDR == virt_to_phys(TEXTADDR)
|
|
# PARAMS_PHYS must be within 4MB of ZRELADDR
|
|
# INITRD_PHYS must be in RAM
|
|
|
|
ifeq ($(CONFIG_ARCH_AT91CAP9),y)
|
|
zreladdr-y += 0x70008000
|
|
params_phys-y := 0x70000100
|
|
initrd_phys-y := 0x70410000
|
|
else ifeq ($(CONFIG_ARCH_AT91SAM9G45),y)
|
|
zreladdr-y += 0x70008000
|
|
params_phys-y := 0x70000100
|
|
initrd_phys-y := 0x70410000
|
|
else
|
|
zreladdr-y += 0x20008000
|
|
params_phys-y := 0x20000100
|
|
initrd_phys-y := 0x20410000
|
|
endif
|