summaryrefslogtreecommitdiffstats
path: root/sys/boot/ia64/common
diff options
context:
space:
mode:
authordfr <dfr@FreeBSD.org>2001-09-24 19:37:44 +0000
committerdfr <dfr@FreeBSD.org>2001-09-24 19:37:44 +0000
commit876717e81e830cdbfc61d9fe83aa928d05dd22bb (patch)
treead97ca9aade3ec1b751d67d9a7b733270f00024b /sys/boot/ia64/common
parente19e9a89725b0ba6f208a0a73cc571349c721078 (diff)
downloadFreeBSD-src-876717e81e830cdbfc61d9fe83aa928d05dd22bb.zip
FreeBSD-src-876717e81e830cdbfc61d9fe83aa928d05dd22bb.tar.gz
Return the mapkey which EFI gave us when we read the memory map - we need
it to call ExitBootServices.
Diffstat (limited to 'sys/boot/ia64/common')
-rw-r--r--sys/boot/ia64/common/bootinfo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/boot/ia64/common/bootinfo.c b/sys/boot/ia64/common/bootinfo.c
index 60a2510..956b813 100644
--- a/sys/boot/ia64/common/bootinfo.c
+++ b/sys/boot/ia64/common/bootinfo.c
@@ -239,7 +239,7 @@ bi_copymodules(vm_offset_t addr)
* - Module metadata are formatted and placed in kernel space.
*/
int
-bi_load(struct bootinfo *bi, struct preloaded_file *fp, char *args)
+bi_load(struct bootinfo *bi, struct preloaded_file *fp, UINTN *mapkey)
{
char *rootdevname;
struct efi_devdesc *rootdev;
@@ -340,7 +340,9 @@ bi_load(struct bootinfo *bi, struct preloaded_file *fp, char *args)
&bi->bi_memdesc_version);
if (EFI_ERROR(status)) {
printf("bi_load: Can't read memory map\n");
+ return EINVAL;
}
+ *mapkey = key;
return(0);
}
OpenPOWER on IntegriCloud