Subversion Repositories HelenOS

Rev

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

Rev 2477 Rev 3222
Line 68... Line 68...
68
    volatile ustate_t ustate;
68
    volatile ustate_t ustate;
69
 
69
 
70
    /* set first parameter */
70
    /* set first parameter */
71
    ustate.r0 = (uintptr_t) kernel_uarg->uspace_uarg;
71
    ustate.r0 = (uintptr_t) kernel_uarg->uspace_uarg;
72
 
72
 
-
 
73
    /* %r1 is defined to hold pcb_ptr - set it to 0 */
-
 
74
    ustate.r1 = 0;
-
 
75
 
73
    /* clear other registers */
76
    /* clear other registers */
74
    ustate.r1 = ustate.r2  = ustate.r3  = ustate.r4  = ustate.r5 =
77
    ustate.r2 = ustate.r3  = ustate.r4  = ustate.r5 =
75
        ustate.r6  = ustate.r7  = ustate.r8  = ustate.r9 = ustate.r10 =
78
        ustate.r6  = ustate.r7  = ustate.r8  = ustate.r9 = ustate.r10 =
76
        ustate.r11 = ustate.r12 = ustate.lr = 0;
79
        ustate.r11 = ustate.r12 = ustate.lr = 0;
77
 
80
 
78
    /* set user stack */
81
    /* set user stack */
79
    ustate.sp = ((uint32_t)kernel_uarg->uspace_stack) + PAGE_SIZE;
82
    ustate.sp = ((uint32_t)kernel_uarg->uspace_stack) + PAGE_SIZE;