mirror of
https://github.com/NotAShelf/microfetch.git
synced 2026-04-27 19:05:21 +00:00
arch: add powerpc64 support
This commit is contained in:
parent
05fc3d8df9
commit
03e6d1f4cf
5 changed files with 280 additions and 11 deletions
|
|
@ -5,10 +5,11 @@
|
|||
//! What do you mean I wasted two whole hours to make the program only 100µs
|
||||
//! faster?
|
||||
//!
|
||||
//! Supports `x86_64`, `aarch64`, `riscv64`, `loongarch64`, and `s390x`
|
||||
//! architectures.
|
||||
//! Supports `x86_64`, `aarch64`, `riscv64`, `loongarch64`, `s390x`, and
|
||||
//! `powerpc64` architectures.
|
||||
|
||||
#![no_std]
|
||||
#![cfg_attr(target_arch = "powerpc64", feature(asm_experimental_arch))]
|
||||
|
||||
// Ensure we're compiling for a supported architecture.
|
||||
#[cfg(not(any(
|
||||
|
|
@ -16,11 +17,12 @@
|
|||
target_arch = "aarch64",
|
||||
target_arch = "riscv64",
|
||||
target_arch = "loongarch64",
|
||||
target_arch = "s390x"
|
||||
target_arch = "s390x",
|
||||
target_arch = "powerpc64"
|
||||
)))]
|
||||
compile_error!(
|
||||
"Unsupported architecture: only x86_64, aarch64, riscv64, loongarch64, and \
|
||||
s390x are supported"
|
||||
"Unsupported architecture: only x86_64, aarch64, riscv64, loongarch64, \
|
||||
s390x, and powerpc64 are supported"
|
||||
);
|
||||
|
||||
// Per-arch syscall implementations live in their own module files.
|
||||
|
|
@ -39,6 +41,9 @@ mod arch;
|
|||
#[cfg(target_arch = "s390x")]
|
||||
#[path = "s390x.rs"]
|
||||
mod arch;
|
||||
#[cfg(target_arch = "powerpc64")]
|
||||
#[path = "powerpc64.rs"]
|
||||
mod arch;
|
||||
|
||||
/// Copies `n` bytes from `src` to `dest`.
|
||||
///
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue