Skip to content

Commit 095e56c

Browse files
committed
feat(paging): make Page and PhysFrame repr(Rust)
1 parent 97c02c7 commit 095e56c

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

src/structures/paging/frame.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ use core::ops::{Add, AddAssign, Sub, SubAssign};
99

1010
/// A physical memory frame.
1111
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
12-
#[repr(C)]
1312
pub struct PhysFrame<S: PageSize = Size4KiB> {
1413
// TODO: Make private when our minimum supported stable Rust version is 1.61
1514
pub(crate) start_address: PhysAddr,

src/structures/paging/page.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ impl Sealed for super::Size1GiB {}
6363

6464
/// A virtual memory page.
6565
#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
66-
#[repr(C)]
6766
pub struct Page<S: PageSize = Size4KiB> {
6867
start_address: VirtAddr,
6968
size: PhantomData<S>,

0 commit comments

Comments
 (0)