nova: fix oom handling in kernel

Fixes #2126
This commit is contained in:
Alexander Boettcher
2016-10-12 08:58:50 +02:00
committed by Christian Helmuth
parent 891bad8d54
commit 4b148d896a
3 changed files with 4 additions and 4 deletions

View File

@ -21,11 +21,11 @@ CC_OPT += -pipe \
-fno-stack-protector -fvisibility-inlines-hidden \
-fno-asynchronous-unwind-tables -std=gnu++0x
ifeq ($(filter-out $(SPECS),32bit),)
CC_WARN += -Wframe-larger-than=64
CC_WARN += -Wframe-larger-than=92
CC_OPT += -mpreferred-stack-boundary=2 -mregparm=3
else
ifeq ($(filter-out $(SPECS),64bit),)
CC_WARN += -Wframe-larger-than=144
CC_WARN += -Wframe-larger-than=240
CC_OPT += -mpreferred-stack-boundary=4 -mcmodel=kernel -mno-red-zone
else
$(error Unsupported environment)