spl.c 583 B

12345678910111213141516171819202122
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) 2020 Stefan Roese <sr@denx.de>
  4. */
  5. #include <common.h>
  6. #include <cpu_func.h>
  7. #include <log.h>
  8. #include <spl.h>
  9. void __noreturn jump_to_image_no_args(struct spl_image_info *spl_image)
  10. {
  11. typedef void __noreturn (*image_entry_noargs_t)(void);
  12. image_entry_noargs_t image_entry =
  13. (image_entry_noargs_t)spl_image->entry_point;
  14. /* Flush cache before jumping to application */
  15. flush_cache((unsigned long)spl_image->load_addr, spl_image->size);
  16. debug("image entry point: 0x%lx\n", spl_image->entry_point);
  17. image_entry();
  18. }