mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
add some gcc 4.0 fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@764 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -745,7 +745,7 @@ crc32(
|
||||
/* handle bulk of data as 32-bit words */
|
||||
pend = pdata + (nbytes & 0xfffffffc);
|
||||
while (pdata < pend) {
|
||||
*tptr = *((ulong *)pdata)++;
|
||||
*tptr = (*((ulong *)pdata))++;
|
||||
CRC_INNER_LOOP(32, crc, tmp[0]);
|
||||
CRC_INNER_LOOP(32, crc, tmp[1]);
|
||||
CRC_INNER_LOOP(32, crc, tmp[2]);
|
||||
|
||||
@@ -136,7 +136,7 @@ sb_read_sbreg(void *sbh, volatile uint32 *sbr)
|
||||
INTR_OFF(si, intr_val);
|
||||
tmp = 1;
|
||||
OSL_PCMCIA_WRITE_ATTR(si->osh, MEM_SEG, &tmp, 1);
|
||||
(uint32)sbr &= ~(1 << 11); /* mask out bit 11*/
|
||||
sbr = (uint32 *) (((uint32) sbr) & ~(1 << 11)); /* mask out bit 11*/
|
||||
}
|
||||
|
||||
val = R_REG(sbr);
|
||||
@@ -170,7 +170,7 @@ sb_write_sbreg(void *sbh, volatile uint32 *sbr, uint32 v)
|
||||
INTR_OFF(si, intr_val);
|
||||
tmp = 1;
|
||||
OSL_PCMCIA_WRITE_ATTR(si->osh, MEM_SEG, &tmp, 1);
|
||||
(uint32)sbr &= ~(1 << 11); /* mask out bit 11 */
|
||||
sbr = (uint32 *) (((uint32) sbr) & ~(1 << 11)); /* mask out bit 11*/
|
||||
}
|
||||
|
||||
if (si->bus == PCMCIA_BUS) {
|
||||
|
||||
Reference in New Issue
Block a user