aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-02-13 17:32:45 -0700
committerChristian Cunningham <cc@localhost>2022-02-13 17:32:45 -0700
commit1a3e539f46911081170c9b2515331cfed5c00f05 (patch)
tree4247f7efcf15585d9aba38df76604f35e5158001 /src/util
parente814983a452c40734c5ecc63581df88d3925835e (diff)
Added notes
Diffstat (limited to 'src/util')
-rw-r--r--src/util/lock.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/util/lock.c b/src/util/lock.c
index 6b048f4..6c7d07e 100644
--- a/src/util/lock.c
+++ b/src/util/lock.c
@@ -3,6 +3,9 @@
#include <lib/kmem.h>
#include <util/lock.h>
+// TODO: Improve locking for system
+// 1. Return code rather than hang?
+// 2. Specific core PID rather than CORE0
void lock(struct Lock* l)
{
unsigned long mode = getmode() & 0x1F;