Skip to content

Commit

Permalink
Enable chkstk/alloca intrinsics on i686-unknown-uefi
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasbishop committed May 9, 2024
1 parent a991664 commit 59f3c77
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/x86.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ use core::intrinsics;
intrinsics! {
#[naked]
#[cfg(all(
windows,
target_env = "gnu",
any(all(windows, target_env = "gnu"), target_os = "uefi"),
not(feature = "no-asm")
))]
pub unsafe extern "C" fn __chkstk() {
Expand All @@ -23,8 +22,7 @@ intrinsics! {

#[naked]
#[cfg(all(
windows,
target_env = "gnu",
any(all(windows, target_env = "gnu"), target_os = "uefi"),
not(feature = "no-asm")
))]
pub unsafe extern "C" fn _alloca() {
Expand Down

0 comments on commit 59f3c77

Please sign in to comment.