Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ version = "0.3.0"

[features]
arm-el2 = ["page_table_entry/arm-el2"]
loongarch = [] # 龙芯支持特性
default = ["arm-el2"]

[dependencies]
Expand All @@ -35,6 +36,10 @@ page_table_multiarch = "0.6"
[target.'cfg(any(target_arch = "x86_64", doc))'.dependencies]
x86 = "0.52"

[target.'cfg(target_arch = "loongarch64")'.dependencies]
# 龙芯架构暂时不需要特定依赖,使用通用库+内联汇编
# 如有需要,未来可添加 loongarch-asm 或类似库

[dev-dependencies]
lazy_static = "1.5"
spin = "0.10"
Expand Down
Loading
Loading