Makefile done and kernel booting

This commit is contained in:
2024-09-07 00:36:03 +02:00
parent 32c01291ad
commit a3e5157879
4 changed files with 78 additions and 0 deletions

View File

@ -41,6 +41,13 @@ static inline uint16_t vga_entry(unsigned char uc, uint8_t color) {
return (uint16_t)uc | (uint16_t)color << 8;
}
size_t strlen(const char *str) {
size_t len = 0;
while (str[len])
len++;
return len;
}
static const size_t VGA_WIDTH = 80;
static const size_t VGA_HEIGHT = 25;