Subversion Repositories HelenOS-historic

Rev

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

Rev 32 Rev 34
Line 40... Line 40...
40
#include <mm/page.h>
40
#include <mm/page.h>
41
#include <arch/mm/page.h>
41
#include <arch/mm/page.h>
42
#include <mm/vm.h>
42
#include <mm/vm.h>
43
 
43
 
44
#ifdef __SMP__
44
#ifdef __SMP__
45
#include <arch/smp/mp.h>
45
#include <arch/smp/mps.h>
46
#endif /* __SMP__ */
46
#endif /* __SMP__ */
47
 
47
 
48
#include <synch/waitq.h>
48
#include <synch/waitq.h>
49
#include <synch/spinlock.h>
49
#include <synch/spinlock.h>
50
 
50
 
Line 112... Line 112...
112
    }
112
    }
113
#endif /* __SMP__ */
113
#endif /* __SMP__ */
114
 
114
 
115
    cpu_priority_low();
115
    cpu_priority_low();
116
 
116
 
-
 
117
#ifdef __USERSPACE__
117
    /*
118
    /*
118
     * Create the first user task.
119
     * Create the first user task.
119
     */
120
     */
120
    m = vm_create();
121
    m = vm_create();
121
    if (!m) panic(PANIC "vm_create");
122
    if (!m) panic(PANIC "vm_create");
Line 136... Line 137...
136
     */
137
     */
137
    a = vm_area_create(m, VMA_STACK, 1, USTACK_ADDRESS);
138
    a = vm_area_create(m, VMA_STACK, 1, USTACK_ADDRESS);
138
    if (!a) panic(PANIC "vm_area_create: vm_stack");
139
    if (!a) panic(PANIC "vm_area_create: vm_stack");
139
   
140
   
140
    thread_ready(t);
141
    thread_ready(t);
-
 
142
#endif /* __USERSPACE__ */
141
 
143
 
142
#ifdef __TEST__
144
#ifdef __TEST__
143
    test();
145
    test();
144
#endif /* __TEST__ */
146
#endif /* __TEST__ */
145
 
147