Skip to content

Commit 9f9afc2

Browse files
authored
Merge pull request #605 from nicholasbishop/bishop-i686-uefi
Enable chkstk/alloca intrinsics on i686-unknown-uefi
2 parents a991664 + 59f3c77 commit 9f9afc2

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/x86.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ use core::intrinsics;
1010
intrinsics! {
1111
#[naked]
1212
#[cfg(all(
13-
windows,
14-
target_env = "gnu",
13+
any(all(windows, target_env = "gnu"), target_os = "uefi"),
1514
not(feature = "no-asm")
1615
))]
1716
pub unsafe extern "C" fn __chkstk() {
@@ -23,8 +22,7 @@ intrinsics! {
2322

2423
#[naked]
2524
#[cfg(all(
26-
windows,
27-
target_env = "gnu",
25+
any(all(windows, target_env = "gnu"), target_os = "uefi"),
2826
not(feature = "no-asm")
2927
))]
3028
pub unsafe extern "C" fn _alloca() {

0 commit comments

Comments
 (0)