Search
lxdream.org :: lxdream/src/asic.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/asic.c
changeset 430:467519b050f4
prev422:61a0598e07ff
next549:828d103ad115
author nkeynes
date Mon Oct 08 12:09:06 2007 +0000 (16 years ago)
permissions -rw-r--r--
last change Fix compilation warnings
file annotate diff log raw
1.1 --- a/src/asic.c Sat Oct 06 09:03:24 2007 +0000
1.2 +++ b/src/asic.c Mon Oct 08 12:09:06 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: asic.c,v 1.29 2007-10-06 08:59:42 nkeynes Exp $
1.6 + * $Id: asic.c,v 1.30 2007-10-08 12:06:01 nkeynes Exp $
1.7 *
1.8 * Support for the miscellaneous ASIC functions (Primarily event multiplexing,
1.9 * and DMA).
1.10 @@ -272,7 +272,7 @@
1.11 uint32_t length = MMIO_READ( EXTDMA, G2DMA0SIZ + offset ) & 0x1FFFFFFF;
1.12 uint32_t dir = MMIO_READ( EXTDMA, G2DMA0DIR + offset );
1.13 // uint32_t mode = MMIO_READ( EXTDMA, G2DMA0MOD + offset );
1.14 - char buf[length];
1.15 + unsigned char buf[length];
1.16 if( dir == 0 ) { /* SH4 to device */
1.17 mem_copy_from_sh4( buf, sh4addr, length );
1.18 mem_copy_to_sh4( extaddr, buf, length );
1.19 @@ -311,7 +311,7 @@
1.20 {
1.21 sh4addr_t destaddr = MMIO_READ( ASIC, PVRDMADEST) &0x1FFFFFE0;
1.22 uint32_t count = MMIO_READ( ASIC, PVRDMACNT );
1.23 - char *data = alloca( count );
1.24 + unsigned char *data = alloca( count );
1.25 uint32_t rcount = DMAC_get_buffer( 2, data, count );
1.26 if( rcount != count )
1.27 WARN( "PVR received %08X bytes from DMA, expected %08X", rcount, count );
.