aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/agp
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>2018-08-20 15:57:27 +0000
committerAlan Cox <alc@FreeBSD.org>2018-08-20 15:57:27 +0000
commit44d0efb2154d884c85919229f28b31d50d25a350 (patch)
treed8950cf9ecd0e22a11be2b1a5be868240f19766a /sys/dev/agp
parent8805f3d7be2ce01a2f80c6a33b4cd84e6632a81d (diff)
Notes
Diffstat (limited to 'sys/dev/agp')
-rw-r--r--sys/dev/agp/agp.c6
-rw-r--r--sys/dev/agp/agp_i810.c5
2 files changed, 5 insertions, 6 deletions
diff --git a/sys/dev/agp/agp.c b/sys/dev/agp/agp.c
index 208cb395118e..fca63f9666ae 100644
--- a/sys/dev/agp/agp.c
+++ b/sys/dev/agp/agp.c
@@ -154,9 +154,9 @@ agp_alloc_gatt(device_t dev)
return 0;
gatt->ag_entries = entries;
- gatt->ag_virtual = (void *)kmem_alloc_contig(kernel_arena,
- entries * sizeof(u_int32_t), M_NOWAIT | M_ZERO, 0, ~0, PAGE_SIZE,
- 0, VM_MEMATTR_WRITE_COMBINING);
+ gatt->ag_virtual = (void *)kmem_alloc_contig(entries *
+ sizeof(u_int32_t), M_NOWAIT | M_ZERO, 0, ~0, PAGE_SIZE, 0,
+ VM_MEMATTR_WRITE_COMBINING);
if (!gatt->ag_virtual) {
if (bootverbose)
device_printf(dev, "contiguous allocation failed\n");
diff --git a/sys/dev/agp/agp_i810.c b/sys/dev/agp/agp_i810.c
index bb57bfa02cbb..59028f0533d8 100644
--- a/sys/dev/agp/agp_i810.c
+++ b/sys/dev/agp/agp_i810.c
@@ -1189,9 +1189,8 @@ agp_i810_install_gatt(device_t dev)
sc->dcache_size = 0;
/* According to the specs the gatt on the i810 must be 64k. */
- sc->gatt->ag_virtual = (void *)kmem_alloc_contig(kernel_arena,
- 64 * 1024, M_NOWAIT | M_ZERO, 0, ~0, PAGE_SIZE,
- 0, VM_MEMATTR_WRITE_COMBINING);
+ sc->gatt->ag_virtual = (void *)kmem_alloc_contig(64 * 1024, M_NOWAIT |
+ M_ZERO, 0, ~0, PAGE_SIZE, 0, VM_MEMATTR_WRITE_COMBINING);
if (sc->gatt->ag_virtual == NULL) {
if (bootverbose)
device_printf(dev, "contiguous allocation failed\n");