From patchwork Wed Apr 22 00:45:01 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Park, Aiden" X-Patchwork-Id: 238234 List-Id: U-Boot discussion From: aiden.park at intel.com (aiden.park at intel.com) Date: Tue, 21 Apr 2020 17:45:01 -0700 Subject: [PATCH 2/8] x86: start64: Add a hook at 64-bit entry In-Reply-To: <20200422004507.2025-1-aiden.park@intel.com> References: <20200422004507.2025-1-aiden.park@intel.com> Message-ID: <20200422004507.2025-3-aiden.park@intel.com> From: Aiden Park This will allow a board or cpu to do its specific initialization at 64-bit entry if U-Boot is a pure 64-bit binary. Signed-off-by: Aiden Park --- arch/x86/cpu/start64.S | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/arch/x86/cpu/start64.S b/arch/x86/cpu/start64.S index 7be834788b..b8ac5aab57 100644 --- a/arch/x86/cpu/start64.S +++ b/arch/x86/cpu/start64.S @@ -13,6 +13,11 @@ .globl _start .type _start, @function _start: +#if defined(CONFIG_X86_RUN_64BIT_ONLY) + jmp init_64bit_entry +.globl init_64bit_entry_ret +init_64bit_entry_ret: +#endif /* Set up memory using the existing stack */ mov %rsp, %rdi call board_init_f_alloc_reserve