Continue at the plain switch return point in pthread__switch, not the

locked one, in the !PIC case. From Tor Egge via Havard Eidnes.
This commit is contained in:
fvdl 2003-02-10 11:09:33 +00:00
parent 67c2d7c242
commit 59f9830997
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pthread_switch.S,v 1.2 2003/01/18 10:34:18 thorpej Exp $ */
/* $NetBSD: pthread_switch.S,v 1.3 2003/02/10 11:09:33 fvdl Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -141,7 +141,7 @@ ENTRY(pthread__switch)
#ifdef PIC
movl PIC_GOT(switch_return_point), %esi
#else
leal locked_return_point, %esi
leal switch_return_point, %esi
#endif
movl %esi, UC_EIP(%edi)

View File

@ -1,4 +1,4 @@
/* $NetBSD: pthread_switch.S,v 1.1 2003/01/30 02:10:32 fvdl Exp $ */
/* $NetBSD: pthread_switch.S,v 1.2 2003/02/10 11:09:34 fvdl Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@ -138,7 +138,7 @@ ENTRY(pthread__switch)
#ifdef PIC
movq PIC_GOT(switch_return_point), %r11
#else
leaq locked_return_point, %r11
leaq switch_return_point, %r11
#endif
movq %r11, UC_RIP(%r14)