diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-02-16 22:22:38 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2021-02-16 22:22:38 +0200 |
commit | a00456084240e11e29fc5eaf9c34227491eaf1dc (patch) | |
tree | d1987768f9f99616883e865b09d720a221427160 /libk/types.h | |
parent | Add grub build instructions (diff) | |
download | kernel.cpp-a00456084240e11e29fc5eaf9c34227491eaf1dc.tar.xz |
Add IDT
Diffstat (limited to 'libk/types.h')
-rw-r--r-- | libk/types.h | 9 |
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> |