DragonFly BSD
 

Message5208

Author dillon
Recipients corecode
Date 2008-08-10.16:47:00
Content
:    if( psz_cache )
:    {
:        uint8_t p_sector[DVDCSS_BLOCK_SIZE];
:...
:	i_ret = dvdcss->pf_read( dvdcss, p_sector, 1 );
:    }
:
:	Can leave p_sector not aligned suitably for DMA in gcc-4 ? (pf_read
:winds up calling read on the DVD device with p_sector as the buffer).

    It's a roll of dice, really.  Neither gcc-3 nor gcc-4 guarantee any
    sort of alignment for a char array, and our kernel's physio() doesn't 
    realign the data.

    Well, I guess since nobody has bitten on fixing physio() I'll have to
    do it myself :-).  I'll do it today.

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>
History
Date User Action Args
2008-08-10 16:47:01dillonsetrecipients: + corecode
2008-08-10 16:47:01dillonlinkissue1068 messages
2008-08-10 16:47:00dilloncreate