From 9050c80f1d277e50e7dfe4b63b70df26c4984a57 Mon Sep 17 00:00:00 2001 From: marcel Date: Tue, 10 Dec 2002 20:11:20 +0000 Subject: Pass the HCDP table address to the kernel. If no such table exists, NULL is passed. The address of the HCDP table can be found by iterating over the configuration tables in the EFI system table. To avoid more duplication, a function can be called with the GUID of interest. The function will do the scanning. Use the function in all places where we iterate over the configuration tables in an attempt to find a specific one. Bump the loader version number as the result of this. Approved by: re (blanket) --- sys/boot/ia64/common/bootinfo.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/boot/ia64/common/bootinfo.c') diff --git a/sys/boot/ia64/common/bootinfo.c b/sys/boot/ia64/common/bootinfo.c index 484f226..def4bfb 100644 --- a/sys/boot/ia64/common/bootinfo.c +++ b/sys/boot/ia64/common/bootinfo.c @@ -39,6 +39,8 @@ #include "bootstrap.h" +static EFI_GUID hcdp = HCDP_TABLE_GUID; + /* * Return a 'boothowto' value corresponding to the kernel arguments in * (kargs) and any relevant environment variables. @@ -300,6 +302,7 @@ bi_load(struct bootinfo *bi, struct preloaded_file *fp, UINTN *mapkey, bi->bi_symtab = ssym; bi->bi_esymtab = esym; + bi->bi_hcdp = (uint64_t)efi_get_table(&hcdp); /* DIG64 HCDP table addr. */ fpswa_init(&bi->bi_fpswa); /* find FPSWA interface */ /* find the last module in the chain */ -- cgit v1.1