Files
mango/include/socks/locks.h
2023-02-04 19:03:30 +00:00

15 lines
362 B
C

#ifndef SOCKS_LOCKS_H_
#define SOCKS_LOCKS_H_
#include <socks/compiler.h>
#include <socks/machine/hwlock.h>
typedef __aligned(8) ml_hwlock_t spin_lock_t;
#define SPIN_LOCK_INIT ML_HWLOCK_INIT
#define spin_lock_irqsave(lck, flags) ml_hwlock_lock_irqsave(lck, flags);
#define spin_unlock_irqrestore(lck, flags) ml_hwlock_unlock_irqrestore(lck, flags);
#endif