If the compiler can't restrict inlining by stack usage, then disable
inlining in 16bit mode. Otherwise, old compilers produce code that
uses too much stack space.
$(call cc-option,$(CC),-fno-tree-switch-conversion,)
CFLAGS32SEG = $(CFLAGSSEG) -DMODE16=0 -g
CFLAGS16INC = $(CFLAGSSEG) -DMODE16=1 \
- $(call cc-option,$(CC),--param large-stack-frame=4,)
+ $(call cc-option,$(CC),--param large-stack-frame=4,-fno-inline)
CFLAGS16 = $(CFLAGS16INC) -g
all: $(OUT) $(OUT)bios.bin
void VISIBLE32FLAT
s3_resume(void)
{
+ ASSERT32FLAT();
if (!CONFIG_S3_RESUME)
panic("S3 resume support not compiled in.\n");