[feat] Provides function interface for initializing memory management unit and switching to el2 privilege level for armv8 virtualization#13
Open
numpy1314 wants to merge 3 commits intoarceos-org:mainfrom
Conversation
… unit and switching to el2 privilege level for armv8 virtualization
Azure-stars
reviewed
Jul 15, 2025
src/aarch64/init.rs
Outdated
| /// # Safety | ||
| /// | ||
| /// This function is unsafe as it changes the CPU mode. | ||
| #[cfg(not(feature = "arm_el2"))] |
Contributor
There was a problem hiding this comment.
Do we need to add condition-compile here for these functions? Maybe these functions can exist together?
Contributor
Author
There was a problem hiding this comment.
Right, the compilation of this function is not involved in the EL2 privilege level, and the conditional compilation here can be removed.
ZCShou
pushed a commit
that referenced
this pull request
Mar 17, 2026
* Publish v0.1.0 to crates.io * Fix broken links in README * Bump to v0.1.1 * add UrandomDev (#2) * Bump to v0.1.2 * feat: iofn * refactor: project structure, enhance basic traits * style: parameter name consistency * feat: probe maybe_uninit_slice * style: format code * feat: add BufWriter and LineWriter * docs: update README.md "Features" section for buffered * chore: remove BufReader::seek_relative * test: add unit tests * feat: IoBuf * ci: drop nightly-2025-05-20 * build: bump version to 0.3.0-pre.0 * chore: typo * feat: add utils * chore: explicit result type * refactor: reimplement BufReader * refactor: redesign IoBuf, add IoBufMut back * build: bump to 0.3.0-pre.1 * feat: add StarryOS build and run commands with configuration management * feat: add default AX_IP and AX_GW environment variables to build_env * feat: update axio version and refactor manifest directory handling in build process * feat: update axio repository branch to dev2 in repos.csv * Remove subtree components/axio before force re-add * feat: update axio and axpoll dependencies in Cargo.toml and Cargo.lock * feat: update axio repository branch to main in repos.csv * feat: add description for axfs_crates in repos.csv * feat: update axfs crates to version 0.1.2 and adjust workspace configuration * feat: update axerrno dependency to version 0.2 in multiple Cargo.toml files and improve error handling in memory allocation * fix(starry): map axfs/axnet to ng only for starry kernel * fix(axcpu): make aarch64 exception table PIE-safe * feat: add dynamic platform (plat-dyn) support in Arceos configuration and build arguments * feat: update dynamic platform support and improve test configurations --------- Co-authored-by: Yuekai Jia <equation618@gmail.com> Co-authored-by: Wanderlust <100674758+879650736@users.noreply.github.com> Co-authored-by: 朝倉水希 <asakuramizu111@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Move init_mmu_el2 and switch_to_el2 from axplat_crates to the initialization section of axcpu