mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Begin paging module
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
// limitations under the License.
|
||||
|
||||
#![feature(no_std, lang_items)]
|
||||
#![feature(const_fn, unique, core_str_ext, iter_cmp)]
|
||||
#![feature(const_fn, unique, core_str_ext, iter_cmp, optin_builtin_traits)]
|
||||
#![no_std]
|
||||
|
||||
extern crate rlibc;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
pub use self::area_frame_allocator::AreaFrameAllocator;
|
||||
|
||||
mod paging;
|
||||
mod area_frame_allocator;
|
||||
|
||||
pub const PAGE_SIZE: usize = 4096;
|
||||
|
||||
8
src/memory/paging/mod.rs
Normal file
8
src/memory/paging/mod.rs
Normal file
@@ -0,0 +1,8 @@
|
||||
/// The paging lock must be unique. It is required for all page table operations and thus
|
||||
/// guarantees exclusive page table access.
|
||||
pub struct Lock {
|
||||
_private: (),
|
||||
}
|
||||
|
||||
impl !Send for Lock {}
|
||||
impl !Sync for Lock {}
|
||||
Reference in New Issue
Block a user