mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-27 12:04:27 +01:00
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user