]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
efi: Add linux memory reserve table defniitions
authorWarner Losh <imp@FreeBSD.org>
Thu, 6 Oct 2022 02:56:43 +0000 (20:56 -0600)
committerWarner Losh <imp@FreeBSD.org>
Tue, 25 Oct 2022 15:32:49 +0000 (09:32 -0600)
commitecb167daf761b75e71607e3b216e162cad99dad0
tree493b5f1142b220c90a4942ee011d9db04514c3aa
parent470fb726f3d242fed42592bc59263c9d49226073
efi: Add linux memory reserve table defniitions

There is some hardware which can't be completely reset to release the
memory it is using(so far only the GICv3 on arm has fit this
bill). Since that meory needs to be reserved by the OS for that
hardware's later use of it, create defines for code that will parse that
memory table. Otherise the system may allocate the memory for block I/O,
network packets, etc which will lead to memory corruption.

When booting via Linux's kexec protocol, it will add this table to the
EFI systbl's cfgtbl array. While the mechanism to pass 'configuration'
is standardized, these specific tables are not documented except in the
Linux source. Include comments gleened from its study.

Sponsored by: Netflix
sys/sys/efi.h