Skip to content

Commit

Permalink
net/isboot-kmod: Update for changes to pmap_unmapdev() KPI in main.
Browse files Browse the repository at this point in the history
Reviewed by:	tcberner
Sponsored by:	DARPA
Differential Revision:	https://reviews.freebsd.org/D36670
  • Loading branch information
bsdjhb committed Oct 20, 2022
1 parent a8fb74e commit 292218a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion net/isboot-kmod/files/patch-ibft.c
@@ -1,4 +1,4 @@
--- ibft.c.orig 2022-05-11 20:18:36 UTC
--- ibft.c.orig 2021-05-18 18:37:58 UTC
+++ ibft.c
@@ -146,13 +146,12 @@ ibft_print_address(uint8_t *addr)
void
Expand Down Expand Up @@ -72,3 +72,15 @@
length = le16toh(t1h->length);
index = t1h->index;
flags = t1h->flags;
@@ -556,7 +549,11 @@ ibft_init(void)
if (ibft_verbose) {
printf("iBFT error\n");
}
+#if __FreeBSD_version >= 1400070
+ pmap_unmapdev(vaddr,
+#else
pmap_unmapdev((vm_offset_t)vaddr,
+#endif
(vm_size_t)IBFT_HIGH_ADDR);
return (error);
}

0 comments on commit 292218a

Please sign in to comment.