]> git.lizzy.rs Git - rust.git/commit
SGX target: simplify usercall internals
authorJethro Beekman <jethro@fortanix.com>
Wed, 6 Feb 2019 16:58:45 +0000 (22:28 +0530)
committerJethro Beekman <jethro@fortanix.com>
Wed, 6 Feb 2019 17:54:55 +0000 (23:24 +0530)
commit0d2ab0b77dd82d192f987ab4e1645577eccd3562
treea774b680b8d2e703eee44c2af9ba6de634c180af
parent4b1e39b7b36d677803e40130ea29ee6d300abf6e
SGX target: simplify usercall internals

This moves logic from assembly to Rust and removes the special
case for exit/panic handling, merging it with regular usercall
handling.

Also, this fixes a bug in the exit usercall introduced in a75ae00.
The bug would make regular exits look like panics with high
probability. It would also with some probability leak information
through uncleared registers.
src/libstd/lib.rs
src/libstd/sys/sgx/abi/entry.S
src/libstd/sys/sgx/abi/mod.rs
src/libstd/sys/sgx/abi/panic.rs
src/libstd/sys/sgx/abi/usercalls/mod.rs
src/libstd/sys/sgx/abi/usercalls/raw.rs
src/libstd/sys/sgx/mod.rs