summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2008-06-08 17:20:53 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2008-06-08 17:20:53 +0000
commitffd1eed890c16d19f4789958be626db1fbd73011 (patch)
treed8874b0f76a4a605c7cd35181d9b62c0c046e27c /sys/dev/acpi
parent95cc25442c0b204da94cabd25dec717c9746c5b0 (diff)
Add a malloc type for ACPI and use it for _acpi_os_malloc and free.
kettenis@ ok
Diffstat (limited to 'sys/dev/acpi')
-rw-r--r--sys/dev/acpi/dsdt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/acpi/dsdt.c b/sys/dev/acpi/dsdt.c
index 171429cab3d..e976285e668 100644
--- a/sys/dev/acpi/dsdt.c
+++ b/sys/dev/acpi/dsdt.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: dsdt.c,v 1.121 2008/06/08 15:36:57 canacar Exp $ */
+/* $OpenBSD: dsdt.c,v 1.122 2008/06/08 17:20:52 art Exp $ */
/*
* Copyright (c) 2005 Jordan Hargrave <jordan@openbsd.org>
*
@@ -406,7 +406,7 @@ _acpi_os_malloc(size_t size, const char *fn, int line)
{
struct acpi_memblock *sptr;
- sptr = malloc(size+sizeof(*sptr), M_DEVBUF, M_WAITOK | M_ZERO);
+ sptr = malloc(size+sizeof(*sptr), M_ACPI, M_WAITOK | M_ZERO);
dnprintf(99, "alloc: %x %s:%d\n", sptr, fn, line);
acpi_nalloc += size;
sptr->size = size;
@@ -423,7 +423,7 @@ _acpi_os_free(void *ptr, const char *fn, int line)
acpi_nalloc -= sptr->size;
dnprintf(99, "free: %x %s:%d\n", sptr, fn, line);
- free(sptr, M_DEVBUF);
+ free(sptr, M_ACPI);
}
}