Re: [PATCH] arm: Preserve TPIDRURW on context switch

2013-02-21 Thread Will Deacon
Hi Andre, On Wed, Feb 20, 2013 at 07:34:37PM +, André Hentschel wrote: > Am 12.02.2013 16:02, schrieb Matthieu CASTET: > > The tls value is never saved to : thread->tp_value[1]. > > > > Also I don't know if you can avoid the extra ldr in the software case. > > seems like Matthieu is right, an

Re: [PATCH] arm: Preserve TPIDRURW on context switch

2013-02-20 Thread André Hentschel
Am 12.02.2013 16:02, schrieb Matthieu CASTET: > Will Deacon a écrit : >> Hi Andre, >> >> On Tue, Feb 12, 2013 at 02:02:59PM +, André Hentschel wrote: >>> Am 08.02.2013 16:48, schrieb Will Deacon: On Wed, Feb 06, 2013 at 11:01:23PM +, André Hentschel wrote: > No, i'm not sure how to

Re: [PATCH] arm: Preserve TPIDRURW on context switch

2013-02-12 Thread Matthieu CASTET
Will Deacon a écrit : > Hi Andre, > > On Tue, Feb 12, 2013 at 02:02:59PM +, André Hentschel wrote: >> Am 08.02.2013 16:48, schrieb Will Deacon: >>> On Wed, Feb 06, 2013 at 11:01:23PM +, André Hentschel wrote: No, i'm not sure how to improve this. How does the process can continue, >>

Re: [PATCH] arm: Preserve TPIDRURW on context switch

2013-02-12 Thread André Hentschel
Am 12.02.2013 15:09, schrieb Will Deacon: > Hi Andre, > > On Tue, Feb 12, 2013 at 02:02:59PM +, André Hentschel wrote: >> Am 08.02.2013 16:48, schrieb Will Deacon: >>> On Wed, Feb 06, 2013 at 11:01:23PM +, André Hentschel wrote: No, i'm not sure how to improve this. How does the proce

Re: [PATCH] arm: Preserve TPIDRURW on context switch

2013-02-12 Thread Will Deacon
Hi Andre, On Tue, Feb 12, 2013 at 02:02:59PM +, André Hentschel wrote: > Am 08.02.2013 16:48, schrieb Will Deacon: > > On Wed, Feb 06, 2013 at 11:01:23PM +, André Hentschel wrote: > >> No, i'm not sure how to improve this. How does the process can continue, > >> can you or someone else fi

Re: [PATCH] arm: Preserve TPIDRURW on context switch

2013-02-12 Thread André Hentschel
Am 08.02.2013 16:48, schrieb Will Deacon: > On Wed, Feb 06, 2013 at 11:01:23PM +, André Hentschel wrote: >> Am 06.02.2013 23:51, schrieb Russell King - ARM Linux: >>> On Wed, Feb 06, 2013 at 11:43:10PM +0100, André Hentschel wrote: There are more and more applications coming to WinRT, Wine

Re: [PATCH] arm: Preserve TPIDRURW on context switch

2013-02-09 Thread André Hentschel
Am 08.02.2013 16:48, schrieb Will Deacon: > On Wed, Feb 06, 2013 at 11:01:23PM +, André Hentschel wrote: >> Am 06.02.2013 23:51, schrieb Russell King - ARM Linux: >>> On Wed, Feb 06, 2013 at 11:43:10PM +0100, André Hentschel wrote: There are more and more applications coming to WinRT, Wine

Re: [PATCH] arm: Preserve TPIDRURW on context switch

2013-02-08 Thread Will Deacon
On Wed, Feb 06, 2013 at 11:01:23PM +, André Hentschel wrote: > Am 06.02.2013 23:51, schrieb Russell King - ARM Linux: > > On Wed, Feb 06, 2013 at 11:43:10PM +0100, André Hentschel wrote: > >> There are more and more applications coming to WinRT, Wine could support > >> them, > >> but mostly th

Re: [PATCH] arm: Preserve TPIDRURW on context switch

2013-02-06 Thread André Hentschel
Am 06.02.2013 23:51, schrieb Russell King - ARM Linux: > On Wed, Feb 06, 2013 at 11:43:10PM +0100, André Hentschel wrote: >> There are more and more applications coming to WinRT, Wine could support >> them, >> but mostly they expect to have the thread environment block (TEB) in >> TPIDRURW. >> Th

Re: [PATCH] arm: Preserve TPIDRURW on context switch

2013-02-06 Thread Russell King - ARM Linux
On Wed, Feb 06, 2013 at 11:43:10PM +0100, André Hentschel wrote: > There are more and more applications coming to WinRT, Wine could support them, > but mostly they expect to have the thread environment block (TEB) in TPIDRURW. > This register must be preserved per thread instead of being cleared.

[PATCH] arm: Preserve TPIDRURW on context switch

2013-02-06 Thread André Hentschel
could only test it with kernel 3.4.6 Signed-off-by: André Hentschel From: =?UTF-8?q?Andr=C3=A9=20Hentschel?= Date: Wed, 6 Feb 2013 23:24:54 +0100 Subject: [PATCH] arm: Preserve TPIDRURW on context switch --- arch/arm/include/asm/thread_info.h | 1 + arch/arm/include/asm/tls.h | 43