<feed xmlns='http://www.w3.org/2005/Atom'>
<title>farga/arch/riscv, branch main</title>
<subtitle>A bunch of code that messes with low level stuff.
</subtitle>
<id>https://git.mssola.com/os/farga/atom?h=main</id>
<link rel='self' href='https://git.mssola.com/os/farga/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/farga/'/>
<updated>2026-07-22T15:00:52Z</updated>
<entry>
<title>Update links to git.mssola.com</title>
<updated>2026-07-22T15:00:52Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mssola@mssola.com</email>
</author>
<published>2026-07-22T15:00:52Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/farga/commit/?id=68ff13d1b9c8ef164a056e2e340404480e778dd1'/>
<id>urn:sha1:68ff13d1b9c8ef164a056e2e340404480e778dd1</id>
<content type='text'>
Signed-off-by: Miquel Sabaté Solà &lt;mssola@mssola.com&gt;
</content>
</entry>
<entry>
<title>hwprobe: add detection for the Zabha extension</title>
<updated>2026-06-17T20:38:10Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mssola@mssola.com</email>
</author>
<published>2026-06-17T20:38:10Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/farga/commit/?id=f55cde81689a1a1a29666a3626b069a883be430d'/>
<id>urn:sha1:f55cde81689a1a1a29666a3626b069a883be430d</id>
<content type='text'>
Signed-off-by: Miquel Sabaté Solà &lt;mssola@mssola.com&gt;
</content>
</entry>
<entry>
<title>riscv: user: Force LINUX_HEADERS on hwprobe</title>
<updated>2025-04-22T19:29:06Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2025-04-22T19:29:06Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/farga/commit/?id=1de9228fda28826c337ac09201586de1f2f248b9'/>
<id>urn:sha1:1de9228fda28826c337ac09201586de1f2f248b9</id>
<content type='text'>
Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>riscv: user: Statically build everything</title>
<updated>2025-04-22T14:18:50Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2025-04-22T14:18:50Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/farga/commit/?id=74caba366d3fafd21910f3d95dbc2819267c52bc'/>
<id>urn:sha1:74caba366d3fafd21910f3d95dbc2819267c52bc</id>
<content type='text'>
This way these binaries can be executed from virtually anywhere, like my
minimalistic busybox setup I have for QEMU which doesn't even have the
`ld-` files required to run a C program.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>riscv: user: Update constants for Zicntr and Zihpm</title>
<updated>2025-04-22T14:15:50Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2025-04-22T14:15:50Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/farga/commit/?id=b2f8b8c1918b4523ee45dfc3f13a609fa18c0696'/>
<id>urn:sha1:b2f8b8c1918b4523ee45dfc3f13a609fa18c0696</id>
<content type='text'>
A patch from me has finally been merged into the Linux Kernel, and the
values for these constants have been increased by one due to the
inclusion of another patch.

Moreover, the Zicsr and Zifencei extensions have not been exported yet,
but they might not make sense to include them after all.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>supervisor: Add an example on the HSM extension</title>
<updated>2024-12-05T15:02:51Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-12-05T14:34:33Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/farga/commit/?id=76169cd214e4830a523c8c2ee7bbddc04b4253df'/>
<id>urn:sha1:76169cd214e4830a523c8c2ee7bbddc04b4253df</id>
<content type='text'>
The HSM extension from SBI v2.0 allows a supervisor to manage the state
of harts on the system. Moreover, it also guarantees that only one hart
makes it into the booting stages of the supervisor, and it's up to the
supervisor to wake up the rest through the HSM extension.

I have added an example which showcases this extension in different
ways, and it finally shuts down the machine.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>Remove old test code</title>
<updated>2024-12-05T15:02:51Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-12-04T20:42:37Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/farga/commit/?id=f463d544793ff83efd8b95d0bce5ec80fd8170f3'/>
<id>urn:sha1:f463d544793ff83efd8b95d0bce5ec80fd8170f3</id>
<content type='text'>
There is some code that I had there after messing with some of the
topics on Uros' blog (https://popovicu.com/), but that became irrelevant
after working on some other projects (e.g. fbos) or on other examples.

This commit also brings about a major overhaul on the structure of the
project. Hopefully it's now at a more ready state.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>linux: Add a program to test the hwprobe syscall</title>
<updated>2024-12-05T15:02:50Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-11-20T15:40:31Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/farga/commit/?id=bab3fdfd61b3488e1879bc3e53ac17f41d2e8b67'/>
<id>urn:sha1:bab3fdfd61b3488e1879bc3e53ac17f41d2e8b67</id>
<content type='text'>
RISC-V on Linux has a hwprobe system call which allows you to discover
what is supported by the running kernel.

Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>usr: Add a strcmp example</title>
<updated>2024-12-05T15:02:50Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-11-20T15:30:44Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/farga/commit/?id=9a3324f50679177401eecdedcf80f25ddcdd9042'/>
<id>urn:sha1:9a3324f50679177401eecdedcf80f25ddcdd9042</id>
<content type='text'>
Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
<entry>
<title>usr: Do not force a CROSS_COMPILE value</title>
<updated>2024-12-05T15:02:50Z</updated>
<author>
<name>Miquel Sabaté Solà</name>
<email>mikisabate@gmail.com</email>
</author>
<published>2024-11-20T15:29:59Z</published>
<link rel='alternate' type='text/html' href='https://git.mssola.com/os/farga/commit/?id=d15d2ecae1faaaaed3251f64fa998b8d325c5c92'/>
<id>urn:sha1:d15d2ecae1faaaaed3251f64fa998b8d325c5c92</id>
<content type='text'>
Signed-off-by: Miquel Sabaté Solà &lt;mikisabate@gmail.com&gt;
</content>
</entry>
</feed>
