mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 05:07:35 +00:00
Start fixing up AK to work inside the kernel.
This commit is contained in:
parent
1203c327c7
commit
5d465582a3
10 changed files with 68 additions and 47 deletions
11
AK/Types.h
11
AK/Types.h
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue