Don't use super

pull/15/head
Andre Richter 6 years ago
parent 14022d69c3
commit c21c46b362
No known key found for this signature in database
GPG Key ID: 2116C1AB102F615E

@ -177,10 +177,10 @@ pub unsafe fn init() {
// Finally, fill the single LVL3 table (4 KiB granule). Differentiate
// between code+RO and RW pages.
let (ro_start_addr, ro_end_addr) = super::get_ro_start_end();
let (ro_start_addr, ro_end_addr) = crate::memory::get_ro_start_end();
let ro_first_page_index = ro_start_addr / super::PAGESIZE;
let ro_last_page_index = ro_end_addr / super::PAGESIZE;
let ro_first_page_index = ro_start_addr / crate::memory::PAGESIZE;
let ro_last_page_index = ro_end_addr / crate::memory::PAGESIZE;
let common = STAGE1_DESCRIPTOR::VALID::True
+ STAGE1_DESCRIPTOR::TYPE::Table

@ -36,7 +36,7 @@ pub struct BumpAllocator {
unsafe impl Alloc for BumpAllocator {
unsafe fn alloc(&mut self, layout: Layout) -> Result<NonNull<u8>, AllocErr> {
let start = super::aligned_addr_unchecked(self.next, layout.align());
let start = crate::memory::aligned_addr_unchecked(self.next, layout.align());
let end = start + layout.size();
if end <= self.pool_end {

@ -186,10 +186,10 @@ pub unsafe fn init() {
// Finally, fill the single LVL3 table (4 KiB granule). Differentiate
// between code+RO and RW pages.
let (ro_start_addr, ro_end_addr) = super::get_ro_start_end();
let (ro_start_addr, ro_end_addr) = crate::memory::get_ro_start_end();
let ro_first_page_index = ro_start_addr / super::PAGESIZE;
let ro_last_page_index = ro_end_addr / super::PAGESIZE;
let ro_first_page_index = ro_start_addr / crate::memory::PAGESIZE;
let ro_last_page_index = ro_end_addr / crate::memory::PAGESIZE;
let common = STAGE1_DESCRIPTOR::VALID::True
+ STAGE1_DESCRIPTOR::TYPE::Table

@ -36,7 +36,7 @@ pub struct BumpAllocator {
unsafe impl Alloc for BumpAllocator {
unsafe fn alloc(&mut self, layout: Layout) -> Result<NonNull<u8>, AllocErr> {
let start = super::aligned_addr_unchecked(self.next, layout.align());
let start = crate::memory::aligned_addr_unchecked(self.next, layout.align());
let end = start + layout.size();
if end <= self.pool_end {

@ -186,10 +186,10 @@ pub unsafe fn init() {
// Finally, fill the single LVL3 table (4 KiB granule). Differentiate
// between code+RO and RW pages.
let (ro_start_addr, ro_end_addr) = super::get_ro_start_end();
let (ro_start_addr, ro_end_addr) = crate::memory::get_ro_start_end();
let ro_first_page_index = ro_start_addr / super::PAGESIZE;
let ro_last_page_index = ro_end_addr / super::PAGESIZE;
let ro_first_page_index = ro_start_addr / crate::memory::PAGESIZE;
let ro_last_page_index = ro_end_addr / crate::memory::PAGESIZE;
let common = STAGE1_DESCRIPTOR::VALID::True
+ STAGE1_DESCRIPTOR::TYPE::Table

Loading…
Cancel
Save