Subversion Repositories HelenOS-historic

Rev

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

Rev 1168 Rev 1223
Line 42... Line 42...
42
#include <userspace.h>
42
#include <userspace.h>
43
#include <console/console.h>
43
#include <console/console.h>
44
#include <proc/uarg.h>
44
#include <proc/uarg.h>
45
#include <syscall/syscall.h>
45
#include <syscall/syscall.h>
46
 
46
 
-
 
47
void arch_pre_main(void)
-
 
48
{
-
 
49
    /* Setup usermode init tasks. */
-
 
50
    init.cnt = 2;
-
 
51
    init.tasks[0].addr = INIT0_ADDRESS;
-
 
52
    init.tasks[0].size = INIT0_SIZE;
-
 
53
    init.tasks[1].addr = INIT1_ADDRESS;
-
 
54
    init.tasks[1].size = INIT1_SIZE;
-
 
55
}
-
 
56
 
47
void arch_pre_mm_init(void)
57
void arch_pre_mm_init(void)
48
{
58
{
49
    /* Set Interruption Vector Address (i.e. location of interruption vector table). */
59
    /* Set Interruption Vector Address (i.e. location of interruption vector table). */
50
    iva_write((__address) &ivt);
60
    iva_write((__address) &ivt);
51
    srlz_d();
61
    srlz_d();
52
   
62
   
53
    ski_init_console();
63
    ski_init_console();
54
    it_init();
64
    it_init(); 
55
   
-
 
56
    /* Setup usermode */
-
 
57
    init.cnt = 2;
-
 
58
    init.tasks[0].addr = INIT0_ADDRESS;
-
 
59
    init.tasks[0].size = INIT0_SIZE;
-
 
60
    init.tasks[1].addr = INIT1_ADDRESS;
-
 
61
    init.tasks[1].size = INIT1_SIZE;
-
 
62
}
65
}
63
 
66
 
64
void arch_post_mm_init(void)
67
void arch_post_mm_init(void)
65
{
68
{
66
}
69
}