From 92cc94a1fe8e7a3ec78e993ea1ff1dd0bbaa5c36 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Fri, 10 Oct 2014 08:21:54 -0600 Subject: x86: Display basic CPU information on boot Display the type of CPU (x86 or x86_64) when starting up. Signed-off-by: Simon Glass --- arch/x86/include/asm/cpu.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'arch/x86/include/asm') diff --git a/arch/x86/include/asm/cpu.h b/arch/x86/include/asm/cpu.h index 2938087..32930bd 100644 --- a/arch/x86/include/asm/cpu.h +++ b/arch/x86/include/asm/cpu.h @@ -19,4 +19,11 @@ void cpu_enable_paging_pae(ulong cr3); */ void cpu_disable_paging_pae(void); +/** + * cpu_has_64bit() - Check if the CPU has 64-bit support + * + * @return 1 if this CPU supports long mode (64-bit), 0 if not + */ +int cpu_has_64bit(void); + #endif -- cgit v1.1