SharedUnixLibrary and the System Heap
John.Tytgat at aaug.net
Mon Mar 27 13:40:25 PST 2006
In message <44285552.1060506 at stdevel.co.uk>
Matt Edgar <matt at stdevel.co.uk> wrote:
> We are looking at some tightening up of the memory protection in RISC OS
> and one of the possibilities is to protect the system heap against
> user mode accesses.
> Unfortunately SUL does this, so protecting the heap would break a lot of
> Switching to a privledged mode within SUL in order to access the heap
> seems like a sensible solution.
> Does anyone see a problem with this? Or have a better solution? etc.
I wasn't aware that there is code in the SUL module itself executed in
user mode accessing the SVC stack (that's what you are saying, isn't it ?).
You're sure it is SUL module code and not UnixLib in application space ?
I'm willing to investigate this more but I presume you have something I
can use to protect the system heap from user mode access and see where
things are breaking ?
John Tytgat, in his comfy chair at home BASS
John.Tytgat at aaug.net ARM powered, RISC OS driven
More information about the gcc