Re: [PATCH 2/3] Add hook for BSP to act when time is set

2019-10-07 Thread Sebastian Huber
On 04/10/2019 17:08, Joel Sherrill wrote: I can't conceive of a use case where you would need more than one hook set. Do you have something in mind? The int returned may need to be an enum so there is a list of known failures which can be mapped to API specific errors. Any ideas on the new AP

Re: [PATCH 2/3] Add hook for BSP to act when time is set

2019-10-04 Thread Joel Sherrill
I can't conceive of a use case where you would need more than one hook set. Do you have something in mind? The int returned may need to be an enum so there is a list of known failures which can be mapped to API specific errors. Any ideas on the new API to register with? Whether it is one hook or

Re: [PATCH 2/3] Add hook for BSP to act when time is set

2019-10-03 Thread Sebastian Huber
On 04/10/2019 08:06, Chris Johns wrote: On 4/10/19 3:10 pm, Sebastian Huber wrote: On 04/10/2019 04:44, Chris Johns wrote: Is this only useful for virtual BSPs and is it always a requirement to implement this call in those environments? Would this call be useful to a non-virtual BSP, for examp

Re: [PATCH 2/3] Add hook for BSP to act when time is set

2019-10-03 Thread Chris Johns
On 4/10/19 3:10 pm, Sebastian Huber wrote: > On 04/10/2019 04:44, Chris Johns wrote: >> Is this only useful for virtual BSPs and is it always a requirement to >> implement >> this call in those environments? >> >> Would this call be useful to a non-virtual BSP, for example one with a >> battery >

Re: [PATCH 2/3] Add hook for BSP to act when time is set

2019-10-03 Thread Sebastian Huber
On 04/10/2019 04:44, Chris Johns wrote: Is this only useful for virtual BSPs and is it always a requirement to implement this call in those environments? Would this call be useful to a non-virtual BSP, for example one with a battery backed RTC device? Would a hook API along the lines of t

Re: [PATCH 2/3] Add hook for BSP to act when time is set

2019-10-03 Thread Chris Johns
On 4/10/19 8:08 am, Joel Sherrill wrote: > This hook is only enabled when paravirtualized. It allows > the application running on RTEMS in a paravirtualized > environment to have its set time operations impact > the hosting environment. This requires support specific > to the paravirtualized enviro

[PATCH 2/3] Add hook for BSP to act when time is set

2019-10-03 Thread Joel Sherrill
This hook is only enabled when paravirtualized. It allows the application running on RTEMS in a paravirtualized environment to have its set time operations impact the hosting environment. This requires support specific to the paravirtualized environment. The hosting environment may refuse to let th