Mon, 25 Dec 2017 19:39:42 +0100
10 files changed,
10 insertions(+),
6 deletions(-)
M
kernel/main.c
→
kernel/os_main.c
@@ -1,4 +1,4 @@
-#include "text.h" +#include "os_text.h" int main(void) { clear();
M
kernel/page_allocator.c
→
kernel/os_page_allocator.c
@@ -1,5 +1,5 @@
-#include "page_allocator.h" -#include "paging.h" +#include "os_page_allocator.h" +#include "os_paging.h" uint8_t* first_free = (uint8_t*)0x00200000;
M
kernel/paging.c
→
kernel/os_paging.c
@@ -1,6 +1,6 @@
-#include "paging.h" +#include "os_paging.h" #include "linker.h" -#include "page_allocator.h" +#include "os_page_allocator.h" void* map_first_free(void* page_dir, void* search_start, void* page) { return 0;
M
kernel/text.c
→
kernel/os_text.c
@@ -22,7 +22,11 @@ VGA_TEXTMODE_MEM[VGA_MEM_POS(line, column) + 1] = color;
} __attribute((always_inline)) inline void lfcr() { - line++; + if (line < VGA_TEXTMODE_LINES) { + line++; + } else { + line = VGA_TEXTMODE_LINES - 1; + } column = 0; }