aboutsummaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorMarvin Borner2021-05-02 14:29:12 +0200
committerMarvin Borner2021-05-02 14:29:12 +0200
commit7e55005dda411b5adafb985e485e3756969f6ac0 (patch)
treef3c866df6995ae6991ad027a8c5481714b8cc431 /libs
parented4d960607d754c407a6964af86afcf0ad294123 (diff)
Some GDT improvements (attempts to fix no I/O GPF)
Diffstat (limited to 'libs')
-rw-r--r--libs/libc/inc/def.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/libc/inc/def.h b/libs/libc/inc/def.h
index cf49c63..6253371 100644
--- a/libs/libc/inc/def.h
+++ b/libs/libc/inc/def.h
@@ -33,6 +33,8 @@ typedef unsigned long long u64;
#define __STRINGIFY(a) #a
#define STRINGIFY(a) __STRINGIFY(a)
+#define COUNT(a) (sizeof(a) / sizeof 0 [a])
+
#define ATTR __attribute__
#define NORETURN ATTR((noreturn))
#define NOINLINE ATTR((noinline))