Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm32 Correct comments for ffs algoritm (it isn...
details: https://anonhg.NetBSD.org/src/rev/d232225cfca9
branches: trunk
changeset: 517384:d232225cfca9
user: chris <chris%NetBSD.org@localhost>
date: Sun Nov 11 22:07:41 2001 +0000
description:
Correct comments for ffs algoritm (it isn't using register r0)
diffstat:
sys/arch/arm/arm32/cpuswitch.S | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (29 lines):
diff -r 0f164e69d97f -r d232225cfca9 sys/arch/arm/arm32/cpuswitch.S
--- a/sys/arch/arm/arm32/cpuswitch.S Sun Nov 11 22:05:18 2001 +0000
+++ b/sys/arch/arm/arm32/cpuswitch.S Sun Nov 11 22:07:41 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpuswitch.S,v 1.2 2001/09/16 17:38:08 matt Exp $ */
+/* $NetBSD: cpuswitch.S,v 1.3 2001/11/11 22:07:41 chris Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@@ -357,14 +357,15 @@
adr r5, Lcpu_switch_ffs_table
- orr r4, r0, r0, lsl #4 /* r0 = X * 0x11 */
- orr r4, r4, r4, lsl #6 /* r0 = X * 0x451 */
- rsb r4, r4, r4, lsl #16 /* r0 = X * 0x0450fbaf */
+ /* X = R0 */
+ orr r4, r0, r0, lsl #4 /* r4 = X * 0x11 */
+ orr r4, r4, r4, lsl #6 /* r4 = X * 0x451 */
+ rsb r4, r4, r4, lsl #16 /* r4 = X * 0x0450fbaf */
/* used further down, saves SA stall */
ldr r6, Lqs
- /* now lookup in table indexed on top 6 bits of a0 */
+ /* now lookup in table indexed on top 6 bits of a4 */
ldrb r4, [ r5, r4, lsr #26 ]
/* rem: r0 = bit mask of chosen queue (1 << r4) */
Home |
Main Index |
Thread Index |
Old Index