Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm Improve comment on the clockswitching asm c...
details: https://anonhg.NetBSD.org/src/rev/39c00279cef8
branches: trunk
changeset: 519001:39c00279cef8
user: chris <chris%NetBSD.org@localhost>
date: Sat Dec 08 21:30:04 2001 +0000
description:
Improve comment on the clockswitching asm code, it doesn't use r0 at all, it just needs it to make valid asm.
diffstat:
sys/arch/arm/arm/cpufunc.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r 4ef9948bdbbe -r 39c00279cef8 sys/arch/arm/arm/cpufunc.c
--- a/sys/arch/arm/arm/cpufunc.c Sat Dec 08 21:18:50 2001 +0000
+++ b/sys/arch/arm/arm/cpufunc.c Sat Dec 08 21:30:04 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpufunc.c,v 1.22 2001/12/01 23:06:45 thorpej Exp $ */
+/* $NetBSD: cpufunc.c,v 1.23 2001/12/08 21:30:04 chris Exp $ */
/*
* arm7tdmi support code Copyright (c) 2001 John Fremlin
@@ -1650,7 +1650,10 @@
/* cpu_control(cpuctrlmask, cpuctrl);*/
cpu_control(0xffffffff, cpuctrl);
- /* enable clockswitching */
+ /*
+ * enable clockswitching, note that this doesn't read or write to r0,
+ * r0 is just to make it valid asm
+ */
__asm ("mcr 15, 0, r0, c15, c1, 2");
}
#endif /* CPU_SA110 */
Home |
Main Index |
Thread Index |
Old Index