Skip to content

Commit d5891af

Browse files
committed
[guests/chkstk] remove chkstk
chkstk was a dependency of the msvc toolchain. With PE support removed, we can get rid of it. Signed-off-by: danbugs <[email protected]>
1 parent 6379184 commit d5891af

File tree

3 files changed

+0
-72
lines changed

3 files changed

+0
-72
lines changed

src/hyperlight_guest/src/chkstk.rs

Lines changed: 0 additions & 64 deletions
This file was deleted.

src/hyperlight_guest/src/guest_error.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,8 @@ use alloc::vec::Vec;
1919
use core::ffi::{c_char, CStr};
2020

2121
use hyperlight_common::flatbuffer_wrappers::guest_error::{ErrorCode, GuestError};
22-
use hyperlight_common::outb::OutBAction;
2322

2423
use crate::entrypoint::halt;
25-
use crate::host_function_call::outb;
2624
use crate::shared_output_data::push_shared_output_data;
2725

2826
pub(crate) fn write_error(error_code: ErrorCode, message: Option<&str>) {
@@ -47,11 +45,6 @@ pub(crate) fn set_error_and_halt(error_code: ErrorCode, message: &str) {
4745
halt();
4846
}
4947

50-
#[no_mangle]
51-
pub(crate) extern "win64" fn set_stack_allocate_error() {
52-
outb(OutBAction::Abort as u16, &[ErrorCode::StackOverflow as u8]);
53-
}
54-
5548
/// Exposes a C API to allow the guest to set an error
5649
///
5750
/// # Safety

src/hyperlight_guest/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ pub mod memory;
4343
pub mod print;
4444
pub(crate) mod security_check;
4545

46-
pub mod chkstk;
4746
pub mod error;
4847
pub mod gdt;
4948
pub mod idt;

0 commit comments

Comments
 (0)