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 * arg: Pointer to paramter image in RAM 18ea8256f0SStefan Roese */ 19ea8256f0SStefan Roese #ifdef CONFIG_SPL_OS_BOOT 20*ca12e65cSSimon Glass void __noreturn jump_to_image_linux(struct spl_image_info *spl_image, void *arg) 21ea8256f0SStefan Roese { 22ea8256f0SStefan Roese debug("Entering kernel arg pointer: 0x%p\n", arg); 23ea8256f0SStefan Roese typedef void (*image_entry_arg_t)(void *, ulong r4, ulong r5, ulong r6, 24ea8256f0SStefan Roese ulong r7, ulong r8, ulong r9) 25ea8256f0SStefan Roese __attribute__ ((noreturn)); 26ea8256f0SStefan Roese image_entry_arg_t image_entry = 27*ca12e65cSSimon Glass (image_entry_arg_t)spl_image->entry_point; 28ea8256f0SStefan Roese 29ea8256f0SStefan Roese image_entry(arg, 0, 0, EPAPR_MAGIC, CONFIG_SYS_BOOTMAPSZ, 0, 0); 30ea8256f0SStefan Roese } 31ea8256f0SStefan Roese #endif /* CONFIG_SPL_OS_BOOT */ 32