summaryrefslogtreecommitdiff
path: root/stage3/def.h
diff options
context:
space:
mode:
authorLizzy Fleckenstein <lizzy@vlhl.dev>2023-12-19 19:31:03 +0100
committerLizzy Fleckenstein <lizzy@vlhl.dev>2023-12-19 19:41:57 +0100
commit42c69b59e1fdcf70219bc04a3124d2f35d9463ac (patch)
tree554838f5c4a759262563e3fb505d0a7097acf8ea /stage3/def.h
parent3102878c86c810c0bf877d72aceefeb28a44271d (diff)
downloadcuddles-42c69b59e1fdcf70219bc04a3124d2f35d9463ac.tar.xz
ls command
Diffstat (limited to 'stage3/def.h')
-rw-r--r--stage3/def.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/stage3/def.h b/stage3/def.h
index f125a01..807af43 100644
--- a/stage3/def.h
+++ b/stage3/def.h
@@ -35,4 +35,6 @@ typedef struct {
#define BARRIER_VAR(var) asm volatile(""::"m"(var))
#define BARRIER() asm volatile("":::"memory")
+#define LEN(x) (sizeof (x) / sizeof *(x))
+
#endif