Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libpthread/arch/sh3 In pthread__locked_switch set self->...
details: https://anonhg.NetBSD.org/src/rev/1aac0ce07426
branches: trunk
changeset: 555519:1aac0ce07426
user: uwe <uwe%NetBSD.org@localhost>
date: Thu Nov 20 03:31:02 2003 +0000
description:
In pthread__locked_switch set self->pt_uc only when the context is inited.
In STACK_SWITCH subtract STACKSPACE, not add it (it's zero for now anyway).
diffstat:
lib/libpthread/arch/sh3/pthread_switch.S | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (38 lines):
diff -r ca9ba347f5e0 -r 1aac0ce07426 lib/libpthread/arch/sh3/pthread_switch.S
--- a/lib/libpthread/arch/sh3/pthread_switch.S Thu Nov 20 01:57:09 2003 +0000
+++ b/lib/libpthread/arch/sh3/pthread_switch.S Thu Nov 20 03:31:02 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pthread_switch.S,v 1.2 2003/11/18 03:11:41 uwe Exp $ */
+/* $NetBSD: pthread_switch.S,v 1.3 2003/11/20 03:31:02 uwe Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -124,7 +124,7 @@
mov tmp, sp ; \
.else ; \
mov tmp, r0 ; \
- add #STACKSPACE, r0 ; \
+ add #-STACKSPACE, r0 ; \
mov r0, sp ; \
.endif
@@ -257,9 +257,6 @@
add #1, r0
mov.l r0, @(PT_SPINLOCKS, r9) /* ++next->pt_spinlocks */
- mov #PT_UC, r0
- mov.l sp, @(r0, r8) /* self->pt_uc = &cntx; */
-
mov.l CALL_TARGET(41b,_getcontext_u), r0
41: CALL (r0) /* _getcontext_u(self->pt_uc); */
mov sp, r4
@@ -271,6 +268,9 @@
mova Lpthread__locked_switch_return_point, r0
mov.l r0, @(UC_PC, sp)
+ mov #PT_UC, r0
+ mov.l sp, @(r0, r8) /* self->pt_uc = &cntx; */
+
STACK_SWITCH(r9, r4) /* r4 = next->pt_uc; */
/*
Home |
Main Index |
Thread Index |
Old Index