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:
parent
67c2d7c242
commit
59f9830997
|
@ -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)
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue