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