This project is mirrored from https://github.com/hermitcore/libhermit-rs.git.
Pull mirroring updated .
- 17 Aug, 2021 16 commits
-
-
Stefan Lankes authored
-
This will help with testing (rusty-loader) since we currently can't go very far in the kernel. However if we reach this point, then that is already useful for testing rusty-loader in CI. This requires passing the `-semihosting` option to QEMU. If this is not done or real hardware is used, a spinloop will be entered.
-
Signed-off-by:
Jonathan Schwender <schwenderjonathan@gmail.com>
-
- This currently relies on the fact that the bootloader only initialized 1 CPU (0) - We enter boot_processor_main() and go up to the loop {} - the loop {} prevents link time errors from stuff that is not working yet. Signed-off-by:
Jonathan Schwender <schwenderjonathan@gmail.com>
-
- Since the feature is only used in aarch64 subsystem no need to additionally check for aarch64 target Signed-off-by:
Jonathan Schwender <schwenderjonathan@gmail.com>
-
- Initialize the stack and exception table in start.rs by using the asm! macro. Branch to pre_init (no need to link, so I replaced `bl` with `b`). Pre_init only does a println!() for now. Thi will probably not work as of this commit, but the next one will add support for printing via qemu special address Signed-off-by:
Jonathan Schwender <schwenderjonathan@gmail.com>
-
needed so that start.rs is included Also remove pre_init from kernel mod and use pre_init in start.rs instead Signed-off-by:
Jonathan Schwender <schwenderjonathan@gmail.com>
-
I'm guessing this was an experiment or a leftover from the C implementation. Removing for now - This can still be done later via asm or globalasm. Signed-off-by:
Jonathan Schwender <schwenderjonathan@gmail.com>
-
Stefan Lankes authored
-
Stefan Lankes authored
-
Stefan Lankes authored
-
Stefan Lankes authored
- remove only compiler errors - kernel doesn't work
-
Stefan Lankes authored
-
Stefan Lankes authored
- remove only compiler errors - kernel doesn't work
-
Stefan Lankes authored
- remove only compiler errors - kernel doesn't work
-
Stefan Lankes authored
-
- 13 Aug, 2021 2 commits
-
-
bors[bot] authored
261: Bump bitflags from 1.2.1 to 1.3.1 r=stlankes a=dependabot[bot] Bumps [bitflags](https://github.com/bitflags/bitflags) from 1.2.1 to 1.3.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/bitflags/bitflags/releases">bitflags's releases</a>.</em></p> <blockquote> <h2>1.3.1</h2> <ul> <li>Revert unconditional <code>#[repr(transparent)]</code> (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/252">#252</a>)</li> </ul> <p><a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/252">#252</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/252">bitflags/bitflags#252</a></p> <h2>1.3.0 (yanked)</h2> <ul> <li> <p>Add <code>#[repr(transparent)]</code> (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/187">#187</a>)</p> </li> <li> <p>End <code>empty</code> doc comment with full stop (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/202">#202</a>)</p> </li> <li> <p>Fix typo in crate root docs (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/206">#206</a>)</p> </li> <li> <p>Document from_bits_unchecked unsafety (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/207">#207</a>)</p> </li> <li> <p>Let <code>is_all</code> ignore extra bits (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/211">#211</a>)</p> </li> <li> <p>Allows empty flag definition (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/225">#225</a>)</p> </li> <li> <p>Making crate accessible from std (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/227">#227</a>)</p> </li> <li> <p>Make <code>from_bits</code> a const fn (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/229">#229</a>)</p> </li> <li> <p>Allow multiple bitflags structs in one macro invocation (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/235">#235</a>)</p> </li> <li> <p>Add named functions to perform set operations (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/244">#244</a>)</p> </li> <li> <p>Fix typos in method docs (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/245">#245</a>)</p> </li> <li> <p>Modernization of the <code>bitflags</code> macro to take advantage of newer features and 2018 idioms (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/246">#246</a>)</p> </li> <li> <p>Fix regression (in an unreleased feature) and simplify tests (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/247">#247</a>)</p> </li> <li> <p>Use <code>Self</code> and fix bug when overriding <code>stringify!</code> (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/249">#249</a>)</p> </li> </ul> <p><a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/187">#187</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/187">bitflags/bitflags#187</a> <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/202">#202</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/202">bitflags/bitflags#202</a> <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/206">#206</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/206">bitflags/bitflags#206</a> <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/207">#207</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/207">bitflags/bitflags#207</a> <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/211">#211</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/211">bitflags/bitflags#211</a> <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/225">#225</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/225">bitflags/bitflags#225</a> <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/227">#227</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/227">bitflags/bitflags#227</a> <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/229">#229</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/229">bitflags/bitflags#229</a> <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/235">#235</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/235">bitflags/bitflags#235</a> <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/244">#244</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/244">bitflags/bitflags#244</a> <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/245">#245</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/245">bitflags/bitflags#245</a> <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/246">#246</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/246">bitflags/bitflags#246</a> <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/247">#247</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/247">bitflags/bitflags#247</a> <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/249">#249</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/249">bitflags/bitflags#249</a></p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md">bitflags's changelog</a>.</em></p> <blockquote> <h1>1.3.1</h1> <ul> <li>Revert unconditional <code>#[repr(transparent)]</code> (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/252">#252</a>)</li> </ul> <p><a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/252">#252</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/252">bitflags/bitflags#252</a></p> <h1>1.3.0 (yanked)</h1> <ul> <li> <p>Add <code>#[repr(transparent)]</code> (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/187">#187</a>)</p> </li> <li> <p>End <code>empty</code> doc comment with full stop (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/202">#202</a>)</p> </li> <li> <p>Fix typo in crate root docs (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/206">#206</a>)</p> </li> <li> <p>Document from_bits_unchecked unsafety (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/207">#207</a>)</p> </li> <li> <p>Let <code>is_all</code> ignore extra bits (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/211">#211</a>)</p> </li> <li> <p>Allows empty flag definition (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/225">#225</a>)</p> </li> <li> <p>Making crate accessible from std (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/227">#227</a>)</p> </li> <li> <p>Make <code>from_bits</code> a const fn (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/229">#229</a>)</p> </li> <li> <p>Allow multiple bitflags structs in one macro invocation (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/235">#235</a>)</p> </li> <li> <p>Add named functions to perform set operations (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/244">#244</a>)</p> </li> <li> <p>Fix typos in method docs (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/245">#245</a>)</p> </li> <li> <p>Modernization of the <code>bitflags</code> macro to take advantage of newer features and 2018 idioms (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/246">#246</a>)</p> </li> <li> <p>Fix regression (in an unreleased feature) and simplify tests (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/247">#247</a>)</p> </li> <li> <p>Use <code>Self</code> and fix bug when overriding <code>stringify!</code> (<a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/249">#249</a>)</p> </li> </ul> <p><a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/187">#187</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/187">bitflags/bitflags#187</a> <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/202">#202</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/202">bitflags/bitflags#202</a> <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/206">#206</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/206">bitflags/bitflags#206</a> <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/207">#207</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/207">bitflags/bitflags#207</a> <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/211">#211</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/211">bitflags/bitflags#211</a> <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/225">#225</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/225">bitflags/bitflags#225</a> <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/227">#227</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/227">bitflags/bitflags#227</a> <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/229">#229</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/229">bitflags/bitflags#229</a> <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/235">#235</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/235">bitflags/bitflags#235</a> <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/244">#244</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/244">bitflags/bitflags#244</a> <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/245">#245</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/245">bitflags/bitflags#245</a> <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/246">#246</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/246">bitflags/bitflags#246</a> <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/247">#247</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/247">bitflags/bitflags#247</a> <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/249">#249</a>: <a href="https://github-redirect.dependabot.com/bitflags/bitflags/pull/249">bitflags/bitflags#249</a></p> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/bitflags/bitflags/commit/b234906c233cf71fecc4fda0a0b484de6ade9ebf"><code>b234906</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/254">#254</a> from KodrAus/cargo/1.3.1</li> <li><a href="https://github.com/bitflags/bitflags/commit/b4dbed0e9c98d43dd75cc01f61b41bb656208f57"><code>b4dbed0</code></a> don't worry about stderr for non integer base types</li> <li><a href="https://github.com/bitflags/bitflags/commit/7b722c67512fa9cde9fa6046a8e3aa16680b2bb7"><code>7b722c6</code></a> prepare for 1.3.1 release</li> <li><a href="https://github.com/bitflags/bitflags/commit/186af851e3c1f711fc6b4e0a0512de24bd759378"><code>186af85</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/253">#253</a> from KodrAus/chore/test-organization</li> <li><a href="https://github.com/bitflags/bitflags/commit/64fe86ba51526f4a8cc9e6653eaa23ec5d3cd682"><code>64fe86b</code></a> add compile tests for common derives</li> <li><a href="https://github.com/bitflags/bitflags/commit/c2ab9bbc7130893a0bc00473880c274c1eaa6cfc"><code>c2ab9bb</code></a> add another test for custom base type</li> <li><a href="https://github.com/bitflags/bitflags/commit/70c479748df9d691a093b36c41d953c987fe1d98"><code>70c4797</code></a> reorganize crate tests</li> <li><a href="https://github.com/bitflags/bitflags/commit/06a232c28e3c858cf44541cc687fcf23aa9dce5d"><code>06a232c</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/252">#252</a> from taiki-e/transparent</li> <li><a href="https://github.com/bitflags/bitflags/commit/1536a2fdbe3dc3f37537e6f7c3492a6fc6c9c174"><code>1536a2f</code></a> Remove #[repr(transparent)]</li> <li><a href="https://github.com/bitflags/bitflags/commit/971cf37964ae50258f68f4207eaf43eb26cdab41"><code>971cf37</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/bitflags/bitflags/issues/250">#250</a> from KodrAus/cargo/1.3.0</li> <li>Additional commits viewable in <a href="https://github.com/bitflags/bitflags/compare/1.2.1...1.3.1">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores ) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - ``@dependabot` rebase` will rebase this PR - ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it - ``@dependabot` merge` will merge this PR after your CI passes on it - ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it - ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging - ``@dependabot` reopen` will reopen this PR if it is closed - ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
dependabot[bot] authored
Bumps [bitflags](https://github.com/bitflags/bitflags) from 1.2.1 to 1.3.1. - [Release notes](https://github.com/bitflags/bitflags/releases) - [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md) - [Commits](https://github.com/bitflags/bitflags/compare/1.2.1...1.3.1 ) --- updated-dependencies: - dependency-name: bitflags dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by:
dependabot[bot] <support@github.com>
-
- 10 Aug, 2021 1 commit
-
-
Stefan Lankes authored
-
- 09 Aug, 2021 2 commits
-
-
bors[bot] authored
259: Bump x86 from 0.40.0 to 0.41.0 r=mkroening a=stlankes - Bumps x86 from 0.40.0 to 0.41.0. - The new version breaks the interface and requires source code modifications. - see https://github.com/gz/rust-cpuid/blob/aaaa6e6fc07d04850f6119732b950d3a8383173b/CHANGELOG.md Co-authored-by:
Stefan Lankes <slankes@eonerc.rwth-aachen.de> Co-authored-by:
Stefan Lankes <stlankes@users.noreply.github.com>
-
Stefan Lankes authored
-
- 08 Aug, 2021 12 commits
-
-
bors[bot] authored
260: bump multiboot crate to 0.7 r=stlankes a=stlankes Co-authored-by:
Stefan Lankes <slankes@eonerc.rwth-aachen.de>
-
Stefan Lankes authored
-
Stefan Lankes authored
- Bumps x86 from 0.40.0 to 0.41.0. - The new version breaks the interface and requires source code modifications. - see https://github.com/gz/rust-cpuid/blob/aaaa6e6fc07d04850f6119732b950d3a8383173b/CHANGELOG.md
-
bors[bot] authored
256: Bump float-cmp from 0.8.0 to 0.9.0 r=stlankes a=dependabot[bot] Bumps [float-cmp](https://github.com/mikedilger/float-cmp) from 0.8.0 to 0.9.0. <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/mikedilger/float-cmp/commits">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores ) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting ``@dependabot` rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - ``@dependabot` rebase` will rebase this PR - ``@dependabot` recreate` will recreate this PR, overwriting any edits that have been made to it - ``@dependabot` merge` will merge this PR after your CI passes on it - ``@dependabot` squash and merge` will squash and merge this PR after your CI passes on it - ``@dependabot` cancel merge` will cancel a previously requested merge and block automerging - ``@dependabot` reopen` will reopen this PR if it is closed - ``@dependabot` close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - ``@dependabot` ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - ``@dependabot` ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - ``@dependabot` ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Co-authored-by:
dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Stefan Lankes authored
-
Stefan Lankes authored
-
Stefan Lankes authored
-
Stefan Lankes authored
- revise kernel interface, avoid the usage of Rust types
-
Martin Kröning authored
-
Stefan Lankes authored
-
Stefan Lankes authored
- only if the counter is zero, we have to enable the non-polling mode
-
Stefan Lankes authored
the new interface is required for hermitcore/rusty-hermit#117
-
- 07 Aug, 2021 4 commits
-
-
bors[bot] authored
258: kernel_function: Clear upper bits of register r=stlankes a=mkroening If the type in a register is smaller than the register, Rust assumes the upper bits in the register to be zero. For example, checking a `bool` might happen via `test edi, edi`, although the type only occupies `dil`. Co-authored-by:
Martin Kröning <m.kroening@hotmail.de>
-
Stefan Lankes authored
-
Stefan Lankes authored
-
Martin Kröning authored
If the type in a register is smaller than the register, Rust assumes the upper bits in the register to be zero. For example, checking a `bool` might happen via `test edi, edi`, although the type only occupies `dil`.
-
- 23 Jul, 2021 1 commit
-
-
dependabot[bot] authored
Bumps [float-cmp](https://github.com/mikedilger/float-cmp) from 0.8.0 to 0.9.0. - [Release notes](https://github.com/mikedilger/float-cmp/releases) - [Commits](https://github.com/mikedilger/float-cmp/commits ) --- updated-dependencies: - dependency-name: float-cmp dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by:
dependabot[bot] <support@github.com>
-
- 11 Jul, 2021 1 commit
-
-
bors[bot] authored
254: update dependencies / lockfile r=stlankes a=striezel * updating proc-macro2 v1.0.26 -> v1.0.27 * updating raw-cpuid v9.0.0 -> v9.1.1 * updating syn v1.0.72 -> v1.0.73 `proc-macro2` and `syn` should be painless, because these are only patch version updates. `raw-cpuid` should be no hassle, too, if it follows semver - and its readme says it does. :) Co-authored-by:
Dirk Stolle <striezel-dev@web.de>
-
- 10 Jul, 2021 1 commit
-
-
Dirk Stolle authored
* updating proc-macro2 v1.0.26 -> v1.0.27 * updating raw-cpuid v9.0.0 -> v9.1.1 * updating syn v1.0.72 -> v1.0.73
-