DragonFly bugs List (threaded) for 2008-08
DragonFly BSD
DragonFly bugs List (threaded) for 2008-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: DVD playback not working


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Sun, 10 Aug 2008 09:43:38 -0700 (PDT)

:    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>



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]