mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: arch/x86: do not define type of SPIN_LOCK_UNLOCKED
This fixes building coreboot with -std=gnu11 on gcc 4.9.x
Also needs fix ups for asus/kcma-d8 and asus/kgpe-d16 due to the missing
type.
BUG=none
BRANCH=none
TEST=none
Change-Id: I815127db725dd4bc3930e361d79d27a2a63eca80
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: 06a629e4b1
Original-Change-Id: I920d492a1422433d7d4b4659b27f5a22914bc438
Original-Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Reviewed-on: https://review.coreboot.org/18220
Original-Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Original-Tested-by: build bot (Jenkins)
Reviewed-on: https://chromium-review.googlesource.com/431985
This commit is contained in:
parent
29843f711f
commit
cc7a8e145e
3 changed files with 7 additions and 7 deletions
|
@ -36,7 +36,7 @@ spinlock_t* romstage_microcode_cbfs_lock(void);
|
|||
void initialize_romstage_microcode_cbfs_lock(void);
|
||||
#endif
|
||||
|
||||
#define SPIN_LOCK_UNLOCKED (spinlock_t) { 1 }
|
||||
#define SPIN_LOCK_UNLOCKED { 1 }
|
||||
|
||||
#ifndef __PRE_RAM__
|
||||
#define DECLARE_SPIN_LOCK(x) static spinlock_t x = SPIN_LOCK_UNLOCKED;
|
||||
|
|
|
@ -323,7 +323,7 @@ spinlock_t* romstage_console_lock(void)
|
|||
|
||||
void initialize_romstage_console_lock(void)
|
||||
{
|
||||
car_get_var(printk_spinlock) = SPIN_LOCK_UNLOCKED;
|
||||
spin_unlock(romstage_console_lock());
|
||||
}
|
||||
|
||||
static spinlock_t nvram_cbfs_spinlock CAR_GLOBAL;
|
||||
|
@ -335,7 +335,7 @@ spinlock_t* romstage_nvram_cbfs_lock(void)
|
|||
|
||||
void initialize_romstage_nvram_cbfs_lock(void)
|
||||
{
|
||||
car_get_var(nvram_cbfs_spinlock) = SPIN_LOCK_UNLOCKED;
|
||||
spin_unlock(romstage_nvram_cbfs_lock());
|
||||
}
|
||||
|
||||
static spinlock_t microcode_cbfs_spinlock CAR_GLOBAL;
|
||||
|
@ -347,7 +347,7 @@ spinlock_t* romstage_microcode_cbfs_lock(void)
|
|||
|
||||
void initialize_romstage_microcode_cbfs_lock(void)
|
||||
{
|
||||
car_get_var(microcode_cbfs_spinlock) = SPIN_LOCK_UNLOCKED;
|
||||
spin_unlock(romstage_microcode_cbfs_lock());
|
||||
}
|
||||
|
||||
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
||||
|
|
|
@ -363,7 +363,7 @@ spinlock_t* romstage_console_lock(void)
|
|||
|
||||
void initialize_romstage_console_lock(void)
|
||||
{
|
||||
car_get_var(printk_spinlock) = SPIN_LOCK_UNLOCKED;
|
||||
spin_unlock(romstage_console_lock());
|
||||
}
|
||||
|
||||
static spinlock_t nvram_cbfs_spinlock CAR_GLOBAL;
|
||||
|
@ -375,7 +375,7 @@ spinlock_t* romstage_nvram_cbfs_lock(void)
|
|||
|
||||
void initialize_romstage_nvram_cbfs_lock(void)
|
||||
{
|
||||
car_get_var(nvram_cbfs_spinlock) = SPIN_LOCK_UNLOCKED;
|
||||
spin_unlock(romstage_nvram_cbfs_lock());
|
||||
}
|
||||
|
||||
static spinlock_t microcode_cbfs_spinlock CAR_GLOBAL;
|
||||
|
@ -387,7 +387,7 @@ spinlock_t* romstage_microcode_cbfs_lock(void)
|
|||
|
||||
void initialize_romstage_microcode_cbfs_lock(void)
|
||||
{
|
||||
car_get_var(microcode_cbfs_spinlock) = SPIN_LOCK_UNLOCKED;
|
||||
spin_unlock(romstage_microcode_cbfs_lock());
|
||||
}
|
||||
|
||||
void cache_as_ram_main(unsigned long bist, unsigned long cpu_init_detectedx)
|
||||
|
|
Loading…
Add table
Reference in a new issue