Rev 1964 | Rev 5056 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1964 | Rev 3391 | ||
---|---|---|---|
Line -... | Line 1... | ||
- | 1 | #ifndef _LINUX_SCHED_H |
|
1 | /* stub */ |
2 | #define _LINUX_SCHED_H |
Line 2... | Line -... | ||
2 | - | ||
3 | /* |
- | |
4 | static inline void mdelay(u32_t time) |
- | |
5 | { |
- | |
6 | time /= 10; |
- | |
Line 7... | Line -... | ||
7 | if(!time) time = 1; |
- | |
8 | - | ||
9 | __asm__ __volatile__ ( |
- | |
10 | "call *__imp__Delay" |
3 | |
11 | ::"b" (time)); |
- | |
Line 12... | Line -... | ||
12 | __asm__ __volatile__ ( |
- | |
- | 4 | ||
Line 13... | Line -... | ||
13 | "":::"ebx"); |
- | |
14 | - | ||
15 | }; |
- | |
16 | - | ||
17 | static inline void udelay(u32_t delay) |
- | |
18 | { |
- | |
19 | if(!delay) delay++; |
5 | #define TASK_UNINTERRUPTIBLE 2 |
20 | delay*= 500; |
- | |
21 | - | ||
22 | while(delay--) |
- | |
23 | { |
- | |
24 | __asm__ __volatile__( |
- | |
25 | "xorl %%eax, %%eax \n\t" |
- | |
26 | "cpuid" |
- |