diff options
Diffstat (limited to 'sys/arch/mvmeppc/stand/libbug/delay.c')
-rw-r--r-- | sys/arch/mvmeppc/stand/libbug/delay.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/sys/arch/mvmeppc/stand/libbug/delay.c b/sys/arch/mvmeppc/stand/libbug/delay.c new file mode 100644 index 00000000000..7e101de2cc0 --- /dev/null +++ b/sys/arch/mvmeppc/stand/libbug/delay.c @@ -0,0 +1,15 @@ +/* + * bug routines -- assumes that the necessary sections of memory + * are preserved. + */ +#include <sys/types.h> +#include <machine/prom.h> + +/* BUG - timing routine */ +void +mvmeprom_delay(msec) + int msec; /* This is r3 */ +{ + asm volatile ("mr 3, %0" :: "r"(msec)); + MVMEPROM_CALL(MVMEPROM_DELAY); +} |