Add a generic firmware dependent handle to pass from the loader to the

kernel. This will be used for passing in things like the system table
from EFI or other similar metadata that can be used by the kernel to
communicate with the firmware.
This commit is contained in:
Warner Losh
2015-12-18 06:13:18 +00:00
parent 7fef161f23
commit 88dd727290
+1
View File
@@ -215,6 +215,7 @@ void *linker_hwpmc_list_objects(void);
#define MODINFOMD_SHDR 0x0009 /* section header table */
#define MODINFOMD_CTORS_ADDR 0x000a /* address of .ctors */
#define MODINFOMD_CTORS_SIZE 0x000b /* size of .ctors */
#define MODINFOMD_FW_HANDLE 0x000c /* Firmware dependent handle */
#define MODINFOMD_NOCOPY 0x8000 /* don't copy this metadata to the kernel */
#define MODINFOMD_DEPLIST (0x4001 | MODINFOMD_NOCOPY) /* depends on */