summaryrefslogtreecommitdiffstats
path: root/include/types.h
diff options
context:
space:
mode:
authorAlexey Gavrilov <90127298+rebovas@users.noreply.github.com>2024-03-27 19:50:26 +0700
committerGitHub <noreply@github.com>2024-03-27 19:50:26 +0700
commita276644952ed018e77ca64181059434a6bc4ee62 (patch)
treee6a457ec4b2758c0c3bef78df475ad52d92a7ab4 /include/types.h
parent91b4d8fa6bed598e2969f16a7a953e293a1b7f89 (diff)
parente51dea0b6e34c2959b3b0f4a5db6b11d4b619960 (diff)
Merge pull request #5 from rebovas/acpi_madt
Acpi madt + some updates
Diffstat (limited to 'include/types.h')
-rw-r--r--include/types.h17
1 files changed, 14 insertions, 3 deletions
diff --git a/include/types.h b/include/types.h
index e578adb..f7c0eb6 100644
--- a/include/types.h
+++ b/include/types.h
@@ -1,13 +1,24 @@
-#define NULL 0
+#ifndef TYPES_H
+#define TYPES_H
+
+#include <arch>
+#define NULL 0
+
+#if defined(__IAPC)
typedef unsigned char uint8;
typedef unsigned short int uint16;
typedef unsigned long uint32;
typedef unsigned long long uint64;
#if defined(__x86_64)
- typedef uint64 memAddr;
+ typedef uint64 uintptr;
#else
- typedef uint32 memAddr;
+ typedef uint32 uintptr;
+#endif
+#else
+ #error IA-PC only support
+#endif
+
#endif