Re: Context switching for protected stacks

2020-06-19 Thread Gedare Bloom
You can start with the CPP macro you suggest, but eventually we probably want to make all of this part of application configuration. It is probably easier to develop using the macros, and then refactor later. On Thu, Jun 18, 2020, 11:59 PM Utkarsh Rai wrote: > > > On Fri, Jun 19, 2020 at 3:04 AM

Re: Context switching for protected stacks

2020-06-18 Thread Utkarsh Rai
On Fri, Jun 19, 2020 at 3:04 AM Gedare Bloom wrote: > On Thu, Jun 18, 2020 at 8:03 AM Utkarsh Rai > wrote: > > > > > > > > On Thu, Jun 18, 2020 at 6:34 PM Gedare Bloom wrote: > >> > >> On Wed, Jun 17, 2020 at 11:17 PM Utkarsh Rai > wrote: > >> > > >> > Hello, > >> > For my GSoC project, I need

Re: Context switching for protected stacks

2020-06-18 Thread Gedare Bloom
On Thu, Jun 18, 2020 at 8:03 AM Utkarsh Rai wrote: > > > > On Thu, Jun 18, 2020 at 6:34 PM Gedare Bloom wrote: >> >> On Wed, Jun 17, 2020 at 11:17 PM Utkarsh Rai wrote: >> > >> > Hello, >> > For my GSoC project, I need to set/unset the memory attributes of the >> > thread stacks on each context

Re: Context switching for protected stacks

2020-06-18 Thread Utkarsh Rai
On Thu, Jun 18, 2020 at 6:34 PM Gedare Bloom wrote: > On Wed, Jun 17, 2020 at 11:17 PM Utkarsh Rai > wrote: > > > > Hello, > > For my GSoC project, I need to set/unset the memory attributes of the > thread stacks on each context switch. > > Right now I am making changes to the CPU-specific conte

Re: Context switching for protected stacks

2020-06-18 Thread Gedare Bloom
On Wed, Jun 17, 2020 at 11:17 PM Utkarsh Rai wrote: > > Hello, > For my GSoC project, I need to set/unset the memory attributes of the thread > stacks on each context switch. > Right now I am making changes to the CPU-specific context switch assembly > code. The arm/../cpu.h file has the Context