summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/cpu.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-10-10 08:21:54 -0600
committerSimon Glass <sjg@chromium.org>2014-10-28 20:42:56 -0600
commit92cc94a1fe8e7a3ec78e993ea1ff1dd0bbaa5c36 (patch)
treeaa5553fbc06b31b4ef61c8371490c6aad16b1a0e /arch/x86/include/asm/cpu.h
parentdc68584b420139b8160c3b10921fdf3155f2549f (diff)
downloadblackbird-obmc-uboot-92cc94a1fe8e7a3ec78e993ea1ff1dd0bbaa5c36.tar.gz
blackbird-obmc-uboot-92cc94a1fe8e7a3ec78e993ea1ff1dd0bbaa5c36.zip
x86: Display basic CPU information on boot
Display the type of CPU (x86 or x86_64) when starting up. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/include/asm/cpu.h')
-rw-r--r--arch/x86/include/asm/cpu.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/x86/include/asm/cpu.h b/arch/x86/include/asm/cpu.h
index 2938087cc1..32930bd8c5 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
OpenPOWER on IntegriCloud