Skip to content

Commit

Permalink
removing deprecated functions
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed Jan 23, 2021
1 parent 417bacf commit 36fb717
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/arch/x86_64/serial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 36fb717

Please # to comment.