ppc/pnv: Use skiboot addresses to load kernel and ramfs
commit05ce9b73b877d4a91f722e4a359315d7c9e1adc9
authorCédric Le Goater <clg@kaod.org>
Tue, 26 Jan 2021 17:10:55 +0000 (26 18:10 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 9 Feb 2021 23:43:50 +0000 (10 10:43 +1100)
treea4940143cc0f0b1a73bef19f3351398c0218a1c2
parentcb9428642e0526bb4a106934cd8209b2553a153a
ppc/pnv: Use skiboot addresses to load kernel and ramfs

The current settings are useful to load large kernels (with debug) but
it moves the initrd image in a memory region not protected by
skiboot. If skiboot is compiled with DEBUG=1, memory poisoning will
corrupt the initrd.

Cc: Murilo Opsfelder Araujo <muriloo@linux.ibm.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20210126171059.307867-4-clg@kaod.org>
Reviewed-by: Murilo Opsfelder Araujo <muriloo@linux.ibm.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/pnv.c