aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv64/include/lock.h
blob: 15e57657e4e19c83cd585a725cfcfbc9b6385fbc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef APOS_RISCV_LOCK_H
#define APOS_RISCV_LOCK_H
/**
 * @file lock.h
 * riscv64 implementation of arch-specific lock behaviour, currently only \ref
 * optional_pause().
 */

/**
 * riscv64 does not have a way to inform the cpu of a spinlock (at least at the
 * moment, it may be added in as a hint later on)
 */
#define optional_pause()

#endif /* APOS_RISCV_LOCK_H */