mikeprotts wrote:I think stdin, stdout and stderr would be an important link between the sandbox and the main system. The stderr route might benefit from being treated as a higher priority, perhaps options to have errors treated as either fatal (perhaps chSysHalt) or recoverable, where the sandbox might be terminated, but the main system handle the reported error.
Mike
Now stdin/stdout/stderr can be associated to any stream in the SB configuration, look at the demo, it is very easy. I also added a syscalls.c so the SB can use the full C library, I just tried printf() and it appears to work.
Next, I wish to add a virtualized HAL in order to access drivers "on the other side" but callback-based drivers are not possible, events-based ones should be fine. This one will probably take more time, the SVC interfaces are entirely to be designed.
The whole thing will allow to implement more robust embedded systems, code running in sandboxes cannot cause harm and can be restarted in case of problems.
Giovanni