This commit is contained in:
Ciro Santilli
2022-03-10 22:37:51 +00:00
parent a5be602793
commit b43b3b45f3
9 changed files with 171 additions and 73 deletions

View File

@@ -462,7 +462,7 @@ pre{ white-space:pre }
<p>glibc has a check for kernel version, likely obtained from the <code>uname</code> syscall, and if the kernel is not new enough, it quits.</p>
</div>
<div class="paragraph">
<p>Both gem5 and QEMU however allow setting the reported <code>uname</code> version from the command line, which we do to always match our toolchain.</p>
<p>Both gem5 and QEMU however allow setting the reported <code>uname</code> version from the command line for <a href="user-mode-simulation.html">User mode simulation</a>, which we do to always match our toolchain.</p>
</div>
<div class="paragraph">
<p>QEMU by default copies the host <code>uname</code> value, but we always override it in our scripts.</p>
@@ -479,7 +479,7 @@ pre{ white-space:pre }
<p>Source: <a href="https://github.com/cirosantilli/linux-kernel-module-cheat/blob/master/userland/posix/uname.c">userland/posix/uname.c</a>.</p>
</div>
<div class="paragraph">
<p>The QEMU source that does this is at: <a href="https://github.com/qemu/qemu/blob/v3.1.0/linux-user/syscall.c#L8931" class="bare">https://github.com/qemu/qemu/blob/v3.1.0/linux-user/syscall.c#L8931</a></p>
<p>The QEMU source that does this is at: <a href="https://github.com/qemu/qemu/blob/v3.1.0/linux-user/syscall.c#L8931" class="bare">https://github.com/qemu/qemu/blob/v3.1.0/linux-user/syscall.c#L8931</a> The default ID is just hardcoded on the source.</p>
</div>
<div class="paragraph">
<p>Bibliography:</p>
@@ -497,9 +497,6 @@ pre{ white-space:pre }
</li>
</ul>
</div>
<div class="paragraph">
<p>The ID is just hardcoded on the source:</p>
</div>
<div class="ulist">
<ul>
</ul>