Skip to content

Commit e79b561

Browse files
committed
Smbios: add comments about UEFI systems [ci skip]
1 parent 9018fda commit e79b561

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/util/smbiosHelper.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,9 @@ const FFSmbiosHeaderTable* ffGetSmbiosHeaderTable()
236236
FF_AUTO_CLOSE_FD int fd = open("/dev/misc/mem", O_RDONLY);
237237
if (fd < 0)
238238
return NULL;
239+
240+
// Works on legacy BIOS only
241+
// See: https://wiki.osdev.org/System_Management_BIOS#UEFI_systems
239242
FF_AUTO_FREE uint8_t* smBiosBase = malloc(0x10000);
240243
if (pread(fd, smBiosBase, 0x10000, 0xF0000) != 0x10000)
241244
return NULL;

0 commit comments

Comments
 (0)