About SA_RESTART undeclared in my application

2017-08-14 Thread xuelin.t...@qkmtech.com
Dear all, I am trying to compile some applications that need POSIX signal support, however, some error come up. When using SA_RESTART, it says "error 'SA_RESTART' undeclared". But I check the function "signal" in /cpukit/posix/src/signal_2.c, this macro is being used in rtems. How can I use such

Re: LEON2 and C++ exception handling

2017-08-14 Thread Chris Johns
On 14/08/2017 23:08, Mike Looijmans wrote: > > Bit of searching and comparing exectables reveiled that the ".eh_frame" > segment > was missing in the ROM images. Turned out to be a typo in the link script. > > And indeed, it works properly now. Thank you for your help! > There is also the 'rte

Re: LEON2 and C++ exception handling

2017-08-14 Thread Mike Looijmans
On 14-08-17 09:35, Chris Johns wrote: On 14/8/17 4:04 pm, Mike Looijmans wrote: On 12-08-17 03:29, Chris Johns wrote: On 11/8/17 10:14 pm, Mike Looijmans wrote: Is there maybe some other entry/register/variable that my boot code needs to pass to RTEMS? Exceptions need valid tables registere

Re: How to implement ucontext.h in rtems?

2017-08-14 Thread Sebastian Huber
- Am 14. Aug 2017 um 14:50 schrieb xuelin tian xuelin.t...@qkmtech.com: > Dear all, > I checked the file in rtems, and it is empty. > Does rtems support ucontext? No, its not supported. To support it, the implementation from FreeBSD or similar should be imported to Newlib.

How to implement ucontext.h in rtems?

2017-08-14 Thread xuelin.t...@qkmtech.com
Dear all, I checked the file in rtems, and it is empty. Does rtems support ucontext? Best wishes, xuelin.t...@qkmtech.com ___ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users

Re: pthread_cond_timedwait() : time internal resolution issue.

2017-08-14 Thread Joel Sherrill
You have to configure the clock tick length. By default it is 10 milliseconds if I remember correctly. All timeouts are done in the clock tick. By using main() as the entry point and not specifying any configuration info you are getting the entire default settings. On Aug 14, 2017 12:19 AM, "Thom

Re: LEON2 and C++ exception handling

2017-08-14 Thread Chris Johns
On 14/8/17 4:04 pm, Mike Looijmans wrote: > On 12-08-17 03:29, Chris Johns wrote: >> On 11/8/17 10:14 pm, Mike Looijmans wrote: >>> Is there maybe some other >>> entry/register/variable that my boot code needs to pass to RTEMS? >> >> Exceptions need valid tables registered with the unwinder to work