blob: 791c5cc0b09015294997dea0c3622e39c05c009c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
#include "boucane.hpp"
#include "core/idt.hpp"
#include "boot/multiboot2.hpp"
#include "core/paging.hpp"
#include "core/apic.hpp"
#include "drivers/acpi.hpp"
#include "drivers/psf.hpp"
#include "drivers/framebuffer.hpp"
#include "libs/stdio.hpp"
#include "core/asm.hpp"
extern u32 MB_INFO;
extern u64 res_binary_res_terminus_psf_start;
extern "C" void boucane(){
//clear();
//printk("Booting Boucane v%d.%d.%d\n",VERSION_MAJOR,VERSION_MINOR, VERSION_PATH);
//idt_enable_interrupt();
paging_enable();
FRAMEBUFFER fb_info;
if(mb2_find_framebuffer((u32*)MB_INFO, &fb_info)){
if(fb_info.bpp>16){
FB_CFG conf;
conf.depth=fb_info.bpp;
conf.location=fb_info.addr;
conf.pitch=fb_info.pitch;
conf.width=fb_info.width;
conf.height=fb_info.height;
framebuffer_init(conf);
psf_init((void*)&res_binary_res_terminus_psf_start);
__putchar=psf_putchar;
}
}
printk("Booting Boucane v%d.%d.%d\n",VERSION_MAJOR,VERSION_MINOR, VERSION_PATH);
printk("Jean");
printk("Loic");
//framebuffer_clear();
//apic_enable();
/* u64 p;
u32 size;
if(mb2_find_old_rsdp((u32*)MB_INFO,&p,&size)){
acpi_init((void*)p);
}*/
//FRAMEBUFFER fb;
//if(mb2_find_framebuffer((u32*)MB_INFO, &fb)){
//printk("Framebuffer found!");
//framebuffer_init(fb.addr, fb.pitch, fb.bpp);
//__putchar=psf_print;
//printk("Hello");
//}
while(1);
}
|