Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions plat/arch/armv7a/ps_arch_armv7a_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ struct ps_lock {
unsigned long o;
};

#define PS_LOCK_INITIALIZER (struct ps_lock) {.o = 0}

static inline void
ps_lock_take(struct ps_lock *l)
{ while (!ps_cas(&l->o, 0, 1)) ; }
Expand Down
2 changes: 2 additions & 0 deletions plat/arch/x86/ps_arch_x86_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ struct ps_lock {
unsigned long o;
};

#define PS_LOCK_INITIALIZER (struct ps_lock) {.o = 0}

static inline void
ps_lock_take(struct ps_lock *l)
{ while (!ps_cas(&l->o, 0, 1)) ; }
Expand Down
Loading