aboutsummaryrefslogtreecommitdiff
path: root/libk
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2021-02-16 22:22:38 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2021-02-16 22:22:38 +0200
commita00456084240e11e29fc5eaf9c34227491eaf1dc (patch)
treed1987768f9f99616883e865b09d720a221427160 /libk
parentAdd grub build instructions (diff)
downloadkernel.cpp-a00456084240e11e29fc5eaf9c34227491eaf1dc.tar.xz
Add IDT
Diffstat (limited to 'libk')
-rw-r--r--libk/types.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/libk/types.h b/libk/types.h
index 599f852..08d42b9 100644
--- a/libk/types.h
+++ b/libk/types.h
@@ -13,6 +13,15 @@ typedef short int16_t;
typedef int int32_t;
typedef long long int int64_t;
+/* in x86:
+ * byte: 1 byte, 8 bits
+ * word: 2 bytes, 16 bits
+ * dword: 4 bytes, 32 bits
+ * qword: 8 bytes, 64 bits
+ * */
+typedef uint16_t uword_t;
+typedef int16_t word_t;
+
// Type Traits
template <class T, T v>