-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge panic-abort and panic-log crates into
mc-sgx-panic
This moves the previously named `mc-sgx-panic` crate to `mc-sgx-panic-sys`.
- Loading branch information
1 parent
15c6824
commit 0b65a13
Showing
18 changed files
with
87 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,24 @@ | ||
// Copyright (c) 2023 The MobileCoin Foundation | ||
#![feature(thread_local)] | ||
// Copyright (c) 2022-2023 The MobileCoin Foundation | ||
|
||
#![doc = include_str!("../README.md")] | ||
#![deny(missing_docs, missing_debug_implementations, unsafe_code)] | ||
#![deny(missing_docs, missing_debug_implementations)] | ||
#![no_std] | ||
|
||
mod panicking; | ||
pub mod thread; | ||
#[cfg(not(test))] | ||
use core::panic::PanicInfo; | ||
|
||
#[cfg(feature = "log")] | ||
mod log; | ||
|
||
#[cfg(not(test))] | ||
#[panic_handler] | ||
fn panic(_info: &PanicInfo) -> ! { | ||
#[cfg(feature = "log")] | ||
log::log_panic_info(_info); | ||
|
||
extern "C" { | ||
fn abort() -> !; | ||
} | ||
|
||
unsafe { abort() } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[package] | ||
name = "mc-sgx-panic-sys" | ||
version = "0.1.0" | ||
edition = "2021" | ||
authors = ["MobileCoin"] | ||
rust-version = "1.65" | ||
license = "Apache-2.0" | ||
readme = "README.md" | ||
repository = "https://github.com/mobilecoinfoundation/sgx-std" | ||
description = "Common panic handling behavior for SGX enclaves" | ||
categories = ["hardware-support", "no-std"] | ||
keywords = ["sgx", "no-std", "panic"] | ||
|
||
[dependencies] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# MobileCoin: System specific logic for panic handling | ||
|
||
[![Project Chat][chat-image]][chat-link]<!-- | ||
-->![License][license-image]<!-- | ||
-->![Target][target-image]<!-- | ||
-->[![Crates.io][crate-image]][crate-link]<!-- | ||
-->[![Docs Status][docs-image]][docs-link]<!-- | ||
-->[![Dependency Status][deps-image]][deps-link] | ||
|
||
System specific logic for panic handling | ||
|
||
[chat-image]: https://img.shields.io/discord/844353360348971068?style=flat-square | ||
[chat-link]: https://mobilecoin.chat | ||
[license-image]: https://img.shields.io/crates/l/mc-sgx-panic-sys?style=flat-square | ||
[target-image]: https://img.shields.io/badge/target-x86__64-blue?style=flat-square | ||
[crate-image]: https://img.shields.io/crates/v/mc-sgx-panic-sys.svg?style=flat-square | ||
[crate-link]: https://crates.io/crates/mc-sgx-panic-sys | ||
[docs-image]: https://img.shields.io/docsrs/mc-sgx-panic-sys?style=flat-square | ||
[docs-link]: https://docs.rs/crate/mc-sgx-panic-sys | ||
[deps-image]: https://deps.rs/crate/mc-sgx-panic-sys/0.1.0/status.svg?style=flat-square | ||
[deps-link]: https://deps.rs/crate/mc-sgx-panic-sys/0.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// Copyright (c) 2022-2023 The MobileCoin Foundation | ||
#![feature(thread_local)] | ||
#![doc = include_str!("../README.md")] | ||
#![deny(missing_docs, missing_debug_implementations, unsafe_code)] | ||
#![no_std] | ||
|
||
mod panicking; | ||
pub mod thread; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters