start64.S 469 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * 64-bit x86 Startup Code
  3. *
  4. * (C) Copyright 216 Google, Inc
  5. * Written by Simon Glass <sjg@chromium.org>
  6. *
  7. * SPDX-License-Identifier: GPL-2.0+
  8. */
  9. #include <config.h>
  10. .section .text
  11. .code64
  12. .globl _start
  13. .type _start, @function
  14. _start:
  15. /* Set up memory using the existing stack */
  16. mov %rsp, %rdi
  17. call board_init_f_alloc_reserve
  18. mov %rax, %rsp
  19. call board_init_f_init_reserve
  20. call board_init_f
  21. call board_init_f_r
  22. /* Should not return here */
  23. jmp .