Commit c649f4cb authored by Stefan Lankes's avatar Stefan Lankes Committed by Stefan Lankes
Browse files

removing deprecated functions

parent b1e78a87
......@@ -5,7 +5,7 @@
// http://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except according to those terms.
use core::sync::atomic::spin_loop_hint;
use core::hint::spin_loop;
use x86::io::*;
const UART_TX: u16 = 0;
......@@ -47,7 +47,7 @@ impl SerialPort {
fn write_to_register(&self, register: u16, byte: u8) {
while self.is_transmitting() {
spin_loop_hint();
spin_loop();
}
unsafe {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment