Moved delay() from machdep.c to iomd_clock.c as delay will be dependant
on the system timers being used.
This commit is contained in:
parent
ff541b5e98
commit
2c1cbdae75
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: machdep.c,v 1.36 1998/06/02 20:41:49 mark Exp $ */
|
||||
/* $NetBSD: machdep.c,v 1.37 1998/06/02 21:57:58 mark Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994-1996 Mark Brinicombe.
|
||||
|
@ -224,32 +224,6 @@ bootsync(void)
|
|||
vfs_shutdown();
|
||||
}
|
||||
|
||||
/*
|
||||
* Estimated loop for n microseconds
|
||||
*/
|
||||
|
||||
/* Need to re-write this to use the timers */
|
||||
|
||||
/* One day soon I will actually do this */
|
||||
|
||||
int delaycount = 50;
|
||||
|
||||
void
|
||||
delay(n)
|
||||
u_int n;
|
||||
{
|
||||
u_int i;
|
||||
|
||||
if (n == 0) return;
|
||||
while (--n > 0) {
|
||||
if (cputype == ID_SA110) /* XXX - Seriously gross hack */
|
||||
for (i = delaycount; --i;);
|
||||
else
|
||||
for (i = 8; --i;);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* A few functions that are used to help construct the page tables
|
||||
* during the bootstrap process.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: iomd_clock.c,v 1.17 1998/03/26 21:27:12 mark Exp $ */
|
||||
/* $NetBSD: iomd_clock.c,v 1.18 1998/06/02 21:57:58 mark Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994-1997 Mark Brinicombe.
|
||||
|
@ -53,6 +53,7 @@
|
|||
#include <sys/device.h>
|
||||
|
||||
#include <machine/irqhandler.h>
|
||||
#include <machine/cpufunc.h>
|
||||
#include <arm32/iomd/iomdvar.h>
|
||||
#include <arm32/iomd/iomdreg.h>
|
||||
|
||||
|
@ -313,4 +314,29 @@ need_proftick(p)
|
|||
{
|
||||
}
|
||||
|
||||
/*
|
||||
* Estimated loop for n microseconds
|
||||
*/
|
||||
|
||||
/* Need to re-write this to use the timers */
|
||||
|
||||
/* One day soon I will actually do this */
|
||||
|
||||
int delaycount = 50;
|
||||
|
||||
void
|
||||
delay(n)
|
||||
u_int n;
|
||||
{
|
||||
u_int i;
|
||||
|
||||
if (n == 0) return;
|
||||
while (--n > 0) {
|
||||
if (cputype == ID_SA110) /* XXX - Seriously gross hack */
|
||||
for (i = delaycount; --i;);
|
||||
else
|
||||
for (i = 8; --i;);
|
||||
}
|
||||
}
|
||||
|
||||
/* End of iomd_clock.c */
|
||||
|
|
Loading…
Reference in New Issue