Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
hit-xby
OSKernel2024-yeah
Commits
e3920b10
Commit
e3920b10
authored
6 months ago
by
只敲代码不玩耍,聪明baka也变傻ᗜˬᗜ
Browse files
Options
Download
Patches
Plain Diff
fix code quality
parent
2034105e
master
feat/docs
feat/docs-vendored
feat/ext4-filesystem
feat/ext4-filesystem-vendored
feat/lazy-symbol-table-build
feat/lazy-symbol-table-build-vendored
feat/paging-virtual-memory
feat/paging-virtual-memory-vendored
feat/setup-trap-control-flow
feat/setup-trap-control-flow-vendored
feat/test-final
feat/test-final-vendored
master-vendored
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
crates/address/src/physical_address_range.rs
+4
-1
crates/address/src/physical_address_range.rs
crates/address/src/virtual_address_range.rs
+4
-1
crates/address/src/virtual_address_range.rs
with
8 additions
and
2 deletions
+8
-2
crates/address/src/physical_address_range.rs
+
4
−
1
View file @
e3920b10
...
...
@@ -6,6 +6,9 @@ impl_range_display!(PhysicalAddressRange);
impl
PhysicalAddressRange
{
pub
fn
to_high_virtual
(
&
self
)
->
VirtualAddressRange
{
VirtualAddressRange
::
from_start_end
(
self
.start
()
.to_high_virtual
(),
self
.end
()
.to_high_virtual
())
VirtualAddressRange
::
from_start_end
(
self
.start
()
.to_high_virtual
(),
self
.end
()
.to_high_virtual
(),
)
}
}
This diff is collapsed.
Click to expand it.
crates/address/src/virtual_address_range.rs
+
4
−
1
View file @
e3920b10
...
...
@@ -8,7 +8,10 @@ impl_range_display!(VirtualAddressRange);
impl
VirtualAddressRange
{
pub
fn
to_low_physical
(
&
self
)
->
PhysicalAddressRange
{
PhysicalAddressRange
::
from_start_end
(
self
.start
()
.to_low_physical
(),
self
.end
()
.to_low_physical
())
PhysicalAddressRange
::
from_start_end
(
self
.start
()
.to_low_physical
(),
self
.end
()
.to_low_physical
(),
)
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets