This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH] Export _NCPUWORDS as variable for access from within the gnat-rts
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: Jan Sommer <soja-lists at aries dot uberspace dot de>, "newlib at sourceware dot org" <newlib at sourceware dot org>
- Cc: "devel at rtems dot org" <devel at rtems dot org>
- Date: Thu, 29 Oct 2015 08:45:57 -0500
- Subject: Re: [PATCH] Export _NCPUWORDS as variable for access from within the gnat-rts
- Authentication-results: sourceware.org; auth=none
- References: <5097426 dot EKvjXrnULh at kubuntu>
On 10/29/2015 8:14 AM, Jan Sommer wrote:
Hi,
This patch will make the define _NCPUWORDS accessible for the ada runtime. It is necessary to model the pthread_attr_t implementation for rtems in Ada.
We had a stack corruption because the C an Ada declarations of the type where out of synch.
I will send the updated s-osinte-rtems.ads to gcc if this patch is accepted.
I put devel@rtems.org CC for input from the rtems developers.
Is it possible to define this in the RTEMS Ada glue file?
Generally, I like the Ada support to be self-contained and
have no impact on anything else. This puts an Ada specific
variable in generic code.
This is similar to how I had to do the Ada task minimum
stack size. It could have gone in more common code but
nothing else uses it so should not be impacted.
Plus newlib doesn't know anything about our Ada glue layer.
Best to keep it that way.
Best regards,
Jan