Started writing C headers

This commit is contained in:
2021-04-10 17:37:05 -05:00
parent 8faf353425
commit 505213b7dc
5 changed files with 90 additions and 0 deletions

9
include/types/physaddr.h Normal file
View File

@@ -0,0 +1,9 @@
#pragma once
#if defined __i386__ || __arm__
typedef uint32_t physaddr_t;
#elif defined __x86_64__ || __aarch64__
typedef uint64_t physaddr_t;
#else
typedef uint64_t physaddr_t;
#endif

8
include/types/status.h Normal file
View File

@@ -0,0 +1,8 @@
#pragma once
enum status_t
{
S_OK = 0,
S_BAD_SYSCALL,
S_OUT_OF_MEMORY
};