X-Git-Url: http://git.dujemihanovic.xyz/projects?a=blobdiff_plain;f=kernel%2Fkernel.c;h=7ac2ad72d79127aa2c942ca62a3561b3a8da9cb6;hb=6c6312e540a570d376aae5551626128fcc1cd1c6;hp=e04b875e2959b5963e7c6f4ba394abba1f5f0be5;hpb=668fa121eb74d3317a73c2289f8805aaf1c84d7e;p=nameless-os.git diff --git a/kernel/kernel.c b/kernel/kernel.c index e04b875..7ac2ad7 100644 --- a/kernel/kernel.c +++ b/kernel/kernel.c @@ -1,5 +1,17 @@ +#include + +const char *string = "Hello there!\n\n\ +Hopefully your machine manages to print this text.\n\ +If it did, that's great news because I managed to write a partial VGA driver.\n\n\ +Right now, the short-term roadmap is as follows:\n\n\ +* Complete the text-mode part of the VGA driver.\n\ +* Enable interrupts using the PIC.\n\ +* Write a driver for the Intel 8042 PS/2 controller so the OS can receive keystrokes.\n\ +* Once all that is done, it would be desirable to start the switch to userspace so the OS can actually be remotely usable.\n\n\ +Feel free to mess around with the code, although I doubt it will be very interesting at the moment.\n"; + void _start(void) { - char *video_memory = (char *) 0xB8000; /* VGA VRAM starts at 0xB8000 */ - *video_memory = 'A'; /* put an A at the beginning of the VRAM */ + screen_clear(); + kprint(string); }