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.