<feed xmlns='http://www.w3.org/2005/Atom'>
<title>fbos/test, 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-12-03T07:00:53Z</updated>
<entry>
<title>test: Remove asserts on specific entry addrs</title>
<updated>2024-12-03T07:00:53Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-12-03T07:00:53Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/fbos/commit/?id=95c4b00e90e24d3bcb5d3b6e56f0e29b725ba9ce'/>
<id>urn:sha1:95c4b00e90e24d3bcb5d3b6e56f0e29b725ba9ce</id>
<content type='text'>
These asserts where needed when I was iterating on the initrd handling
code, but they are admittedly too specific and prone to errors. Hence,
get rid off them.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>Remove stack pointer for each process</title>
<updated>2024-12-03T06:59:01Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-12-03T06:59:01Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/fbos/commit/?id=065f42adc9af7fc4adc391bb6961460010c30d08'/>
<id>urn:sha1:065f42adc9af7fc4adc391bb6961460010c30d08</id>
<content type='text'>
Since 6132623dbf30 ("Share the same stack everywhere") the same stack is
used everywhere. Hence, it's rather pointless for each task to have a
pointer to a stack which is the same and that is never read.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>Simplify the constant on the size of the stack</title>
<updated>2024-12-03T06:41:45Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-12-03T06:41:45Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/fbos/commit/?id=58fcecc381be82992f718a6ef9bf7ddcd3bca369'/>
<id>urn:sha1:58fcecc381be82992f718a6ef9bf7ddcd3bca369</id>
<content type='text'>
At the beginning I carried over things from the Linux kernel just in
case I would need them in the future. As this project is very much at a
stage where I'm already happy with it, let's remove unneeded complexity.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>Share the same stack everywhere</title>
<updated>2024-12-02T20:02:35Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-12-02T20:02:35Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/fbos/commit/?id=6132623dbf3076da11cdb85c494fadd7ee0f0a93'/>
<id>urn:sha1:6132623dbf3076da11cdb85c494fadd7ee0f0a93</id>
<content type='text'>
As documented in the code, we are not implementing any kind of memory
protection, so in theory any process (regardless if running in user or
kernel space) would be able to tamper with other processes' stack.
Hence, don't even pretend that we are separating stacks and share the
same global stack everywhere. This simplifies things a bit.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>Show the detected machine model</title>
<updated>2024-11-26T20:43:54Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-11-26T20:43:54Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/fbos/commit/?id=87d1a2597ceedd03a7d4005db1bf82b72b423a18'/>
<id>urn:sha1:87d1a2597ceedd03a7d4005db1bf82b72b423a18</id>
<content type='text'>
Originally I was planning to detect the machine model just in case we
needed to do workaround for special cases. But since apparently even
VisionFive2 brings its own CPU frequency base on DT, this is not even
needed. Hence, fetching the model is now a cool message being shown on
boot.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>test: Add a DT test for a VisionFive2 board</title>
<updated>2024-11-26T20:42:50Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-11-26T20:42:50Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/fbos/commit/?id=eec442be4d2dd0a1630a820ee43220e635450aa7'/>
<id>urn:sha1:eec442be4d2dd0a1630a820ee43220e635450aa7</id>
<content type='text'>
Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>dt: Fetch the CPU frequency as well</title>
<updated>2024-11-26T12:59:54Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-11-26T12:59:54Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/fbos/commit/?id=7870d56b155c2be73cdacfba94eeb893cd55628e'/>
<id>urn:sha1:7870d56b155c2be73cdacfba94eeb893cd55628e</id>
<content type='text'>
If the 'timebase-frequency' property is available under the 'cpus' node
from the DTB blob, it makes sense to try to fetch this value from there
instead of hardcoding it. For other use-cases, where this information is
not available through DT (e.g. ACPI on the VisionFive2 board), we will
have to hardcode it with a default value even if it's not the proper
one.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>tests: Only test initrd addresses on debug</title>
<updated>2024-11-25T06:45:26Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-11-25T06:35:35Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/fbos/commit/?id=ea542e18e7bc7e9d401aefd044bf0317676867ca'/>
<id>urn:sha1:ea542e18e7bc7e9d401aefd044bf0317676867ca</id>
<content type='text'>
In initrd tests, and in general, we only need to check that the function
did something. As in, that it set the entry addresses somewhere and did
not leave them NULL. This is going to be performed from now on on CI and
regular tests. And, just if you want to go the extra mile, we will run
specific tests that check on memory addresses but that are not
guaranteed to work.

This is to be replaced in the future by having some proper debugging
output. As in, having a message at kernel boot time specifying the
addresses being used among other info. This needs a more complex printk
utility, of course.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>test: Fix test on initrd</title>
<updated>2024-11-24T22:55:25Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-11-24T22:48:59Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/fbos/commit/?id=51ec9306dce1684e35ebdcbf2f091359971fcc57'/>
<id>urn:sha1:51ec9306dce1684e35ebdcbf2f091359971fcc57</id>
<content type='text'>
This was broken since I first introduced the test on initrd on
40ffc517e20c ("Initial parsing of the provided initrd file") but it
always was as a work in progress test.

Now that the initrd parsing has separation of concerns with the global
'tasks' variable since f4986dab75fa ("Accept tasks as a parameter on
initrd extraction"), we can have a proper test written for this.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>Accept tasks as a parameter on initrd extraction</title>
<updated>2024-11-24T22:27:13Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-11-24T22:27:13Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/fbos/commit/?id=f4986dab75fa612f4f3d525187cd04c029d9bc6b'/>
<id>urn:sha1:f4986dab75fa612f4f3d525187cd04c029d9bc6b</id>
<content type='text'>
This allows this functionality to be properly extracted for unit tests.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
</feed>
