summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2015-03-28 10:35:29 -0500
committerAaron Durbin <adurbin@google.com>2015-03-28 16:44:24 +0100
commit910a00dc30c28a667e7064961107ff4483d739e1 (patch)
treeeac56fb33d7b9468fd03387316ddc61f0b6a9bd9 /src
parentb7cf11573d51d277809649f748b796f103fa98dc (diff)
mips: fix API expectations that break builds
Add the approrpiate car* empty implementations as well as types included within the rest of coreboot to start building correctly. Change-Id: Ifaf10281f9a9e28f518f4694630cbffa3f8d187d Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/9150 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: Aaron Durbin <adurbin@google.com>
Diffstat (limited to 'src')
-rw-r--r--src/arch/mips/include/arch/early_variables.h3
-rw-r--r--src/arch/mips/include/stdint.h5
2 files changed, 7 insertions, 1 deletions
diff --git a/src/arch/mips/include/arch/early_variables.h b/src/arch/mips/include/arch/early_variables.h
index a81a6b4037..f16a0e8a51 100644
--- a/src/arch/mips/include/arch/early_variables.h
+++ b/src/arch/mips/include/arch/early_variables.h
@@ -23,8 +23,9 @@
#define CAR_GLOBAL
#define CAR_MIGRATE(migrate_fn_)
-static inline void car_migrate_variables(void) {}
+static inline void *car_get_var_ptr(void *var) { return var; }
#define car_get_var(var) (var)
+#define car_sync_var(var) (var)
#define car_set_var(var, val) { (var) = (val); }
#endif /* __MIPS_ARCH_EARLY_VARIABLES_H */
diff --git a/src/arch/mips/include/stdint.h b/src/arch/mips/include/stdint.h
index 5c21fe6742..5095fa8c9f 100644
--- a/src/arch/mips/include/stdint.h
+++ b/src/arch/mips/include/stdint.h
@@ -94,6 +94,11 @@ typedef int8_t s8;
typedef int16_t s16;
typedef int32_t s32;
+typedef uint8_t bool;
+#define true 1
+#define false 0
+
+
#undef __HAVE_LONG_LONG__
#endif /* __MIPS_STDINT_H */