Rev 15 | Rev 65 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 15 | Rev 22 | ||
---|---|---|---|
Line 36... | Line 36... | ||
36 | void userspace(void) |
36 | void userspace(void) |
37 | { |
37 | { |
38 | pri_t pri; |
38 | pri_t pri; |
39 | 39 | ||
40 | pri = cpu_priority_high(); |
40 | pri = cpu_priority_high(); |
41 | 41 | ||
42 | /* |
- | |
43 | * Prepare TSS stack selector and pointers for next syscall. |
- | |
44 | */ |
- | |
45 | CPU->arch.tss->esp0 = (__address) &THREAD->kstack[THREAD_STACK_SIZE-8]; |
- | |
46 | CPU->arch.tss->ss0 = selector(KDATA_DES); |
- | |
47 | - | ||
48 | __asm__ volatile ("" |
42 | __asm__ volatile ("" |
49 | "pushl %0\n" |
43 | "pushl %0\n" |
50 | "pushl %1\n" |
44 | "pushl %1\n" |
51 | "pushl %2\n" |
45 | "pushl %2\n" |
52 | "pushl %3\n" |
46 | "pushl %3\n" |