Added temporary stack trace function to x86_64.

Will be merged with the x86 one later on. Requires -fno-omit-frame-pointer on
the kernel build flags, GCC defaults to not generating stack frames on x86_64.
This commit is contained in:
Alex Smith
2012-07-05 15:35:43 +01:00
parent 0da10c8b51
commit 898b29e362
3 changed files with 35 additions and 2 deletions
+4 -2
View File
@@ -391,8 +391,10 @@ switch $(HAIKU_ARCH) {
# Kernel lives in the top 2GB of the address space, use kernel code
# model. Also disable the red zone, which cannot be used in kernel
# code due to interrupts.
HAIKU_KERNEL_CCFLAGS += -mcmodel=kernel -mno-red-zone ;
HAIKU_KERNEL_C++FLAGS += -mcmodel=kernel -mno-red-zone ;
HAIKU_KERNEL_CCFLAGS += -mcmodel=kernel -mno-red-zone
-fno-omit-frame-pointer ;
HAIKU_KERNEL_C++FLAGS += -mcmodel=kernel -mno-red-zone
-fno-omit-frame-pointer ;
HAIKU_KERNEL_PIC_LINKFLAGS += -z max-page-size=0x1000 ;
# Bootloader is 32-bit.