38,13 → 38,10 |
#include <config.h> |
#include <arch/console.h> |
#include <ddi/device.h> |
#include <arch/interrupt.h> |
#include <genarch/fb/fb.h> |
#include <genarch/fb/visuals.h> |
|
#include "aux_print/printf.h" |
#include <print.h> |
#include <config.h> |
#include "aux_print/printf.h" |
|
bootinfo_t bootinfo; |
|
void arch_pre_main(void) |
54,12 → 51,25 |
|
init.cnt = bootinfo.cnt; |
|
printf("Used memmory\n"); |
for (i = 0; i < bootinfo.cnt; ++i) { |
init.tasks[i].addr = bootinfo.tasks[i].addr; |
init.tasks[i].size = bootinfo.tasks[i].size; |
|
// aux_printf("%L, %d\n", bootinfo.tasks[i].addr, bootinfo.tasks[i].size); |
} |
|
/* TODO this code just setups irq testing bed |
*/ |
setup_exception_stacks(); |
exception_init(); |
install_exception_handlers(); |
interrupts_enable(); |
/* activate timer interrupts */ |
*(uint32_t*)0x15000100 = 1; |
|
while(1) ; |
|
} |
|
#include <ddi/irq.h> |
73,11 → 83,10 |
void arch_post_mm_init(void) |
{ |
aux_printf("arch_post_mm_init\n"); |
|
interrupt_init(); |
console_init(device_assign_devno()); |
// fb_init(0x12000000, 640, 480, 1920, VISUAL_RGB_8_8_8); |
|
// irq_init(8, 8); /// needs malloc ... so after mm init |
// console_init(device_assign_devno()); // need hash table of irq ... so after irq_init |
|
/* TODO */ |
} |
|
void arch_post_cpu_init(void) |