Subversion Repositories HelenOS-historic

Rev

Rev 1756 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1756 Rev 1780
Line 48... Line 48...
48
void arch_pre_main(void)
48
void arch_pre_main(void)
49
{
49
{
50
    /* Setup usermode */
50
    /* Setup usermode */
51
    init.cnt = bootinfo.taskmap.count;
51
    init.cnt = bootinfo.taskmap.count;
52
   
52
   
53
    __u32 i;
53
    uint32_t i;
54
   
54
   
55
    for (i = 0; i < bootinfo.taskmap.count; i++) {
55
    for (i = 0; i < bootinfo.taskmap.count; i++) {
56
        init.tasks[i].addr = PA2KA(bootinfo.taskmap.tasks[i].addr);
56
        init.tasks[i].addr = PA2KA(bootinfo.taskmap.tasks[i].addr);
57
        init.tasks[i].size = bootinfo.taskmap.tasks[i].size;
57
        init.tasks[i].size = bootinfo.taskmap.tasks[i].size;
58
    }
58
    }
Line 95... Line 95...
95
{
95
{
96
}
96
}
97
 
97
 
98
void userspace(uspace_arg_t *kernel_uarg)
98
void userspace(uspace_arg_t *kernel_uarg)
99
{
99
{
100
    userspace_asm((__address) kernel_uarg->uspace_uarg, (__address) kernel_uarg->uspace_stack + THREAD_STACK_SIZE - SP_DELTA, (__address) kernel_uarg->uspace_entry);
100
    userspace_asm((uintptr_t) kernel_uarg->uspace_uarg, (uintptr_t) kernel_uarg->uspace_stack + THREAD_STACK_SIZE - SP_DELTA, (uintptr_t) kernel_uarg->uspace_entry);
101
   
101
   
102
    /* Unreachable */
102
    /* Unreachable */
103
    for (;;)
103
    for (;;)
104
        ;
104
        ;
105
}
105
}