first PAC experiments

This commit is contained in:
2025-02-25 10:52:04 +01:00
parent 1d298b547d
commit 9a9e01dc01
29 changed files with 4206 additions and 13 deletions

View File

@ -1,9 +1,8 @@
use std::fs::File;
use std::io::Write;
use std::process::Command;
use zynq7000_rt::mmu::ONE_MB;
pub use zynq7000_rt::mmu::segments::*;
use zynq7000_rt::mmu::ONE_MB;
fn main() {
let file_path = "src/mmu_table.rs";

View File

@ -5,6 +5,7 @@
#![no_std]
pub mod mmu;
#[cfg(feature = "rt")]
mod mmu_table;
#[cfg(feature = "rt")]
pub mod rt;

View File

@ -165,6 +165,7 @@ pub mod section_attrs {
pub const NUM_L1_PAGE_TABLE_ENTRIES: usize = 4096;
#[repr(C, align(16384))]
#[cfg(feature = "rt")]
pub struct L1Table(pub(crate) [u32; NUM_L1_PAGE_TABLE_ENTRIES]);
/// Load the MMU translation table base address into the MMU.