Fixed issues with including video driver
This commit is contained in:
parent
89f3e70960
commit
678d575cc9
|
@ -1,7 +1,7 @@
|
||||||
#ifndef TSOS_DRV_VGA_H // Avoid nasty double-inclusion problems
|
#ifndef TSOS_DRV_VGA_H // Avoid nasty double-inclusion problems
|
||||||
#define TSOS_DRV_VGA_H
|
#define TSOS_DRV_VGA_H
|
||||||
#define VMEM_ADDR 0xb8000
|
#define VMEM_ADDR 0xb8000
|
||||||
#include "kernel/types/ktypes.h"
|
#include "../../types/ktypes.h"
|
||||||
|
|
||||||
|
|
||||||
uchar_t vga_writeb(u16_t port);
|
uchar_t vga_writeb(u16_t port);
|
||||||
|
|
|
@ -1,9 +1,10 @@
|
||||||
// Entry point of the TSOS kernel
|
// Entry point of the TSOS kernel
|
||||||
#include "types/ktypes.h"
|
#include "types/ktypes.h"
|
||||||
|
#include "drivers/vga/video.h"
|
||||||
|
|
||||||
|
|
||||||
void kmain(void) {
|
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
|
vbuf += 480; // We skip the log messages before us
|
||||||
char_t *s = "Hello from the TSOS kernel!";
|
char_t *s = "Hello from the TSOS kernel!";
|
||||||
for (int_t i = 0; s[i] != '\0'; i++) {
|
for (int_t i = 0; s[i] != '\0'; i++) {
|
||||||
|
|
Loading…
Reference in New Issue