Subversion Repositories HelenOS

Rev

Rev 2200 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2200 Rev 2214
Line 36... Line 36...
36
#include <arch.h>
36
#include <arch.h>
37
#include <arch/boot.h>
37
#include <arch/boot.h>
38
#include <config.h>
38
#include <config.h>
39
#include <arch/console.h>
39
#include <arch/console.h>
40
#include <ddi/device.h>
40
#include <ddi/device.h>
41
 
-
 
42
#include "aux_print/printf.h"
41
#include <arch/interrupt.h>
-
 
42
#include <genarch/fb/fb.h>
-
 
43
#include <genarch/fb/visuals.h>
43
#include <print.h>
44
#include <print.h>
44
#include <config.h>
45
#include <config.h>
-
 
46
#include "aux_print/printf.h"
-
 
47
 
45
bootinfo_t bootinfo;
48
bootinfo_t bootinfo;
46
 
49
 
47
void arch_pre_main(void)
50
void arch_pre_main(void)
48
{
51
{
49
    aux_printf("arch_pre_main\n");
52
    aux_printf("arch_pre_main\n");
50
    int i;
53
    int i;
51
 
54
 
52
    init.cnt = bootinfo.cnt;
55
    init.cnt = bootinfo.cnt;
53
 
56
 
54
    printf("Used memmory\n");
-
 
55
    for (i = 0; i < bootinfo.cnt; ++i) {
57
    for (i = 0; i < bootinfo.cnt; ++i) {
56
        init.tasks[i].addr = bootinfo.tasks[i].addr;
58
        init.tasks[i].addr = bootinfo.tasks[i].addr;
57
        init.tasks[i].size = bootinfo.tasks[i].size;
59
        init.tasks[i].size = bootinfo.tasks[i].size;
58
//      aux_printf("%L, %d\n", bootinfo.tasks[i].addr, bootinfo.tasks[i].size);
60
//      aux_printf("%L, %d\n", bootinfo.tasks[i].addr, bootinfo.tasks[i].size);
59
    }
61
    }
Line 69... Line 71...
69
}
71
}
70
 
72
 
71
void arch_post_mm_init(void)
73
void arch_post_mm_init(void)
72
{
74
{
73
    aux_printf("arch_post_mm_init\n");
75
    aux_printf("arch_post_mm_init\n");
-
 
76
 
-
 
77
    interrupt_init();
74
 //   irq_init(8, 8); /// needs malloc ... so after mm init
78
    console_init(device_assign_devno());
75
//  console_init(device_assign_devno()); // need hash table of irq ... so after irq_init 
79
//  fb_init(0x12000000, 640, 480, 1920, VISUAL_RGB_8_8_8);
76
   
80
 
77
    /* TODO */
-
 
78
}
81
}
79
 
82
 
80
void arch_post_cpu_init(void)
83
void arch_post_cpu_init(void)
81
{
84
{
82
    /* TODO */
85
    /* TODO */