diff options
author | cognet <cognet@FreeBSD.org> | 2007-05-19 13:17:31 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2007-05-19 13:17:31 +0000 |
commit | 18046753b11873721259299d098b042afcedf055 (patch) | |
tree | 6bdf72e183ea440f4ec8dadf13a105f8ea3827ce /sys/arm | |
parent | 797bdcc549d01b2416969e9d1df898f99bde3929 (diff) | |
download | FreeBSD-src-18046753b11873721259299d098b042afcedf055.zip FreeBSD-src-18046753b11873721259299d098b042afcedf055.tar.gz |
Do not try to inline bus_dmamap_sync_buf(), gcc 4.2 doesn't want to do so
because it uses alloca().
Initialize lastaddr in bus_dmamap_load_uio().
Diffstat (limited to 'sys/arm')
-rw-r--r-- | sys/arm/arm/busdma_machdep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arm/arm/busdma_machdep.c b/sys/arm/arm/busdma_machdep.c index 3940f98..f8d2725 100644 --- a/sys/arm/arm/busdma_machdep.c +++ b/sys/arm/arm/busdma_machdep.c @@ -1003,7 +1003,7 @@ bus_dmamap_load_uio(bus_dma_tag_t dmat, bus_dmamap_t map, struct uio *uio, bus_dmamap_callback2_t *callback, void *callback_arg, int flags) { - vm_offset_t lastaddr; + vm_offset_t lastaddr = 0; #ifdef __CC_SUPPORTS_DYNAMIC_ARRAY_INIT bus_dma_segment_t dm_segments[dmat->nsegments]; #else @@ -1079,7 +1079,7 @@ _bus_dmamap_unload(bus_dma_tag_t dmat, bus_dmamap_t map) return; } -static __inline void +static void bus_dmamap_sync_buf(void *buf, int len, bus_dmasync_op_t op) { char _tmp_cl[arm_dcache_align], _tmp_clend[arm_dcache_align]; |