dect
/
linux-2.6
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
linux-2.6/arch/cris/include/arch-v10/arch/delay.h

21 lines
355 B
C

#ifndef _CRIS_ARCH_DELAY_H
#define _CRIS_ARCH_DELAY_H
static inline void __delay(int loops)
{
__asm__ __volatile__ (
"move.d %0,$r9\n\t"
"beq 2f\n\t"
"subq 1,$r9\n\t"
"1:\n\t"
"bne 1b\n\t"
"subq 1,$r9\n"
"2:"
: : "g" (loops) : "r9");
}
#endif /* defined(_CRIS_ARCH_DELAY_H) */