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 Tweak asm to avoid a couple of stalls.



details:   https://anonhg.NetBSD.org/src/rev/082cb76fbd11
branches:  trunk
changeset: 535321:082cb76fbd11
user:      chris <chris%NetBSD.org@localhost>
date:      Wed Aug 14 23:07:36 2002 +0000

description:
Tweak asm to avoid a couple of stalls.

diffstat:

 sys/arch/arm/arm32/cpuswitch.S |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (31 lines):

diff -r 41485c1e3795 -r 082cb76fbd11 sys/arch/arm/arm32/cpuswitch.S
--- a/sys/arch/arm/arm32/cpuswitch.S    Wed Aug 14 22:56:55 2002 +0000
+++ b/sys/arch/arm/arm32/cpuswitch.S    Wed Aug 14 23:07:36 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cpuswitch.S,v 1.11 2002/08/12 21:00:12 thorpej Exp $   */
+/*     $NetBSD: cpuswitch.S,v 1.12 2002/08/14 23:07:36 chris Exp $     */
 
 /*
  * Copyright (c) 1994-1998 Mark Brinicombe.
@@ -109,10 +109,10 @@
 
        /* Get the priority of the queue */
        ldrb    r1, [r0, #(P_PRIORITY)]
-       mov     r1, r1, lsr #2
 
        /* Indicate that there is a process on this queue */
        ldr     r12, Lwhichqs
+       mov     r1, r1, lsr #2
        ldr     r2, [r12]
        mov     r3, #0x00000001
        mov     r3, r3, lsl r1
@@ -187,8 +187,8 @@
 
        /* This could be reworked to avoid the use of r4 */
        ldreq   r12, Lwhichqs
+       moveq   r3, #0x00000001
        ldreq   r2, [r12]
-       moveq   r3, #0x00000001
        moveq   r3, r3, lsl r1
        biceq   r2, r2, r3
        streq   r2, [r12]



Home | Main Index | Thread Index | Old Index