xinu-os / xinu

Repository for Xinu source code
http://xinu-os.org/
Other
430 stars 128 forks source link

Running Xinu in User mode #29

Open robinkrens opened 4 years ago

robinkrens commented 4 years ago

Is it possible to run Xinu in User mode? I checked the system and device calls, but this seems a bit problematic. For example, code like this in UART write:

wait(uartptr->osema);

If it is a process running in kernel mode and then wait get called that's fine. But if a process is in user mode and this code is executed in supervisor/handler/kernel mode, how does that work?