fitzgen / mach

A rust interface to the Mach 3.0 kernel that underlies OSX.
https://docs.rs/mach
Other
81 stars 28 forks source link

Add support for exceptions ports + aarch64 #64

Closed bnjbvr closed 2 years ago

bnjbvr commented 3 years ago

This adds enough support for https://github.com/bytecodealliance/wasmtime/pull/2632 to not add its own bindings, plus it brings up support for Apple Silicon (aarch64) by tweaking/adding a few data structures.

One note for reviewers: yes it's weird, but the count() implementations are indeed different when I look at my local mach header files. They are reflected as such in this PR.

bnjbvr commented 3 years ago

@gnzlbg @fitzgen can you take a look, please? Thanks!

fitzgen commented 3 years ago

I haven't been involved in this crate for years, so I'll defer to @gnzlbg.

bnjbvr commented 2 years ago

Happy birthday to this PR! I understand maintenance can be a bad burden, but since this happens to be used in Rust libc, wonder if there's a simple way forward with little friction, like what's proposed in https://github.com/fitzgen/mach/issues/63#issuecomment-962011388, what do you think @fitzgen?

bnjbvr commented 2 years ago

Revived as https://github.com/JohnTitor/mach2/pull/8