Post Reply 
C compiler
09-15-2015, 06:14 PM
Post: #24
RE: C compiler
(09-14-2015 05:45 AM)cyrille de brĂ©bisson Wrote:  Hello,

> If they allowed native programming, they could use the MMU to block our code from altering any areas they want.

This is assuming that the OS does support/use the MMU, or can be modified to do so.

Cyrille

The OS does not need to be modified unless it already implements MMU protection.
If the OS does not use the MMU it's better, you can do what hpgcc3 does:
* Save all hardware registers
* Take control of the CPU exceptions, enable the MMU to create your own isolated environment
* Run the native user program in a separate address space
* Unwind the mess, shut down the MMU, restore system exception handlers
* Restore all hardware registers and return like nothing happened.

This way you could create a secure wrapper for people to run native code in a completely sandboxed environment. This could include a virtual stack where the code could take arguments from and return results (the Prime's data and code don't need to be visible from within this environment). The wrapper would be in charge of copying the arguments and results from/back to Prime memory.
Providing an environment like described above, some useful software could be written for the Prime (I'm willing to port newRPL to such environment). You could of course disallow its use during exam mode.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
C compiler - webmasterpdx - 09-12-2015, 06:35 AM
RE: C compiler - debrouxl - 09-12-2015, 09:44 AM
RE: C compiler - webmasterpdx - 09-12-2015, 03:52 PM
RE: C compiler - debrouxl - 09-12-2015, 04:41 PM
RE: C compiler - webmasterpdx - 09-12-2015, 05:38 PM
RE: C compiler - Tim Wessman - 09-12-2015, 07:19 PM
RE: C compiler - webmasterpdx - 09-13-2015, 02:06 AM
RE: C compiler - Adriweb - 09-13-2015, 03:30 AM
RE: C compiler - Sukiari - 09-24-2015, 08:01 AM
RE: C compiler - xset - 09-24-2015, 08:55 AM
RE: C compiler - xset - 09-15-2015, 06:50 AM
RE: C compiler - eried - 09-15-2015, 01:36 PM
RE: C compiler - xset - 09-18-2015, 11:35 AM
RE: C compiler - webmasterpdx - 09-13-2015, 04:43 AM
RE: C compiler - AHelper - 09-13-2015, 05:20 AM
RE: C compiler - webmasterpdx - 09-13-2015, 05:12 AM
RE: C compiler - debrouxl - 09-13-2015, 06:39 AM
RE: C compiler - webmasterpdx - 09-13-2015, 07:10 AM
RE: C compiler - webmasterpdx - 09-13-2015, 07:21 AM
RE: C compiler - cyrille de brébisson - 09-14-2015, 05:45 AM
RE: C compiler - Claudio L. - 09-15-2015 06:14 PM
RE: C compiler - webmasterpdx - 09-14-2015, 05:58 AM
RE: C compiler - Tim Wessman - 09-14-2015, 03:11 PM
RE: C compiler - webmasterpdx - 09-14-2015, 06:34 AM
RE: C compiler - webmasterpdx - 09-14-2015, 04:08 PM
RE: C compiler - Claudio L. - 09-15-2015, 05:50 PM
RE: C compiler - webmasterpdx - 09-15-2015, 06:27 PM
RE: C compiler - matthiaspaul - 09-18-2015, 08:10 PM
RE: C compiler - webmasterpdx - 09-15-2015, 11:45 AM
RE: C compiler - webmasterpdx - 09-15-2015, 06:26 PM
RE: C compiler - Dwight Sturrock - 09-18-2015, 09:43 PM
RE: C compiler - webmasterpdx - 09-19-2015, 03:10 AM



User(s) browsing this thread: 2 Guest(s)