></pre>
<p>The <code>context_switch</code> function stores and restores CPU registers,
and the <code>ArchContext</code> structure is an architecture-specific context structure.</p>
<h1 id="disable-preemption"><a class="header" href="#disable-preemption">Disable Preemption</a></h1>
<p>In <a href="https://github.com/tier4/awkernel/blob/main/awkernel_async_lib/Cargo.toml">awkernel_async_lib/Cargo.toml</a>, there is the <code>no_preempt</code> feature to disable preemption.</p>
<pre><code class="language-toml">