Skip to content

arch: add loongarch64, s390x, powerpc64, powerpc, armv7, riscv32, sparc64, sparc32, mips64, mips32, and i686 support#66

Merged
NotAShelf merged 13 commits intoNotAShelf:mainfrom
amaanq:arch
Apr 21, 2026
Merged

arch: add loongarch64, s390x, powerpc64, powerpc, armv7, riscv32, sparc64, sparc32, mips64, mips32, and i686 support#66
NotAShelf merged 13 commits intoNotAShelf:mainfrom
amaanq:arch

Conversation

@amaanq
Copy link
Copy Markdown
Contributor

@amaanq amaanq commented Apr 17, 2026

This PR adds support for many more architectures. I was able to test on real hardware for all of these besides riscv32.

Loongarch64:

image

S390x:

image

Powerpc64:

image

Powerpc64le:

image

Powerpc:

image

Armv7:

image

Riscv32 (under qemu):

image

Sparc64:

image

Sparc32:

image

Mips64:

image

Mips:

image

i686:

image

@amaanq amaanq force-pushed the arch branch 3 times, most recently from e613aed to 498433c Compare April 17, 2026 09:23
@amaanq amaanq changed the title arch: add loongarch64, s390x, powerpc64, armv7, riscv32, sparc64, and mips64 support arch: add loongarch64, s390x, powerpc64, armv7, riscv32, sparc64, mips64, and i686 support Apr 17, 2026
@amaanq amaanq changed the title arch: add loongarch64, s390x, powerpc64, armv7, riscv32, sparc64, mips64, and i686 support arch: add loongarch64, s390x, powerpc64, powerpc, armv7, riscv32, sparc64, sparc32, mips64, mips32, and i686 support Apr 17, 2026
@amaanq amaanq force-pushed the arch branch 14 times, most recently from 6e297e6 to e62c256 Compare April 17, 2026 19:28
@NotAShelf
Copy link
Copy Markdown
Owner

bro tuff

amaanq added 3 commits April 18, 2026 18:31
The monolithic lib.rs had grown to 2600+ lines of `#[cfg(target_arch)]`
blocks interleaved inside every `sys_*` function. Reading or modifying one
arch's syscalls meant scrolling past thirteen others. Pull each arch's asm
into `<arch>.rs`, re-exported via a single `#[cfg] #[path] mod arch;` so
`lib.rs` only contains wrappers, structs, and module dispatch. Adding a new
architecture now touches one new file plus one three-line mod decl.
@amaanq amaanq force-pushed the arch branch 4 times, most recently from 61f6d75 to 0ff21ea Compare April 18, 2026 23:29
@amaanq amaanq force-pushed the arch branch 3 times, most recently from 13927fd to 81c1e16 Compare April 18, 2026 23:45
@NotAShelf NotAShelf merged commit 6c7bc1b into NotAShelf:main Apr 21, 2026
15 checks passed
@amaanq amaanq deleted the arch branch April 22, 2026 06:59
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