Skip to content

using compiler builtins to realize basic operations (e.g. memcpy) - #115

Merged
bors[bot] merged 8 commits into
hermit-os:masterfrom
stlankes:memcpy
Oct 27, 2020
Merged

bors[bot] merged 8 commits into
hermit-os:masterfrom
stlankes:memcpy

Conversation

@stlankes

Copy link
Copy Markdown
Contributor

No description provided.

@stlankes

Copy link
Copy Markdown
Contributor Author

I enable the nightly tests because rust-lang/rust#77610 is merged to the nightly compiler.

@stlankes

Copy link
Copy Markdown
Contributor Author

bors try

bors Bot added a commit that referenced this pull request Oct 27, 2020
@bors

bors Bot commented Oct 27, 2020

Copy link
Copy Markdown
Contributor

@jbreitbart jbreitbart left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file changes themselves look fine, but I am wondering if / how this changes the performance. Have you measured it?

According to rust-lang/compiler-builtins#339 the builtins are not (yet?) optimized, however there was a PR already merged for x86_64.

@stlankes

Copy link
Copy Markdown
Contributor Author

Do I promise better performance? :-) This is at least better than my implementation.

I am separating the operations between user- and kernel space. This will be the next PR in RustyHermit and is more critical for the performance.

@stlankes

Copy link
Copy Markdown
Contributor Author

bors r+

@bors

bors Bot commented Oct 27, 2020

Copy link
Copy Markdown
Contributor

@bors
bors Bot merged commit 62b024a into hermit-os:master Oct 27, 2020
@stlankes

Copy link
Copy Markdown
Contributor Author

@jbreitbart Maybe rust-lang/compiler-builtins#365 is interesting for you. I try to support it in the next pull request.

simonschoening pushed a commit to simonschoening/libhermit-rs that referenced this pull request Aug 26, 2021
115: using compiler builtins to realize basic operations (e.g. memcpy) r=stlankes a=stlankes



Co-authored-by: Stefan Lankes <slankes@eonerc.rwth-aachen.de>
artyomevgrafov pushed a commit to artyomevgrafov/kernel that referenced this pull request Nov 19, 2026
115: Bump x86 from 0.48.0 to 0.49.0 r=mkroening a=dependabot[bot]

Bumps [x86](https://github.com/gz/rust-x86) from 0.48.0 to 0.49.0.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/gz/rust-x86/blob/master/CHANGELOG.md">x86's changelog</a>.</em></p>
<blockquote>
<h2>[0.49.0] - 2022-06-03</h2>
<ul>
<li>Removed <code>x86::its64::segmentation::fs_deref()</code>: Users should replace calls to
<code>fs_deref</code> with the more general <code>x86::bits64::segmentation::fs_deref!</code> macro.
<code>fs_deref!(0)</code> is equivalent to <code>fs_deref()</code>.</li>
<li>Removed <code>x86::bits64::segmentation::gs_deref()</code>: Users should replace calls to
<code>gs_deref</code> with the more general <code>x86::bits64::segmentation::gs_deref!</code> macro.
<code>fs_deref!(0)</code> is equivalent to <code>fs_deref()</code>.</li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/gz/rust-x86/commit/d8cbc9e028bb90f86814bae82275e81104e9d167"><code>d8cbc9e</code></a> Macros for fs/gs deref.</li>
<li>See full diff in <a href="https://github.com/gz/rust-x86/compare/0.48.0...0.49.0">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=x86&package-manager=cargo&previous-version=0.48.0&new-version=0.49.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR 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>

116: Bump goblin from 0.5.1 to 0.5.2 r=mkroening a=dependabot[bot]

Bumps [goblin](https://github.com/m4b/goblin) from 0.5.1 to 0.5.2.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/m4b/goblin/blob/master/CHANGELOG.md">goblin's changelog</a>.</em></p>
<blockquote>
<h2>[0.5.2] - 2022-6-5</h2>
<h3>Fixed</h3>
<p>elf: fix arithmetic overflows in <code>file_range()</code> and <code>vm_range()</code>, thanks <a href="https://github.com/alessandron"><code>`@​alessandron</code></a>:` <a href="https://github-redirect.dependabot.com/m4b/goblin/pull/306">m4b/goblin#306</a>
pe: fix string table containing empty strings, thanks <a href="https://github.com/track-5"><code>`@​track-5</code></a>:` <a href="https://github-redirect.dependabot.com/m4b/goblin/pull/310">m4b/goblin#310</a>
pe: remove check on debug directory size, thanks <a href="https://github.com/lzybkr"><code>`@​lzybkr</code></a>:` <a href="https://github-redirect.dependabot.com/m4b/goblin/pull/313">m4b/goblin#313</a></p>
<h3>Added</h3>
<p>elf: expose more of programheader impl regardless of alloc feature flag, thanks <a href="https://github.com/dancrossnyc"><code>`@​dancrossnyc</code></a>:` <a href="https://github-redirect.dependabot.com/m4b/goblin/pull/308">m4b/goblin#308</a>
mach.parse: Handle DyldExportsTrie, thanks <a href="https://github.com/apalm"><code>`@​apalm</code></a>:` <a href="https://github-redirect.dependabot.com/m4b/goblin/pull/303">m4b/goblin#303</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a href="https://github.com/m4b/goblin/commits/0.5.2">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=goblin&package-manager=cargo&previous-version=0.5.1&new-version=0.5.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

You can trigger a rebase of this PR 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants