User:Alexander/Combining Bran's Kernel Development and the Barebones Tutorials: Difference between revisions
Content deleted Content added
m Bot: Replace deprecated source tag with syntaxhighlight |
m Bot: Replace deprecated source tag with syntaxhighlight |
||
Line 67:
</syntaxhighlight>
To preserve power when waiting with the <code>timer_wait()</code> function you can replace:
<
while(timer_ticks < eticks);
</syntaxhighlight>
with:
<
while(timer_ticks < eticks) {
__asm__ __volatile__("hlt");
}
</syntaxhighlight>
|