lkml.org 
[lkml]   [2008]   [Jun]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: usb_get_status(): what a weird implementation !
On Mon, Jun 30, 2008 at 3:51 PM, Oliver Neukum <oliver@neukum.org> wrote:
>
> If your buffer is smaller than CACHE_LINE_SIZE it should work.
> However, this needs input from people who understand DMA in and out.

yeah, that's the reason why it's a hack.

Maybe adding a new helper in the dma API would be better...

> But how large is 2 * CACHE_LINE_SIZE compared to the kernel stack?

CACHE_LINE_SIZE = 32 bytes is common for embedded systems I guess.
For big system, I dunno.

Kernel stack size is usually 4KiB.

--
Francis


\
 
 \ /
  Last update: 2008-06-30 16:07    [W:0.082 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site