Skip to content

Commit e75316b

Browse files
jmichalski-antaescolar
authored andcommitted
arch: x86_64: re-enable -mno-red-zone
Red zone was causing issues in places where inline assembly was pushing data to stack, like arch_irq_lock, and possibly in other places. Initially -mno-red-zone was enabled on x86_64, but was later, maybe accidentially, disabled in https://github.com/zephyrproject-rtos/zephyr/ commit/b7eb04b3007767be9febe677924918d2422a4406 Signed-off-by: Jakub Michalski <jmichalski@internships.antmicro.com> Signed-off-by: Filip Kokosinski <fkokosinski@antmicro.com>
1 parent a654bfb commit e75316b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/intel64.cmake

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# SPDX-License-Identifier: Apache-2.0
33

44
zephyr_cc_option(-m64)
5+
zephyr_cc_option(-mno-red-zone)
56

67
set_property(GLOBAL PROPERTY PROPERTY_OUTPUT_ARCH "i386:x86-64")
78
set_property(GLOBAL PROPERTY PROPERTY_OUTPUT_FORMAT "elf64-x86-64")

0 commit comments

Comments
 (0)