mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-17 06:47:49 +00:00
Remove unused feature and import
This commit is contained in:
@@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
#![feature(no_std, lang_items)]
|
#![feature(no_std, lang_items)]
|
||||||
#![feature(const_fn, unique, core_str_ext, iter_cmp, optin_builtin_traits)]
|
#![feature(const_fn, unique, core_str_ext, iter_cmp, optin_builtin_traits)]
|
||||||
#![feature(core_intrinsics, core_slice_ext)]
|
#![feature(core_slice_ext)]
|
||||||
#![no_std]
|
#![no_std]
|
||||||
|
|
||||||
extern crate rlibc;
|
extern crate rlibc;
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
use super::{VirtualAddress, PhysicalAddress, Page, PAGE_SIZE, ENTRY_COUNT};
|
use super::{VirtualAddress, PhysicalAddress, Page, PAGE_SIZE, ENTRY_COUNT};
|
||||||
use super::table::P4;
|
use super::table::P4;
|
||||||
use super::entry::{PRESENT, HUGE_PAGE};
|
use super::entry::HUGE_PAGE;
|
||||||
use memory::Frame;
|
use memory::Frame;
|
||||||
|
|
||||||
pub fn translate(virtual_address: VirtualAddress) -> Option<PhysicalAddress> {
|
pub fn translate(virtual_address: VirtualAddress) -> Option<PhysicalAddress> {
|
||||||
|
|||||||
Reference in New Issue
Block a user