W dniu 14 sierpnia 2011 19:10 użytkownik Michael Büsch <[email protected]> napisał: > On Sun, 14 Aug 2011 19:39:41 +0200 > Rafał Miłecki <[email protected]> wrote: > >> Some hardware with 64-bit DMA uses lower address word for setting >> routing (translation) bit. Add workaround for such boards. >> >> Signed-off-by: Rafał Miłecki <[email protected]> >> --- >> V2: use (u64) to fix compilation on 32-bit systems > > Note that there are the upper_32_bits() and lower_32_bits() > macros in kernel.h to address this problem.
I should have guess there is already sth for that. Worth noting compiler trick in upper_32_bits. ((n) >> 16) >> 16 I didn't think of that :) -- Rafał _______________________________________________ b43-dev mailing list [email protected] http://lists.infradead.org/mailman/listinfo/b43-dev
