summaryrefslogtreecommitdiff
path: root/arch/x86/cpu
diff options
context:
space:
mode:
authorGabe Black <gabeblack@chromium.org>2012-10-20 12:33:10 +0000
committerSimon Glass <sjg@chromium.org>2012-11-30 13:44:04 -0800
commitf30fc4de4160300b90859958a4785c065483e69f (patch)
tree6bc68555f3864ae0fdd89b4a6aba728264d38466 /arch/x86/cpu
parent9ad4736e32acc6bdfac4cedb0be4b2c2851ee5b7 (diff)
downloadu-boot-imx-f30fc4de4160300b90859958a4785c065483e69f.zip
u-boot-imx-f30fc4de4160300b90859958a4785c065483e69f.tar.gz
u-boot-imx-f30fc4de4160300b90859958a4785c065483e69f.tar.bz2
x86: Add a default implementation for cleanup_before_linux()
This function provides an opportunity for some last minute cleanup and reconfiguration before control is handed over to Linux. It's possible this may need to do something in the future, but for now it's left empty. It's set up as a weak symbol so it can be overridden if necessary on a case by case basis. Signed-off-by: Gabe Black <gabeblack@chromium.org> Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/cpu')
-rw-r--r--arch/x86/cpu/cpu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c
index 9c2db9f..fabfbd1 100644
--- a/arch/x86/cpu/cpu.c
+++ b/arch/x86/cpu/cpu.c
@@ -115,6 +115,11 @@ void setup_gdt(gd_t *id, u64 *gdt_addr)
load_fs(X86_GDT_ENTRY_32BIT_FS);
}
+int __weak x86_cleanup_before_linux(void)
+{
+ return 0;
+}
+
int x86_cpu_init_f(void)
{
const u32 em_rst = ~X86_CR0_EM;