* 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:
Michael Lotz 2008-01-02 02:10:55 +00:00
parent e812c77e4a
commit 1df628fe2f
2 changed files with 7 additions and 7 deletions

View File

@ -247,7 +247,7 @@ spin(bigtime_t microseconds)
bigtime_t time = system_time();
while ((system_time() - time) < microseconds)
;
asm volatile ("pause;");
}

View File

@ -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);
}