项目作者: dvoytik

项目描述 :
Low level abstraction of ARM architecture specific features.
高级语言: Rust
项目地址: git://github.com/dvoytik/rust-arm.git
创建时间: 2017-12-12T21:01:51Z
项目社区:https://github.com/dvoytik/rust-arm

开源协议:MIT License

下载


Rust ARM low level library Crates.io Crates.io

Low level abstraction of ARM architecture specific features.

Quick start

Note: for now this crate was checked only against ARMv7 targets.

Setup cross toolchains:

  1. rustup install nightly
  2. rustup default nightly
  3. rustup target add armv7-unknown-linux-gnueabihf
  4. cat >>~/.cargo/config <<EOF
  5. [target.armv7-unknown-linux-gnueabihf]
  6. linker = "arm-linux-gnueabihf-gcc"
  7. EOF

You need to install arm-linux-gnueabihf-gcc separately for cross-linking.

More details about cross-compiling: https://github.com/japaric/rust-cross

Build:

  1. cargo build --target=armv7-unknown-linux-gnueabihf

TODO

  • basic SMP for AArch64 and AArch32
  • EL1 registers
  • EL2 registers
  • EL3 registers

Documentation

  1. cargo doc --open --target=armv7-unknown-linux-gnueabihf

License

The library is distributed under the terms of MIT license