-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stack process's r4-r11 on kernel-side of syscall
For system calls this doesn't make much of a difference*, but it will allow us to do preemption. Basically, preemption happens without the process's knowledge, so we have to stack those registers in the kernel anyway. This change allows us to treat both situations the same when context switching back to the process. * Except for technically it would be possible to overrun the process stack by 32 bytes in the interrupt handler, while not running with the MPU. We ought to deal with that somehow. A fault page won't work because interrupt handlers are never subject to MPU rules.
- Loading branch information
Showing
4 changed files
with
81 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters