]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #95916 - solid-rs:feat-kmc-solid-abort, r=Mark-Simulacrum
authorYuki Okushi <jtitor@2k36.org>
Mon, 25 Jul 2022 09:46:48 +0000 (18:46 +0900)
committerGitHub <noreply@github.com>
Mon, 25 Jul 2022 09:46:48 +0000 (18:46 +0900)
commite726af8dd435b2f20bfcfa90930c6890b8fb8cc6
tree0bf476dd679ff7b201727a65af892ba54fb7cdf3
parent0ecbcbb0ace4229f59e09de035ccef747b024e00
parent9d1f82ebfcc0925631c2a09273b88e3cadb1b318
Rollup merge of #95916 - solid-rs:feat-kmc-solid-abort, r=Mark-Simulacrum

kmc-solid: Use `libc::abort` to abort a program

This PR updates the target-specific abort subroutine for the [`*-kmc-solid_*`](https://doc.rust-lang.org/nightly/rustc/platform-support/kmc-solid.html) Tier 3 targets.

The current implementation uses a `hlt` instruction, which is the most direct way to notify a connected debugger but is not the most flexible way. This PR changes it to call the `abort` libc function, making it possible for a system designer to override its behavior as they see fit.
library/panic_abort/src/lib.rs
library/std/src/sys/solid/mod.rs