Re: Per-BSP confdefs (or resource allocation)

2015-10-26 Thread Sebastian Huber
On 24/10/15 02:12, Chris Johns wrote: On 22/10/2015 6:16 pm, Sebastian Huber wrote: On 22/10/15 09:00, Chris Johns wrote: In the mean time could linker sets be used in drivers or BSPs to declare a table of "resources" they need and these are added to the confdefs.h defined values during

Re: Per-BSP confdefs (or resource allocation)

2015-10-23 Thread Chris Johns
On 22/10/2015 6:16 pm, Sebastian Huber wrote: > On 22/10/15 09:00, Chris Johns wrote: >> In the mean time could linker sets be used in drivers or BSPs to declare >> a table of "resources" they need and these are added to the confdefs.h >> defined values during initialisation? > > Yes, this would

Re: Per-BSP confdefs (or resource allocation)

2015-10-22 Thread Sebastian Huber
On 22/10/15 09:00, Chris Johns wrote: In the mean time could linker sets be used in drivers or BSPs to declare a table of "resources" they need and these are added to the confdefs.h defined values during initialisation? Yes, this would probably work. You should however compare the complexity

Re: Per-BSP confdefs (or resource allocation)

2015-10-22 Thread Chris Johns
On 22/10/2015 4:57 pm, Sebastian Huber wrote: > With "would be" I meant that it is technically possible. There is some > work necessary to actually use it. My approach would be to move the > FreeBSD synchronization objects from libbsd to RTEMS, since they offer > the best designed APIs. That is a

Re: Per-BSP confdefs (or resource allocation)

2015-10-22 Thread Joel Sherrill
On 10/22/2015 9:42 AM, Isaac Gutekunst wrote: On 10/22/2015 10:30 AM, Joel Sherrill wrote: On 10/22/2015 8:55 AM, Isaac Gutekunst wrote: On 10/22/2015 01:33 AM, Sebastian Huber wrote: On 21/10/15 21:53, Isaac Gutekunst wrote: Hi Devel, I looked for a while, but couldn't find a way

Re: Per-BSP confdefs (or resource allocation)

2015-10-22 Thread Isaac Gutekunst
On 10/22/2015 10:30 AM, Joel Sherrill wrote: On 10/22/2015 8:55 AM, Isaac Gutekunst wrote: On 10/22/2015 01:33 AM, Sebastian Huber wrote: On 21/10/15 21:53, Isaac Gutekunst wrote: Hi Devel, I looked for a while, but couldn't find a way to specify what resources (semaphores, tasks,

Re: Per-BSP confdefs (or resource allocation)

2015-10-21 Thread Sebastian Huber
On 22/10/15 07:37, Chris Johns wrote: On 22/10/2015 4:33 pm, Sebastian Huber wrote: > > >On 21/10/15 21:53, Isaac Gutekunst wrote: >>Hi Devel, >> >>I looked for a while, but couldn't find a way to specify what >>resources (semaphores, tasks, etc) a BSP requires for an empty project >>(empty

Re: Per-BSP confdefs (or resource allocation)

2015-10-21 Thread Chris Johns
On 22/10/2015 4:33 pm, Sebastian Huber wrote: > > > On 21/10/15 21:53, Isaac Gutekunst wrote: >> Hi Devel, >> >> I looked for a while, but couldn't find a way to specify what >> resources (semaphores, tasks, etc) a BSP requires for an empty project >> (empty Init function). > > There is no

Re: Per-BSP confdefs (or resource allocation)

2015-10-21 Thread Chris Johns
On 22/10/2015 4:41 pm, Sebastian Huber wrote: > > If you use C11, C++11, libgomp or libbsd synchronization objects, then > the storage space for them is provided by the user and not the workspace. > Typically drivers in BSPs have used documented APIs. Is this approach and support documented and

Re: Per-BSP confdefs (or resource allocation)

2015-10-21 Thread Sebastian Huber
On 21/10/15 21:53, Isaac Gutekunst wrote: Hi Devel, I looked for a while, but couldn't find a way to specify what resources (semaphores, tasks, etc) a BSP requires for an empty project (empty Init function). There is no useful support for this and this is a constant source of problems.

Re: Per-BSP confdefs (or resource allocation)

2015-10-21 Thread Joel Sherrill
On 10/21/2015 2:53 PM, Isaac Gutekunst wrote: Hi Devel, I looked for a while, but couldn't find a way to specify what resources (semaphores, tasks, etc) a BSP requires for an empty project (empty Init function). I took a look at this page:

Per-BSP confdefs (or resource allocation)

2015-10-21 Thread Isaac Gutekunst
Hi Devel, I looked for a while, but couldn't find a way to specify what resources (semaphores, tasks, etc) a BSP requires for an empty project (empty Init function). I took a look at this page:

Re: Per-BSP confdefs (or resource allocation)

2015-10-21 Thread Isaac Gutekunst
Let me clarify. I don't think I explained my predicament very well. None of the tests will run because the base application for our BSP requires resources that aren't available. On the application side we're fine. We have a couple of applications running correctly, by specifying