Rev 144 | Rev 413 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 144 | Rev 315 | ||
---|---|---|---|
Line 43... | Line 43... | ||
43 | { |
43 | { |
44 | pri_t pri; |
44 | pri_t pri; |
45 | 45 | ||
46 | pri = cpu_priority_high(); |
46 | pri = cpu_priority_high(); |
47 | 47 | ||
48 | __asm__ volatile ("" |
48 | __asm__ volatile ( |
49 | /* CLNT */ |
49 | /* CLNT */ |
50 | "pushfl;" |
50 | "pushfl;" |
51 | "pop %%eax;" |
51 | "pop %%eax;" |
52 | "and $0xFFFFBFFF,%%eax;" |
52 | "and $0xFFFFBFFF,%%eax;" |
53 | "push %%eax;" |
53 | "push %%eax;" |
54 | "popfl;" |
54 | "popfl;" |
Line 57... | Line 57... | ||
57 | "pushl %1\n" |
57 | "pushl %1\n" |
58 | "pushl %2\n" |
58 | "pushl %2\n" |
59 | "pushl %3\n" |
59 | "pushl %3\n" |
60 | "pushl %4\n" |
60 | "pushl %4\n" |
61 | "iret" |
61 | "iret" |
- | 62 | : |
|
62 | : : "i" (selector(UDATA_DES) | PL_USER), "i" (USTACK_ADDRESS+(THREAD_STACK_SIZE-1)), "r" (pri), "i" (selector(UTEXT_DES) | PL_USER), "i" (UTEXT_ADDRESS)); |
63 | : "i" (selector(UDATA_DES) | PL_USER), "r" (USTACK_ADDRESS+(THREAD_STACK_SIZE)), "r" (pri), "i" (selector(UTEXT_DES) | PL_USER), "i" (UTEXT_ADDRESS) |
- | 64 | : "eax"); |
|
63 | 65 | ||
64 | /* Unreachable */ |
66 | /* Unreachable */ |
65 | for(;;); |
67 | for(;;); |
66 | } |
68 | } |