Subversion Repositories HelenOS-historic

Rev

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

Rev 1121 Rev 1122
Line 127... Line 127...
127
    /* EXL=1, UM=1, IE=1 */
127
    /* EXL=1, UM=1, IE=1 */
128
    cp0_status_write(cp0_status_read() | (cp0_status_exl_exception_bit |
128
    cp0_status_write(cp0_status_read() | (cp0_status_exl_exception_bit |
129
                          cp0_status_um_bit |
129
                          cp0_status_um_bit |
130
                          cp0_status_ie_enabled_bit));
130
                          cp0_status_ie_enabled_bit));
131
    cp0_epc_write((__address) kernel_uarg->uspace_entry);
131
    cp0_epc_write((__address) kernel_uarg->uspace_entry);
132
    userspace_asm(((__address) kernel_uarg->uspace_stack+PAGE_SIZE), (__address) kernel_uarg->uspace_uarg);
132
    userspace_asm(((__address) kernel_uarg->uspace_stack+PAGE_SIZE),
-
 
133
              (__address) kernel_uarg->uspace_uarg,
-
 
134
              (__address) kernel_uarg->uspace_entry);
133
    while (1)
135
    while (1)
134
        ;
136
        ;
135
}
137
}
136
 
138
 
137
void before_thread_runs_arch(void)
139
void before_thread_runs_arch(void)