From 69529b12692eca8314e1f07fbb597eb2fddebd41 Mon Sep 17 00:00:00 2001 From: mintsuki Date: Sat, 29 Jan 2022 11:45:03 +0100 Subject: [PATCH] chainload: Readd wrongly removed noinline attribute --- stage23/protos/chainload.c | 2 +- test/limine.cfg | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/stage23/protos/chainload.c b/stage23/protos/chainload.c index d1fc5dbb..f76a1b21 100644 --- a/stage23/protos/chainload.c +++ b/stage23/protos/chainload.c @@ -19,7 +19,7 @@ #if bios == 1 -__attribute__((section(".realmode"))) +__attribute__((noinline, section(".realmode"))) static void spinup(uint8_t drive) { struct idtr real_mode_idt; real_mode_idt.limit = 0x3ff; diff --git a/test/limine.cfg b/test/limine.cfg index bfa3ad38..dc340159 100644 --- a/test/limine.cfg +++ b/test/limine.cfg @@ -49,6 +49,13 @@ COMMENT=Test EFI image chainloading. PROTOCOL=chainload IMAGE_PATH=boot:///EFI/BOOT/BOOTX64.EFI +:BIOS Chainloading + +COMMENT=Test EFI image chainloading. + +PROTOCOL=chainload +DRIVE=1 + :+Legacy COMMENT=Contains legacy entries.