Can a UEFI machine use BIOS interrupts?
Asked Answered
D

1

7

When the kernel been loaded into the memory, can it still can use BIOS interrupts? Such as

mov AX,0E820h
int 15h

or something.

Dudleyduds answered 8/2, 2020 at 2:3 Comment(2)
A UEFI machine can support BIOS interrupts if it still supports the compatibility support module (CSM) that provides legacy BIOS interface. Some UEFI machines no longer ship with CSM support so it depends.Blimey
I think only when booting a legacy 512-byte MBR boot sector (via the CSM), not after booting a 32 or 64-bit UEFI application.Jasen
O
11

A UEFI program (or an OS loaded from one) cannot use legacy interrupts; it has to use the UEFI API.

If a UEFI BIOS includes the compatibility support module (CSM), then it supports legacy interrupts when booting a legacy boot sector.

To obtain the e820 memory map, call the UEFI boot services function GetMemoryMap.

Ob answered 8/2, 2020 at 6:54 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.