summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkettenis <kettenis@openbsd.org>2020-09-16 09:35:14 +0000
committerkettenis <kettenis@openbsd.org>2020-09-16 09:35:14 +0000
commitc8f65f57934033dedd31ebb97d7547b3690f91d5 (patch)
tree045cd08b974c9a30280780a37dee6616fbe9f73d
parentAvoid generating a core dump during make build. The Perl configure (diff)
downloadwireguard-openbsd-c8f65f57934033dedd31ebb97d7547b3690f91d5.tar.xz
wireguard-openbsd-c8f65f57934033dedd31ebb97d7547b3690f91d5.zip
Add a command explaining that this driver uses the ACPI SMI command port
and why we need magic to map it.
-rw-r--r--sys/dev/acpi/abl.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/acpi/abl.c b/sys/dev/acpi/abl.c
index 98f13fe855a..99ff47237cf 100644
--- a/sys/dev/acpi/abl.c
+++ b/sys/dev/acpi/abl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: abl.c,v 1.1 2020/09/15 18:31:14 mglocker Exp $ */
+/* $OpenBSD: abl.c,v 1.2 2020/09/16 09:35:14 kettenis Exp $ */
/*
* Copyright (c) 2020 Marcus Glocker <mglocker@openbsd.org>
@@ -136,9 +136,12 @@ abl_attach(struct device *parent, struct device *self, void *aux)
return;
}
- /* Map I/O space. */
+ /*
+ * Map I/O space. This driver uses the ACPI SMI command port.
+ * This port has already been claimed by the generic ACPI code
+ * so we need to work around that here by calling _bus_space_map().
+ */
sc->sc_bt = aaa->aaa_iot;
- /* XXX: Something else already seems to map this address. */
if (_bus_space_map(sc->sc_bt, sc->sc_io_base, ABL_IO_SIZE, 0,
&sc->sc_bh)) {
printf(": can't map register\n");