start64.S 475 B

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