aboutsummaryrefslogtreecommitdiff
path: root/arch/riscv64/include/lock.h
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2022-05-22 23:35:02 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2022-05-22 23:35:02 +0300
commit72df0de8cb579fd96449d19eb57fc71335907a19 (patch)
tree6a0a24478fe95f009619787afd24ddfe5df8cfd7 /arch/riscv64/include/lock.h
parentd99be9e2912e0726ab779053b43a89e3b9e21490 (diff)
downloadkmi-72df0de8cb579fd96449d19eb57fc71335907a19.tar.gz
kmi-72df0de8cb579fd96449d19eb57fc71335907a19.zip
add @file info to all files
+ Next step, start documenting contents of each file.
Diffstat (limited to 'arch/riscv64/include/lock.h')
-rw-r--r--arch/riscv64/include/lock.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/riscv64/include/lock.h b/arch/riscv64/include/lock.h
index 4f71344..15e5765 100644
--- a/arch/riscv64/include/lock.h
+++ b/arch/riscv64/include/lock.h
@@ -1 +1,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 */