Fixed issues with including video driver

This commit is contained in:
Mattia Giambirtone 2022-11-16 20:27:49 +01:00
parent 89f3e70960
commit 678d575cc9
2 changed files with 3 additions and 2 deletions

View File

@ -1,7 +1,7 @@
#ifndef TSOS_DRV_VGA_H // Avoid nasty double-inclusion problems
#define TSOS_DRV_VGA_H
#define VMEM_ADDR 0xb8000
#include "kernel/types/ktypes.h"
#include "../../types/ktypes.h"
uchar_t vga_writeb(u16_t port);

View File

@ -1,9 +1,10 @@
// Entry point of the TSOS kernel
#include "types/ktypes.h"
#include "drivers/vga/video.h"
void kmain(void) {
char_t* vbuf = (char_t*)0xb8000;
char_t* vbuf = (char_t*)VMEM_ADDR;
vbuf += 480; // We skip the log messages before us
char_t *s = "Hello from the TSOS kernel!";
for (int_t i = 0; s[i] != '\0'; i++) {