<feed xmlns='http://www.w3.org/2005/Atom'>
<title>opensbi.git/lib, branch v0.2</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/opensbi.git/atom/lib?h=v0.2</id>
<link rel='self' href='http://cgit.235523.xyz/opensbi.git/atom/lib?h=v0.2'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/'/>
<updated>2019-02-20T06:32:40Z</updated>
<entry>
<title>include: Add PRILX define to help print unsigned long</title>
<updated>2019-02-20T06:32:40Z</updated>
<author>
<name>Anup Patel</name>
<email>anup.patel@wdc.com</email>
</author>
<published>2019-02-19T12:36:46Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=ce6189f7a5adbf6ac88b95f78a6d5e9b5481faf9'/>
<id>urn:sha1:ce6189f7a5adbf6ac88b95f78a6d5e9b5481faf9</id>
<content type='text'>
The unsigned long is always machine word size. This means it is
4 bytes on 32bit system and 8 bytes on 64bit system.

This patch adds PRILX define for sbi_printf() which will help us
print unsigned long without worrying whether it is 32bit or 64bit
system.

Signed-off-by: Anup Patel &lt;anup.patel@wdc.com&gt;
</content>
</entry>
<entry>
<title>lib: Fix mask shift in sbi_ipi_send_many()</title>
<updated>2019-02-18T13:09:02Z</updated>
<author>
<name>Anup Patel</name>
<email>anup.patel@wdc.com</email>
</author>
<published>2019-02-18T13:09:02Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=4e774f5470d567c33b620fff7b37622174f8949a'/>
<id>urn:sha1:4e774f5470d567c33b620fff7b37622174f8949a</id>
<content type='text'>
The mask shift in for-loop of sbi_ipi_send_many() is
broken with commit 918c1354b75c74b62f67c4e929551d643f035443
("lib: Improve delivery of SBI_IPI_EVENT_HALT")

This patch fix it.

Signed-off-by: Anup Patel &lt;anup.patel@wdc.com&gt;
</content>
</entry>
<entry>
<title>lib: Fix small typo on sbi_ipi.c</title>
<updated>2019-02-18T03:51:58Z</updated>
<author>
<name>Nick Kossifidis</name>
<email>mickflemm@gmail.com</email>
</author>
<published>2019-02-17T21:43:41Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=148423d14132df71a0ed26b34c7f81a180cb1308'/>
<id>urn:sha1:148423d14132df71a0ed26b34c7f81a180cb1308</id>
<content type='text'>
</content>
</entry>
<entry>
<title>lib: Improve delivery of SBI_IPI_EVENT_HALT</title>
<updated>2019-02-18T03:51:58Z</updated>
<author>
<name>Nick Kossifidis</name>
<email>mickflemm@gmail.com</email>
</author>
<published>2019-02-17T07:00:20Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=918c1354b75c74b62f67c4e929551d643f035443'/>
<id>urn:sha1:918c1354b75c74b62f67c4e929551d643f035443</id>
<content type='text'>
When sbi_ipi_send_many gets called with the current hartid
included on pmask (or when pmask is NULL), and we send
a HALT event, since the for loop works sequentially over
all hartids on the mask, we may send a HALT event to the
current hart before the loop finishes. So we will halt
the current hart before it can deliver a HALT IPI to the
rest and some harts will remain active.

Make sure we send an IPI to the current hart after we've
finished with everybody else.

Signed-off-by: Nick Kossifidis &lt;mick@ics.forth.gr&gt;
</content>
</entry>
<entry>
<title>lib: Send IPI for all harts to hang on system shutdown</title>
<updated>2019-02-18T03:51:58Z</updated>
<author>
<name>Nick Kossifidis</name>
<email>mickflemm@gmail.com</email>
</author>
<published>2019-02-17T01:52:44Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=b44878b773698f08b4c08b9e43e26917950a7618'/>
<id>urn:sha1:b44878b773698f08b4c08b9e43e26917950a7618</id>
<content type='text'>
In case the platform specific method for shutting down
the system fails (or is not implemented), at least make
sure that all harts hang instead of just the current hart.

