1ea8256f0SStefan Roese /*
2ea8256f0SStefan Roese * Copyright 2012 Stefan Roese <sr@denx.de>
3ea8256f0SStefan Roese *
41a459660SWolfgang Denk * SPDX-License-Identifier: GPL-2.0+
5ea8256f0SStefan Roese */
6ea8256f0SStefan Roese #include <common.h>
7ea8256f0SStefan Roese #include <config.h>
8ea8256f0SStefan Roese #include <spl.h>
9ea8256f0SStefan Roese #include <image.h>
10ea8256f0SStefan Roese #include <linux/compiler.h>
11ea8256f0SStefan Roese
12ea8256f0SStefan Roese DECLARE_GLOBAL_DATA_PTR;
13ea8256f0SStefan Roese
14ea8256f0SStefan Roese /*
15ea8256f0SStefan Roese * This function jumps to an image with argument. Normally an FDT or ATAGS
16ea8256f0SStefan Roese * image.
17ea8256f0SStefan Roese */
18ea8256f0SStefan Roese #ifdef CONFIG_SPL_OS_BOOT
jump_to_image_linux(struct spl_image_info * spl_image)19*5bf5250eSVikas Manocha void __noreturn jump_to_image_linux(struct spl_image_info *spl_image)
20ea8256f0SStefan Roese {
21*5bf5250eSVikas Manocha debug("Entering kernel arg pointer: 0x%p\n", spl_image->arg);
22ea8256f0SStefan Roese typedef void (*image_entry_arg_t)(void *, ulong r4, ulong r5, ulong r6,
23ea8256f0SStefan Roese ulong r7, ulong r8, ulong r9)
24ea8256f0SStefan Roese __attribute__ ((noreturn));
25ea8256f0SStefan Roese image_entry_arg_t image_entry =
26ca12e65cSSimon Glass (image_entry_arg_t)spl_image->entry_point;
27ea8256f0SStefan Roese
28*5bf5250eSVikas Manocha image_entry(spl_image->arg, 0, 0, EPAPR_MAGIC, CONFIG_SYS_BOOTMAPSZ,
29*5bf5250eSVikas Manocha 0, 0);
30ea8256f0SStefan Roese }
31ea8256f0SStefan Roese #endif /* CONFIG_SPL_OS_BOOT */
32