Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/sys/arch/x68k/x68k pullup 1.45->1.46 (minoura): Use mvm...
details: https://anonhg.NetBSD.org/src/rev/455a3d8510bd
branches: netbsd-1-4
changeset: 468955:455a3d8510bd
user: perry <perry%NetBSD.org@localhost>
date: Thu Jun 24 15:58:16 1999 +0000
description:
pullup 1.45->1.46 (minoura): Use mvme68k-derived delay() routine
diffstat:
sys/arch/x68k/x68k/locore.s | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
diffs (33 lines):
diff -r 33060522314a -r 455a3d8510bd sys/arch/x68k/x68k/locore.s
--- a/sys/arch/x68k/x68k/locore.s Thu Jun 24 15:54:35 1999 +0000
+++ b/sys/arch/x68k/x68k/locore.s Thu Jun 24 15:58:16 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: locore.s,v 1.41.2.2 1999/06/20 19:34:17 perry Exp $ */
+/* $NetBSD: locore.s,v 1.41.2.3 1999/06/24 15:58:16 perry Exp $ */
/*
* Copyright (c) 1988 University of Utah.
@@ -1651,6 +1651,23 @@
rts
/*
+ * _delay(u_int N)
+ *
+ * Delay for at least (N/256) microsecends.
+ * This routine depends on the variable: delay_divisor
+ * which should be set based on the CPU clock rate.
+ */
+ENTRY_NOPROFILE(_delay)
+ | d0 = arg = (usecs << 8)
+ movl sp@(4),d0
+ | d1 = delay_divisor
+ movl _C_LABEL(delay_divisor),d1
+L_delay:
+ subl d1,d0
+ jgt L_delay
+ rts
+
+/*
* Save and restore 68881 state.
*/
ENTRY(m68881_save)
Home |
Main Index |
Thread Index |
Old Index