Re: set_thread_area.2: csky architecture undocumented

2023-10-15 Thread Guo Ren
On Sun, Oct 15, 2023 at 01:20:42AM +0200, Alejandro Colomar wrote: > Hi Guo, > > On Tue, Nov 24, 2020 at 08:07:07PM +0800, Guo Ren wrote: > > Huh, 3 years already! I've had this in my head for all this time; just > didn't find the energy to act on it. > > > Thx Michael & Alejandro, > > > > Yes

Re: set_thread_area.2: csky architecture undocumented

2023-10-14 Thread Alejandro Colomar
Hi Guo, On Tue, Nov 24, 2020 at 08:07:07PM +0800, Guo Ren wrote: Huh, 3 years already! I've had this in my head for all this time; just didn't find the energy to act on it. > Thx Michael & Alejandro, > > Yes, the man page has no csky's. I've applied a patch to add initial documentation for it

Re: set_thread_area.2: csky architecture undocumented

2020-11-26 Thread Alejandro Colomar (mailing lists; readonly)
Hi Guo, Thanks for the details! I'll try to add csky to the man page, and if I have any doubts I'll ask you. Anyway, I'll CC you in any change I propose. Cheers, Alex On 11/24/20 1:07 PM, Guo Ren wrote: > Thx Michael & Alejandro, > > Yes, the man page has no csky's. > > C-SKY have abiv1 and a

Re: set_thread_area.2: csky architecture undocumented

2020-11-26 Thread Alejandro Colomar (mailing lists; readonly)
HI Michael, On 11/24/20 10:51 AM, Michael Kerrisk (man-pages) wrote: > Hi Alex, > > On 11/23/20 10:31 PM, Alejandro Colomar (man-pages) wrote: >> Hi Michael, >> >> SYNOPSIS >>#include >> >>#if defined __i386__ || defined __x86_64__ >># include >> >>int get_thread

Re: set_thread_area.2: csky architecture undocumented

2020-11-24 Thread Guo Ren
Thx Michael & Alejandro, Yes, the man page has no csky's. C-SKY have abiv1 and abiv2 For abiv1: There is no register for tls saving, We use trap 3 to got tls and use set_thread_area to init ti->tp_value. For abiv2: The r31 is the tls register. We could directly read r31 to got r31 and use set_thr

Re: set_thread_area.2: csky architecture undocumented

2020-11-24 Thread Michael Kerrisk (man-pages)
Hi Alex, On 11/23/20 10:31 PM, Alejandro Colomar (man-pages) wrote: > Hi Michael, > > SYNOPSIS >#include > >#if defined __i386__ || defined __x86_64__ ># include > >int get_thread_area(struct user_desc *u_info); >int set_thread_area(struct user_desc *u_

Re: set_thread_area.2: csky architecture undocumented

2020-11-23 Thread Michael Kerrisk (man-pages)
Hello Alex, On Mon, 23 Nov 2020 at 22:31, Alejandro Colomar (man-pages) wrote: > > Hi Michael, > > SYNOPSIS >#include > >#if defined __i386__ || defined __x86_64__ ># include > >int get_thread_area(struct user_desc *u_info); >int set_thread_area(struct us

set_thread_area.2: csky architecture undocumented

2020-11-23 Thread Alejandro Colomar (man-pages)
Hi Michael, SYNOPSIS #include #if defined __i386__ || defined __x86_64__ # include int get_thread_area(struct user_desc *u_info); int set_thread_area(struct user_desc *u_info); #elif defined __m68k__ int get_thread_area(void); int set_t