From 910a00dc30c28a667e7064961107ff4483d739e1 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Sat, 28 Mar 2015 10:35:29 -0500 Subject: 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 Reviewed-on: http://review.coreboot.org/9150 Reviewed-by: Patrick Georgi Tested-by: Aaron Durbin --- src/arch/mips/include/arch/early_variables.h | 3 ++- src/arch/mips/include/stdint.h | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'src') 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 */ -- cgit v1.2.3