OSDN Git Service

[FreeBSD] Rework all of the memory allocations
authorRobert Noland <rnoland@2hip.net>
Fri, 10 Oct 2008 17:06:22 +0000 (13:06 -0400)
committerRobert Noland <rnoland@2hip.net>
Fri, 10 Oct 2008 17:06:22 +0000 (13:06 -0400)
commitcdd3e9fc562bd57e0272e4c4d1c0707776bd01a1
tree97d7b554a5c040630fabcb693b7b26ab4ca5a9f1
parent1150a42d4398b14c5db2f34a5beba613528df147
[FreeBSD] Rework all of the memory allocations

Allocate memory from different pools.  This allows the OS to track memory
allocations for us, much like the linux memory debugging.  This will ease
tracking down memory leaks since the OS can track the number of allocations
from each pool and help to point us in the right direction.  Also replace
drm_alloc and friends with static __inline__ versions while we are here.
24 files changed:
bsd-core/ati_pcigart.c
bsd-core/drmP.h
bsd-core/drm_agpsupport.c
bsd-core/drm_auth.c
bsd-core/drm_bufs.c
bsd-core/drm_context.c
bsd-core/drm_dma.c
bsd-core/drm_drv.c
bsd-core/drm_fops.c
bsd-core/drm_ioctl.c
bsd-core/drm_irq.c
bsd-core/drm_memory.c
bsd-core/drm_pci.c
bsd-core/drm_scatter.c
bsd-core/drm_sysctl.c
bsd-core/i915_drv.c
bsd-core/mach64_drv.c
bsd-core/mga_drv.c
bsd-core/r128_drv.c
bsd-core/radeon_drv.c
bsd-core/savage_drv.c
bsd-core/sis_drv.c
bsd-core/tdfx_drv.c
bsd-core/via_drv.c