Subversion Repositories HelenOS-historic

Rev

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

Rev 1705 Rev 1780
Line 75... Line 75...
75
}
75
}
76
 
76
 
77
void arch_pre_mm_init(void)
77
void arch_pre_mm_init(void)
78
{
78
{
79
    /* Set Interruption Vector Address (i.e. location of interruption vector table). */
79
    /* Set Interruption Vector Address (i.e. location of interruption vector table). */
80
    iva_write((__address) &ivt);
80
    iva_write((uintptr_t) &ivt);
81
    srlz_d();
81
    srlz_d();
82
   
82
   
83
    ski_init_console();
83
    ski_init_console();
84
    it_init(); 
84
    it_init(); 
85
}
85
}
Line 114... Line 114...
114
    rsc.loadrs = 0;
114
    rsc.loadrs = 0;
115
    rsc.be = false;
115
    rsc.be = false;
116
    rsc.pl = PL_USER;
116
    rsc.pl = PL_USER;
117
    rsc.mode = 3;               /* eager mode */
117
    rsc.mode = 3;               /* eager mode */
118
 
118
 
119
    switch_to_userspace((__address) kernel_uarg->uspace_entry,
119
    switch_to_userspace((uintptr_t) kernel_uarg->uspace_entry,
120
                ((__address) kernel_uarg->uspace_stack)+PAGE_SIZE-ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT),
120
                ((uintptr_t) kernel_uarg->uspace_stack)+PAGE_SIZE-ALIGN_UP(STACK_ITEM_SIZE, STACK_ALIGNMENT),
121
                ((__address) kernel_uarg->uspace_stack)+PAGE_SIZE,
121
                ((uintptr_t) kernel_uarg->uspace_stack)+PAGE_SIZE,
122
                (__address) kernel_uarg->uspace_uarg,
122
                (uintptr_t) kernel_uarg->uspace_uarg,
123
                psr.value, rsc.value);
123
                psr.value, rsc.value);
124
 
124
 
125
    while (1) {
125
    while (1) {
126
        ;
126
        ;
127
    }
127
    }
Line 129... Line 129...
129
 
129
 
130
/** Set thread-local-storage pointer.
130
/** Set thread-local-storage pointer.
131
 *
131
 *
132
 * We use r13 (a.k.a. tp) for this purpose.
132
 * We use r13 (a.k.a. tp) for this purpose.
133
 */
133
 */
134
__native sys_tls_set(__native addr)
134
unative_t sys_tls_set(unative_t addr)
135
{
135
{
136
        return 0;
136
        return 0;
137
}
137
}
138
 
138
 
139
/** Acquire console back for kernel
139
/** Acquire console back for kernel