Skip to content

[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
numpy1314:main
Open

Conversation

@numpy1314
Copy link
Copy Markdown
Contributor

Move init_mmu_el2 and switch_to_el2 from axplat_crates to the initialization section of axcpu

… unit and switching to el2 privilege level for armv8 virtualization
/// # Safety
///
/// This function is unsafe as it changes the CPU mode.
#[cfg(not(feature = "arm_el2"))]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we need to add condition-compile here for these functions? Maybe these functions can exist together?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants