* Two more uses for the pause instruction I apparently forgot to commit
* Minor style cleanup in the conversion factor calculation git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23217 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
e812c77e4a
commit
1df628fe2f
@ -247,7 +247,7 @@ spin(bigtime_t microseconds)
|
||||
bigtime_t time = system_time();
|
||||
|
||||
while ((system_time() - time) < microseconds)
|
||||
;
|
||||
asm volatile ("pause;");
|
||||
}
|
||||
|
||||
|
||||
|
@ -43,7 +43,7 @@ serial_putc(char c)
|
||||
{
|
||||
// wait until the transmitter empty bit is set
|
||||
while ((in8(sSerialBasePort + SERIAL_LINE_STATUS) & 0x20) == 0)
|
||||
;
|
||||
asm volatile ("pause;");
|
||||
|
||||
out8(c, sSerialBasePort + SERIAL_TRANSMIT_BUFFER);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user