summaryrefslogtreecommitdiff
path: root/kernel/kernel.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/kernel.c')
-rw-r--r--kernel/kernel.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/kernel/kernel.c b/kernel/kernel.c
index fcfb8d7..4ba76fa 100644
--- a/kernel/kernel.c
+++ b/kernel/kernel.c
@@ -53,6 +53,9 @@ void kernel_main(uint32_t eax,uint32_t ebx)
// MULTIBOOT HEADER
multiboot_information *info=get_multiboot(eax, ebx);
+
+ // INIT VESA
+ vesa_init(info->vbe_control_info,info->vbe_mode_info,0);
// Gather Info about other processors. (APs = application processors) // ACPI or MP
smp_processors procdata;
@@ -71,9 +74,9 @@ void kernel_main(uint32_t eax,uint32_t ebx)
//TODO: !!! Check commented out sleep ()!!!
smp_log_procdata(&procdata);
smp_start_aps(&procdata,"/boot/mp.bin"); //will be copied over mbr
-
+
// VIRTUAL MEMORY (paging)
- pdirectory *dir=vmem_init(kernel_blocks);
+ pdirectory *dir=vmem_init(kernel_blocks,(uint32_t)info->framebuffer_addr);
// PCI Bus
pci_init();