First commit: add folder structure, make process, kernel main function, base for framebuffer driver

This commit is contained in:
xamidev
2024-05-18 22:06:31 +02:00
commit 25405a7c11
21 changed files with 444 additions and 0 deletions

16
stdio.h Normal file
View File

@@ -0,0 +1,16 @@
#ifndef INCLUDE_STDIO_H
#define INCLUDE_STDIO_H
#define FB_GREEN 2
#define FB_DARK_GREY 8
#define FB_CMD_PORT 0x3D4
#define FB_DATA_PORT 0x3D5
#define FB_HIGH_BYTE_CMD 14
#define FB_LOW_BYTE_CMD 15
void move_cursor(unsigned short pos);
void putchar(unsigned int i, char c, unsigned char fg, unsigned char bg);
int write(char *buf, unsigned int len);
#endif