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
4ff8b596
Commit
4ff8b596
authored
Feb 16, 2020
by
Stefan Lankes
Browse files
remoce compiler warnings
parent
8022cbc4
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/arch/x86_64/paging.rs
View file @
4ff8b596
...
...
@@ -171,7 +171,7 @@ impl<S: PageSize> Page<S> {
/// Although we could make this check depend on the actual linear address width from the CPU,
/// any extension above 48-bit would require a new page table level, which we don't implement.
fn
is_valid_address
(
virtual_address
:
usize
)
->
bool
{
(
virtual_address
<
0x8000_0000_0000
||
virtual_address
>=
0xFFFF_8000_0000_0000
)
virtual_address
<
0x8000_0000_0000
||
virtual_address
>=
0xFFFF_8000_0000_0000
}
/// Returns a Page including the given virtual address.
...
...
src/arch/x86_64/serial.rs
View file @
4ff8b596
...
...
@@ -42,7 +42,7 @@ impl SerialPort {
}
fn
is_transmitting
(
&
self
)
->
bool
{
(
self
.read_from_register
(
UART_LSR
)
&
UART_LSR_EMPTY_TRANSMITTER_HOLDING_REGISTER
==
0
)
self
.read_from_register
(
UART_LSR
)
&
UART_LSR_EMPTY_TRANSMITTER_HOLDING_REGISTER
==
0
}
fn
write_to_register
(
&
self
,
register
:
u16
,
byte
:
u8
)
{
...
...
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