From 61f9ebbdae7971a67d659ef64f520ebc313d1158 Mon Sep 17 00:00:00 2001 From: Mark Date: Wed, 18 Sep 2019 23:26:47 +0300 Subject: [PATCH] Add sys/types.h impl --- include/arch/amd64/mm/phys.h | 3 +-- include/sys/heap.h | 4 +--- include/sys/types.h | 5 +++++ 3 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 include/sys/types.h diff --git a/include/arch/amd64/mm/phys.h b/include/arch/amd64/mm/phys.h index 88a69b0..5bd542d 100644 --- a/include/arch/amd64/mm/phys.h +++ b/include/arch/amd64/mm/phys.h @@ -1,8 +1,7 @@ #pragma once #include "arch/amd64/loader/multiboot.h" -//#include +#include "sys/types.h" #include -typedef uintptr_t size_t; void amd64_phys_memory_map(const multiboot_memory_map_t *mmap, size_t length); diff --git a/include/sys/heap.h b/include/sys/heap.h index f9759bf..e09f3f9 100644 --- a/include/sys/heap.h +++ b/include/sys/heap.h @@ -3,9 +3,7 @@ * @brief Kernel heap memory managament functions */ #pragma once -//#include -#include -typedef uintptr_t size_t; +#include "sys/types.h" /** * @brief Common kernel heap alloc diff --git a/include/sys/types.h b/include/sys/types.h new file mode 100644 index 0000000..75b16a7 --- /dev/null +++ b/include/sys/types.h @@ -0,0 +1,5 @@ +#pragma once +#include + +typedef uintptr_t size_t; +typedef intptr_t ssize_t;