summaryrefslogtreecommitdiff
path: root/bsd
diff options
context:
space:
mode:
authorKeith Whitwell <keith@tungstengraphics.com>2003-03-04 11:41:12 +0000
committerKeith Whitwell <keith@tungstengraphics.com>2003-03-04 11:41:12 +0000
commit51e5f73d2a4020a1bae860057bae2b0eff8e9c70 (patch)
treefef2776867e95d4e7df99f41279dce7c18a2d55e /bsd
parent708ecd0e4b4b1bc2f78dbb4e004bb4d5ec3effe8 (diff)
DRM_FREE/2 patch from Philip Brown
Diffstat (limited to 'bsd')
-rw-r--r--bsd/drm_dma.h2
-rw-r--r--bsd/drm_os_freebsd.h2
-rw-r--r--bsd/drm_os_netbsd.h2
3 files changed, 3 insertions, 3 deletions
diff --git a/bsd/drm_dma.h b/bsd/drm_dma.h
index 01b1cdb0..7c1e97fe 100644
--- a/bsd/drm_dma.h
+++ b/bsd/drm_dma.h
@@ -692,7 +692,7 @@ void DRM(vbl_send_signals)( drm_device_t *dev )
psignal(p, vbl_sig->signo);
TAILQ_REMOVE(&dev->vbl_sig_list, vbl_sig, link);
- DRM_FREE(vbl_sig);
+ DRM_FREE(vbl_sig,sizeof(*vbl_sig));
}
vbl_sig = next;
}
diff --git a/bsd/drm_os_freebsd.h b/bsd/drm_os_freebsd.h
index 8b2e4581..6b75ccc3 100644
--- a/bsd/drm_os_freebsd.h
+++ b/bsd/drm_os_freebsd.h
@@ -102,7 +102,7 @@
#define DRM_IRQ_ARGS void *arg
#define DRM_DEVICE drm_device_t *dev = kdev->si_drv1
#define DRM_MALLOC(size) malloc( size, DRM(M_DRM), M_NOWAIT )
-#define DRM_FREE(pt) free( pt, DRM(M_DRM) )
+#define DRM_FREE(pt,size) free( pt, DRM(M_DRM) )
#define DRM_VTOPHYS(addr) vtophys(addr)
/* Read/write from bus space, with byteswapping to le if necessary */
diff --git a/bsd/drm_os_netbsd.h b/bsd/drm_os_netbsd.h
index b1c36196..30ca5e92 100644
--- a/bsd/drm_os_netbsd.h
+++ b/bsd/drm_os_netbsd.h
@@ -89,7 +89,7 @@ MALLOC_DECLARE(DRM(M_DRM));
extern const int DRM(M_DRM) = M_DEVBUF;
#endif /* __NetBSD_Version__ */
#define DRM_MALLOC(size) malloc( size, DRM(M_DRM), M_NOWAIT )
-#define DRM_FREE(pt) free( pt, DRM(M_DRM) )
+#define DRM_FREE(pt,size) free( pt, DRM(M_DRM) )
#define DRM_VTOPHYS(addr) vtophys(addr)
#define DRM_READ8(map, offset) bus_space_read_1( (map)->iot, (map)->ioh, (offset) )