Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ACS
Public
HermitCore
rusty-loader
Commits
c649f4cb
Commit
c649f4cb
authored
Jan 23, 2021
by
Stefan Lankes
Committed by
Stefan Lankes
Jan 23, 2021
Browse files
removing deprecated functions
parent
b1e78a87
Changes
1
Show whitespace changes
Inline
Side-by-side
src/arch/x86_64/serial.rs
View file @
c649f4cb
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
// http://opensource.org/licenses/MIT>, at your option. This file may not be
// http://opensource.org/licenses/MIT>, at your option. This file may not be
// copied, modified, or distributed except according to those terms.
// copied, modified, or distributed except according to those terms.
use
core
::
sync
::
atomic
::
spin_loop
_hint
;
use
core
::
hint
::
spin_loop
;
use
x86
::
io
::
*
;
use
x86
::
io
::
*
;
const
UART_TX
:
u16
=
0
;
const
UART_TX
:
u16
=
0
;
...
@@ -47,7 +47,7 @@ impl SerialPort {
...
@@ -47,7 +47,7 @@ impl SerialPort {
fn
write_to_register
(
&
self
,
register
:
u16
,
byte
:
u8
)
{
fn
write_to_register
(
&
self
,
register
:
u16
,
byte
:
u8
)
{
while
self
.is_transmitting
()
{
while
self
.is_transmitting
()
{
spin_loop
_hint
();
spin_loop
();
}
}
unsafe
{
unsafe
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment