CeDOS - Commit 8c921149

Renaming kernel files
Celina Sophie Kalus
Mon, 25 Dec 2017 19:39:42 +0100
10 files changed, 10 insertions(+), 6 deletions(-)
M kernel/main.ckernel/os_main.c

@@ -1,4 +1,4 @@

-#include "text.h" +#include "os_text.h" int main(void) { clear();
M kernel/page_allocator.ckernel/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.ckernel/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.ckernel/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; }