1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * (C) Copyright 2015 Google, Inc
4 * Written by Simon Glass <sjg@chromium.org>
7 #include <asm/msr-index.h>
8 #include <asm/processor-flags.h>
11 * rdi - 32-bit code segment selector
12 * rsi - target address
13 * rdx - table address (0 if none)
20 /* Save table pointer */
24 * Debugging option, this outputs characters to the console UART
31 push %rdi /* 32-bit code segment */
32 lea compat(%rip), %rax
38 * We are now in compatibility mode with a default operand size of
39 * 32 bits. First disable paging.
42 andl $~X86_CR0_PG, %eax
49 /* Disable Long mode in EFER (Extended Feature Enable Register) */
55 /* Set up table pointer for _x86boot_start */
58 /* Jump to the required target */
59 pushl %edi /* 32-bit code segment */
60 pushl %esi /* 32-bit target address */