#platform #interface #wiki #write #support-multiple

nightly polyhal-trap

This crate provides the interface for multiple platforms

9 releases

0.4.0 May 30, 2025
0.3.2 May 5, 2025
0.2.4 Apr 19, 2025

#329 in Operating systems

MIT license

210KB
5.5K SLoC

arch crate

A crate help you to write a os that support multiple platforms.

Wiki

Supported platforms

Platform Board
riscv64 qemu
x86_64 qemu
aarch64 qemu
loongarch64 qemu

Example

Here is an simple example in the example dir.

Run

# Run on riscv64
make ARCH=riscv64 example
# Run on x86_64
make ARCH=x86_64 example
# Run on aarch64
make ARCH=aarch64 example
# Run on loongarch64
make ARCH=loongarch64 example

Dependencies

~7MB
~110K SLoC