Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libpthread/arch/sparc Use delay slot in STACK_SWITCH (ca...



details:   https://anonhg.NetBSD.org/src/rev/10ba86fba506
branches:  trunk
changeset: 551479:10ba86fba506
user:      uwe <uwe%NetBSD.org@localhost>
date:      Sun Sep 07 02:08:31 2003 +0000

description:
Use delay slot in STACK_SWITCH (catching up with sparc64 changes).

diffstat:

 lib/libpthread/arch/sparc/pthread_switch.S |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r 942f729bf483 -r 10ba86fba506 lib/libpthread/arch/sparc/pthread_switch.S
--- a/lib/libpthread/arch/sparc/pthread_switch.S        Sun Sep 07 01:54:47 2003 +0000
+++ b/lib/libpthread/arch/sparc/pthread_switch.S        Sun Sep 07 02:08:31 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pthread_switch.S,v 1.5 2003/09/07 01:54:47 uwe Exp $ */
+/*     $NetBSD: pthread_switch.S,v 1.6 2003/09/07 02:08:31 uwe Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -67,10 +67,10 @@
        ld      [pt + PT_TRAPUC], tmp                                   ; \
        tst     tmp                                                     ; \
        bnz     1f                                                      ; \
-       nop                                                             ; \
+        clr    [pt + PT_TRAPUC]                                        ; \
        ld      [pt + PT_UC], tmp                                       ; \
 1:     add     tmp, -STACK_ALIGN(STACKSPACE + CONTEXTSIZE), %sp        ; \
-       st      %g0, [pt + PT_TRAPUC]
+
        
 /*
  * void        pthread__switch(pthread_t self, pthread_t next);



Home | Main Index | Thread Index | Old Index