Signed-off-by: Nick Kossifidis &lt;mick@ics.forth.gr&gt;
</content>
</entry>
<entry>
<title>lib: Use CSR_&lt;FOO&gt; instead of &lt;foo&gt; for csr_*()</title>
<updated>2019-02-14T04:01:18Z</updated>
<author>
<name>Atish Patra</name>
<email>atish.patra@wdc.com</email>
</author>
<published>2019-02-13T02:32:06Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=70a474d2c24dc3e0c8841e6ef5cc96797deadbf5'/>
<id>urn:sha1:70a474d2c24dc3e0c8841e6ef5cc96797deadbf5</id>
<content type='text'>
Some older toolchains may not have all the csr's defined. Update all
the csr functions to use the CSR_ #define values instead of the
toolchain defined values.

Suggested-by: Olof Johansson &lt;olof@lixom.net&gt;
Signed-off-by: Atish Patra &lt;atish.patra@wdc.com&gt;
</content>
</entry>
<entry>
<title>sbi_emulate_csr: Shift sbi_timer_value directly</title>
<updated>2019-02-08T03:48:46Z</updated>
<author>
<name>Alistair Francis</name>
<email>alistair.francis@wdc.com</email>
</author>
<published>2019-01-18T19:36:32Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=f4cf6da7ff2d97f74129a6f4f333991af596111e'/>
<id>urn:sha1:f4cf6da7ff2d97f74129a6f4f333991af596111e</id>
<content type='text'>
csr_val is a tartget length based variable, so on 32-bit devices it's
only 32-bits. To avoid clearing the entire register perform both steps
in a single line.

Signed-off-by: Alistair Francis &lt;alistair.francis@wdc.com&gt;
</content>
</entry>
<entry>
<title>sbi_ecall: Fix logical OR to be bitwise OR</title>
<updated>2019-02-08T03:48:46Z</updated>
<author>
<name>Alistair Francis</name>
<email>alistair.francis@wdc.com</email>
</author>
<published>2019-02-06T22:02:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=b4c72deba98b6398a4c44198553093670d226e2d'/>
<id>urn:sha1:b4c72deba98b6398a4c44198553093670d226e2d</id>
<content type='text'>
Signed-off-by: Alistair Francis &lt;alistair.francis@wdc.com&gt;
</content>
</entry>
<entry>
<title>riscv_asm.h: Use CSR_&lt;FOO&gt; instead of &lt;foo&gt; for csr_read()</title>
<updated>2019-02-05T13:23:09Z</updated>
<author>
<name>Olof Johansson</name>
<email>olof@lixom.net</email>
</author>
<published>2019-02-04T02:49:20Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=c0addfe751e51376a73df71336ce11826e68c939'/>
<id>urn:sha1:c0addfe751e51376a73df71336ce11826e68c939</id>
<content type='text'>
Some toolchains might not have all the CSRs available (as seen with
GCC 7.2). So, instead use the defined CSR_ values.

Signed-off-by: Olof Johansson &lt;olof@lixom.net&gt;
</content>
</entry>
<entry>
<title>include: Add separate header for OpenSBI version</title>
<updated>2019-01-25T19:05:49Z</updated>
<author>
<name>Anup Patel</name>
<email>anup.patel@wdc.com</email>
</author>
<published>2019-01-25T05:49:22Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=bd98d772983df829b78b7ba16bc2dce559c93fbc'/>
<id>urn:sha1:bd98d772983df829b78b7ba16bc2dce559c93fbc</id>
<content type='text'>
Currently, the OpenSBI version is in top-level Makefile so
firmware linking to OpenSBI static library have no-way to
know OpenSBI version.

This patch moves OpenSBI version from top-level Makefile to
sbi/sbi_version.h header which provides OPENSBI_VERSION_MAJOR
and OPENSBI_VERSION_MINOR defines.

NOTE: the SBI spec (or SBI ecall interface) version is
different. The SBI spec version is provided by functions
sbi_ecall_version_major() and sbi_ecall_version_minor().

Signed-off-by: Anup Patel &lt;anup.patel@wdc.com&gt;
</content>
</entry>
</feed>
