Subversion Repositories HelenOS

Rev

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

Rev 1901 Rev 1928
Line 39... Line 39...
39
#include <arch/interrupt.h>
39
#include <arch/interrupt.h>
40
#include <genarch/fb/fb.h>
40
#include <genarch/fb/fb.h>
41
#include <userspace.h>
41
#include <userspace.h>
42
#include <proc/uarg.h>
42
#include <proc/uarg.h>
43
#include <console/console.h>
43
#include <console/console.h>
-
 
44
#include <ddi/device.h>
-
 
45
#include <ddi/irq.h>
44
#include <arch/drivers/pic.h>
46
#include <arch/drivers/pic.h>
45
 
47
 
-
 
48
#define IRQ_COUNT   64
-
 
49
 
46
bootinfo_t bootinfo;
50
bootinfo_t bootinfo;
47
 
51
 
48
void arch_pre_main(void)
52
void arch_pre_main(void)
49
{
53
{
50
    /* Setup usermode */
54
    /* Setup usermode */
Line 68... Line 72...
68
}
72
}
69
 
73
 
70
void arch_post_mm_init(void)
74
void arch_post_mm_init(void)
71
{
75
{
72
    if (config.cpu_active == 1) {
76
    if (config.cpu_active == 1) {
-
 
77
        /* Initialize framebuffer */
73
        fb_init(bootinfo.screen.addr, bootinfo.screen.width, bootinfo.screen.height, bootinfo.screen.bpp, bootinfo.screen.scanline, false);
78
        fb_init(bootinfo.screen.addr, bootinfo.screen.width, bootinfo.screen.height, bootinfo.screen.bpp, bootinfo.screen.scanline, false);
-
 
79
       
-
 
80
        /* Initialize IRQ routing */
-
 
81
        irq_init(IRQ_COUNT, IRQ_COUNT);
74
   
82
   
75
        /* Initialize PIC */
83
        /* Initialize PIC */
76
        pic_init(bootinfo.keyboard.addr, PAGE_SIZE);
84
        pic_init(bootinfo.keyboard.addr, PAGE_SIZE);
77
       
85
       
-
 
86
        /* Initialize I/O controller */
78
        cuda_init(bootinfo.keyboard.addr + 0x16000, 2 * PAGE_SIZE);
87
        cuda_init(device_assign_devno(), bootinfo.keyboard.addr + 0x16000, 2 * PAGE_SIZE);
79
       
88
       
80
        /* Merge all zones to 1 big zone */
89
        /* Merge all zones to 1 big zone */
81
        zone_merge_all();
90
        zone_merge_all();
82
    }
91
    }
83
}
92
}