aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/arch/x86/Makefile.mk1
-rw-r--r--src/arch/x86/boot.c1
-rw-r--r--src/arch/x86/c_exit.S36
-rw-r--r--src/arch/x86/include/arch/boot/boot.h16
4 files changed, 0 insertions, 54 deletions
diff --git a/src/arch/x86/Makefile.mk b/src/arch/x86/Makefile.mk
index 19945465bc..2bd4338715 100644
--- a/src/arch/x86/Makefile.mk
+++ b/src/arch/x86/Makefile.mk
@@ -253,7 +253,6 @@ ramstage-$(CONFIG_ACPI_BERT) += acpi_bert_storage.c
ramstage-y += boot.c
ramstage-y += post.c
ramstage-y += c_start.S
-ramstage-y += c_exit.S
ramstage-y += cpu.c
ramstage-y += cpu_common.c
ramstage-$(CONFIG_DEBUG_HW_BREAKPOINTS) += breakpoint.c
diff --git a/src/arch/x86/boot.c b/src/arch/x86/boot.c
index 4e547b0e77..8694ff782d 100644
--- a/src/arch/x86/boot.c
+++ b/src/arch/x86/boot.c
@@ -1,6 +1,5 @@
/* SPDX-License-Identifier: GPL-2.0-only */
-#include <arch/boot/boot.h>
#include <arch/cpu.h>
#include <commonlib/helpers.h>
#include <console/console.h>
diff --git a/src/arch/x86/c_exit.S b/src/arch/x86/c_exit.S
deleted file mode 100644
index 069a66c91e..0000000000
--- a/src/arch/x86/c_exit.S
+++ /dev/null
@@ -1,36 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#include <arch/ram_segs.h>
-#include <cpu/x86/cr.h>
-
-#if ENV_X86_64
-
- /*
- * Functions to handle mode switches from long mode to protected
- * mode.
- */
-.text
-.code64
- .section ".text.protected_mode_jump", "ax", @progbits
- .globl protected_mode_jump
-protected_mode_jump:
-
- push %rbp
- mov %rsp, %rbp
-
- /* Arguments to stack */
- push %rdi
- push %rsi
-
- #include <cpu/x86/64bit/exit32.inc>
-
- movl -8(%ebp), %eax /* Function to call */
- movl -16(%ebp), %ebx /* Argument 0 */
-
- /* Align the stack */
- andl $0xFFFFFFF0, %esp
- subl $12, %esp
- pushl %ebx /* Argument 0 */
-
- jmp *%eax
-#endif
diff --git a/src/arch/x86/include/arch/boot/boot.h b/src/arch/x86/include/arch/boot/boot.h
deleted file mode 100644
index e719d20aa5..0000000000
--- a/src/arch/x86/include/arch/boot/boot.h
+++ /dev/null
@@ -1,16 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0-only */
-
-#ifndef X86_BOOT_H
-#define X86_BOOT_H
-
-#include <types.h>
-/*
- * Jump to function in protected mode.
- * @arg func_ptr Function to jump to in protected mode
- * @arg Argument to pass to called function
- *
- * @noreturn
- */
-void protected_mode_jump(uint32_t func_ptr, uint32_t argument);
-
-#endif /* X86_BOOT_H */