summaryrefslogtreecommitdiffstats
path: root/arch/x86/cpu/start16.S
diff options
context:
space:
mode:
authorGabe Black <gabeblack@chromium.org>2012-11-03 11:41:28 +0000
committerSimon Glass <sjg@chromium.org>2012-12-06 14:30:42 -0800
commit91d82a29e7aec12c97dcd4a4be1962f6d794b35c (patch)
treee70b0d46290d7e1554bc59253cb55e8d091e1ecb /arch/x86/cpu/start16.S
parent112a575e498fe0c6bfbb4dbe3266d83f48d46a99 (diff)
downloadblackbird-obmc-uboot-91d82a29e7aec12c97dcd4a4be1962f6d794b35c.tar.gz
blackbird-obmc-uboot-91d82a29e7aec12c97dcd4a4be1962f6d794b35c.zip
x86: Add back cold- and warm-boot flags
These were removed, but actually are useful. Cold means that we started from a reset/power on. Warm means that we started from another U-Boot. We determine whether u-boot on x86 was warm or cold booted (really if it started at the beginning of the text segment or at the ELF entry point). We plumb the result through to the global data structure. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/cpu/start16.S')
-rw-r--r--arch/x86/cpu/start16.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/cpu/start16.S b/arch/x86/cpu/start16.S
index cc393ff54f..603bf1d2d3 100644
--- a/arch/x86/cpu/start16.S
+++ b/arch/x86/cpu/start16.S
@@ -37,6 +37,9 @@
.code16
.globl start16
start16:
+ /* Set the Cold Boot / Hard Reset flag */
+ movl $GD_FLG_COLD_BOOT, %ebx
+
/*
* First we let the BSP do some early initialization
* this code have to map the flash to its final position
OpenPOWER on IntegriCloud