1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 08:47:34 +00:00

Start fixing up AK to work inside the kernel.

This commit is contained in:
Andreas Kling 2018-10-16 13:59:28 +02:00
parent 1203c327c7
commit 5d465582a3
10 changed files with 68 additions and 47 deletions

View file

@ -1,10 +1,18 @@
#pragma once
#ifdef SERENITY_KERNEL
typedef unsigned char byte;
typedef unsigned short word;
typedef unsigned int dword;
typedef unsigned long long int qword;
typedef signed char signed_byte;
typedef signed short signed_word;
typedef signed int signed_dword;
typedef signed long long int signed_qword;
#else
#include <stdint.h>
#include <sys/types.h>
#endif
typedef uint8_t byte;
typedef uint16_t word;
@ -15,6 +23,7 @@ typedef int8_t signed_byte;
typedef int16_t signed_word;
typedef int32_t signed_dword;
typedef int64_t signed_qword;
#endif
constexpr unsigned KB = 1024;
constexpr unsigned MB = KB * KB;