summaryrefslogtreecommitdiff
path: root/src/include/cpu/intel
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2016-02-05 14:58:06 -0600
committerAaron Durbin <adurbin@chromium.org>2016-02-10 18:08:28 +0100
commita02bb653fdfdd0e1c0426d3573a979594a93eb58 (patch)
tree8d33cfda3caad26be235469becf6aee39de34c0d /src/include/cpu/intel
parent5a70d6bdf2e70b29740a36061321af59b3005f85 (diff)
downloadcoreboot-a02bb653fdfdd0e1c0426d3573a979594a93eb58.tar.xz
cpu/intel/microcode: allow microcode to be loaded in romstage
The previous usage of the intel microcode support supported using the library under ROMCC and ramstage. Allow for microcode support to be used in normal C-based romstage as well by: 1. Only using walkcbfs when ROMCC is defined. 2. Only using spinlocks if !__PRE_RAM__ The header file now unconditionally exposes the declarations of the supporting functions. Change-Id: I903578bcb4422b4c050903c53b60372b64b79af1 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/13611 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'src/include/cpu/intel')
-rw-r--r--src/include/cpu/intel/microcode.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/cpu/intel/microcode.h b/src/include/cpu/intel/microcode.h
index 0f71b5d7ed..0783ace244 100644
--- a/src/include/cpu/intel/microcode.h
+++ b/src/include/cpu/intel/microcode.h
@@ -16,7 +16,8 @@
#ifndef __CPU__INTEL__MICROCODE__
#define __CPU__INTEL__MICROCODE__
-#ifndef __PRE_RAM__
+#include <stdint.h>
+
void intel_update_microcode_from_cbfs(void);
/* Find a microcode that matches the revision and platform family returning
* NULL if none found. */
@@ -29,6 +30,5 @@ void intel_microcode_load_unlocked(const void *microcode_patch);
/* SoC specific check to determine if microcode update is really
* required, will skip microcode update if true. */
int soc_skip_ucode_update(u32 currrent_patch_id, u32 new_patch_id);
-#endif
#endif