From 72df0de8cb579fd96449d19eb57fc71335907a19 Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 22 May 2022 23:35:02 +0300 Subject: add @file info to all files + Next step, start documenting contents of each file. --- arch/riscv64/include/lock.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'arch/riscv64/include/lock.h') 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 */ -- cgit v1.3