keystone-enclave / riscv-pk

Security monitor for Keystone Enclave (mirror of riscv-pk). Will be deprecated when openSBI port is ready
Other
36 stars 14 forks source link

Write a part of SM in Rust #51

Closed dayeol closed 4 years ago

dayeol commented 4 years ago

This will let us know how feasible/easy to translate current SM into Rust with current upstream toolchain status.

archshift commented 4 years ago

I've managed to get things building and I've rewritten cpu.c and sm.c in Rust to start seeing how integration can work. You can see the rough progress at a8b6db591c2c938ff98b26276a1cfdc49032e7a2, but things still need some cleanups.

archshift commented 4 years ago

Once rust-lang/rust#65953 is merged I can remove a lot of the unfortunate build system contortions I needed to use because of hard float issues.