Основные определения ядра
Подробнее...
См. исходные тексты.
|
|
#define | FALSE 0 |
| |
|
#define | TRUE 1 |
| |
|
#define | nullptr ((void*)0) |
| |
|
#define | NULL (0) |
| |
|
#define | SAYORI_INLINE static inline __attribute__((always_inline)) |
| |
|
#define | KB (1 << 10) |
| |
|
#define | MB (1 << 20) |
| |
|
#define | GB (1 << 30) |
| |
|
#define | ALIGN(value, align) ((value) + ((-(value)) & ((align) - 1))) |
| |
|
#define | IS_ALIGNED(value, align) ((value) % (align) == 0) |
| |
| #define | ON_NULLPTR(ptr, code) |
| |
|
|
typedef unsigned long long | uint64_t |
| |
|
typedef long long | int64_t |
| |
|
typedef unsigned int | uint32_t |
| |
|
typedef int | int32_t |
| |
|
typedef unsigned short | uint16_t |
| |
|
typedef short | int16_t |
| |
|
typedef unsigned char | uint8_t |
| |
|
typedef char | int8_t |
| |
|
typedef uint32_t | size_t |
| |
|
typedef int32_t | ssize_t |
| |
|
typedef struct registers | registers_t |
| |
|
| enum | bool { false = 0
, true = 1
} |
| |
|
|
uint32_t | ds |
| |
|
uint32_t | edi |
| |
|
uint32_t | esi |
| |
|
uint32_t | ebp |
| |
|
uint32_t | esp |
| |
|
uint32_t | ebx |
| |
|
uint32_t | edx |
| |
|
uint32_t | ecx |
| |
|
uint32_t | eax |
| |
|
uint32_t | int_num |
| |
|
uint32_t | err_code |
| |
|
uint32_t | eip |
| |
|
uint32_t | cs |
| |
|
uint32_t | eflags |
| |
|
uint32_t | useresp |
| |
|
uint32_t | ss |
| |
Основные определения ядра
- Автор
- Пиминов Никита (nikit.nosp@m.a.pi.nosp@m.minof.nosp@m.f@ya.nosp@m.ndex..nosp@m.ru)
- Версия
- 0.3.5
- Дата
- 2023-12-07
- Авторство
- Copyright SayoriOS Team (c) 2022-2024
См. определение в файле common.h
◆ ON_NULLPTR
| #define ON_NULLPTR |
( |
|
ptr, |
|
|
|
code |
|
) |
| |
Макроопределение: do { \
if((ptr) == 0) { \
qemu_err("You have an illusion that you see an object but you can't touch it because it's not exist..."); \
code \
} \
} while(0)
См. определение в файле common.h строка 70
◆ __attribute__()
Структура данных пакета от мыши
Структура данных пакета от мыши
См. определение в файле psf.h строка 1