<feed xmlns='http://www.w3.org/2005/Atom'>
<title>fbos/usr/src/init.S, branch main</title>
<subtitle>A RISC-V operating system devoted to running fizz/buzz processes.
</subtitle>
<id>https://git.mssola.com/os/fbos/atom?h=main</id>
<link rel='self' href='https://git.mssola.com/os/fbos/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/fbos/'/>
<updated>2024-11-25T22:02:51Z</updated>
<entry>
<title>usr: Simplify init.S</title>
<updated>2024-11-25T22:02:51Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-11-25T22:02:51Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/fbos/commit/?id=30d6ab8c6b40b2897fa3f49cce0302cc6c3a66e6'/>
<id>urn:sha1:30d6ab8c6b40b2897fa3f49cce0302cc6c3a66e6</id>
<content type='text'>
There appears to be no reasonable way to call 'wfi' from user space and
making kernel space look the other way. Moreover, it also looks like
clearing TW is not working either. Hence, we will have to implement
'idle' entirely from kernel space and be reasonable about it.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>Simplify scheduling by introducing an init process</title>
<updated>2024-11-24T21:22:48Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-11-24T21:07:51Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/fbos/commit/?id=192208770d3866838a450462dd4b1fc8e2b5c91a'/>
<id>urn:sha1:192208770d3866838a450462dd4b1fc8e2b5c91a</id>
<content type='text'>
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à &lt;mikisabate@gmail.com&gt;
</content>
</entry>
</feed>
