/shark/trunk/drivers/linuxc26/linuxcomp.c |
---|
318,6 → 318,23 |
} |
void __udelay(unsigned long usecs) { |
SYS_FLAGS f; |
struct timespec t; |
f = ll_fsave(); |
sti(); |
t.tv_sec = 0; |
t.tv_nsec = usecs * 1000; |
nanosleep(&t,NULL); |
ll_frestore(f); |
} |
unsigned long __copy_to_user_ll(void __user *to, const void *from, unsigned long n) { |
memcpy(to,from,n); |