From cd55874ed9faa1768af98e766e74b3ed54af3f2a Mon Sep 17 00:00:00 2001 From: Jules Maselbas Date: Mon, 17 Jan 2022 23:19:09 +0100 Subject: kvx: Accept LINUX_BOOT_PARAM_MAGIC as a valid magic value Both defines FSBL_PARAM_MAGIC and LINUX_BOOT_PARAM_MAGIC have a similar uses and yet have different values. Making barebox accept both as valid magic boot param will make it possible to use qemu-system-kvx to boot a barebox image as a normal kernel. Signed-off-by: Jules Maselbas Link: https://lore.barebox.org/20220117221917.26970-4-jmaselbas@kalray.eu Signed-off-by: Sascha Hauer --- arch/kvx/cpu/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/kvx') diff --git a/arch/kvx/cpu/cpu.c b/arch/kvx/cpu/cpu.c index 788d3194fe..4b0d4d2d96 100644 --- a/arch/kvx/cpu/cpu.c +++ b/arch/kvx/cpu/cpu.c @@ -16,7 +16,7 @@ void kvx_lowlevel_setup(unsigned long r0, void *dtb_ptr) { uint64_t ev_val = (uint64_t) &_exception_start | EXCEPTION_STRIDE; - if (r0 == FSBL_PARAM_MAGIC) { + if (r0 == FSBL_PARAM_MAGIC || r0 == LINUX_BOOT_PARAM_MAGIC) { boot_dtb = dtb_ptr; pr_info("Using DTB provided by FSBL\n"); } -- cgit v1.2.3