Organizing the kernel code.

This commit is contained in:
Nicolás Ortega Froysa
2018-02-23 18:50:05 +01:00
parent 7a2618dd4d
commit 78c1155430
9 changed files with 11 additions and 16 deletions

10
kernel/kernel.c Normal file
View File

@ -0,0 +1,10 @@
void main() {
/*
* point to first text cell of the video memory
*/
char *video_memory = (char*) 0xb8000;
/*
* store the character 'X' there
*/
*video_memory = 'X';
}

4
kernel/kernel_entry.asm Normal file
View File

@ -0,0 +1,4 @@
[bits 32]
[extern main] ; reference an external label
call main ; call the main function of our kernel
jmp $ ; hang