diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-11-24 22:07:51 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-11-24 22:22:48 +0100 |
| commit | 192208770d3866838a450462dd4b1fc8e2b5c91a (patch) | |
| tree | ec3f929b77d407ef57634cd917c04a13d614c8c8 /test/testdata | |
| parent | 7f6b234625a53d2ceb9ec80dc0172aac1cedb358 (diff) | |
| download | fbos-192208770d3866838a450462dd4b1fc8e2b5c91a.tar.gz fbos-192208770d3866838a450462dd4b1fc8e2b5c91a.zip | |
Simplify scheduling by introducing an init process
Scheduling is easier if there is an init process which does nothing.
This way we don't have to perform hacks in order to idle in S privilege
mode while touching special registers in weird ways.
For now this process is kind of costly since 'wfi' is not accepted in
this context, but this can be further tuned down in the future by
setting TW=1 on 'mstatus', or by handling the exception and allowing it
if it comes from the proper process.
All of that being said, there is still work to be done as things fail
when optimitzations are on.
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to 'test/testdata')
0 files changed, 0 insertions, 0 deletions
