mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-16 20:02:35 +03:00
52aacb57ed
git-svn-id: svn://kolibrios.org@1964 a494cfbc-eb01-0410-851d-a64ba20cac60
31 lines
487 B
C
31 lines
487 B
C
/* stub */
|
|
|
|
/*
|
|
static inline void mdelay(u32_t time)
|
|
{
|
|
time /= 10;
|
|
if(!time) time = 1;
|
|
|
|
__asm__ __volatile__ (
|
|
"call *__imp__Delay"
|
|
::"b" (time));
|
|
__asm__ __volatile__ (
|
|
"":::"ebx");
|
|
|
|
};
|
|
|
|
static inline void udelay(u32_t delay)
|
|
{
|
|
if(!delay) delay++;
|
|
delay*= 500;
|
|
|
|
while(delay--)
|
|
{
|
|
__asm__ __volatile__(
|
|
"xorl %%eax, %%eax \n\t"
|
|
"cpuid"
|
|
:::"eax","ebx","ecx","edx" );
|
|
}
|
|
}
|
|
*/
|