Merge branch 'multiboot'

rust
E. Almqvist 3 years ago
commit ee01670170
  1. 18
      kernel/kernel.c
  2. 7
      kernel/kernel.h
  3. 3
      kernel/kernel_entry.asm

@ -1,9 +1,4 @@
#include "kernel.h"
#include "memory.h"
#include "paging.h"
#include "../drivers/vga.h"
#include "../lib/str.h"
#include "../lib/conv.h"
void init() {
vga_init(); // Initialize the screen first
@ -15,19 +10,6 @@ void init() {
println("Allocating VGA memory...", DEFAULT_COLOR);
pm_malloc_range(VGA_ADDRESS, VGA_ADDRESS_MAX, true); // force alloc the VGA range
/*
// TODO: MAKE THESE DYNAMIC
print("Kernel offset: ", DEFAULT_COLOR);
println("0x1000", DEFAULT_COLOR);
println("-VGA Stats-", DEFAULT_COLOR);
print("Start: ", DEFAULT_COLOR);
println("0xb7000", DEFAULT_COLOR);
print("End: ", DEFAULT_COLOR);
println("0xb8fa0", DEFAULT_COLOR);
*/
// ENABLE PAGING
// TODO: make this work
// enable_paging();

@ -1,3 +1,10 @@
#include "memory.h"
#include "paging.h"
#include "../drivers/vga.h"
#include "../lib/str.h"
#include "../lib/conv.h"
#define STATUS_TEXT_COLOR 0x0f
void init();

@ -1,5 +1,8 @@
[bits 32]
[extern init]
multiboot2:
dw 0xE85250D6
call init
jmp $

Loading…
Cancel
Save