[Cbe-oss-dev] [PATCH] powerpc: cell spu problem state mapping updates

Christoph Hellwig hch at lst.de
Sat Oct 7 18:57:38 EST 2006


On Fri, Sep 29, 2006 at 03:10:05PM +1000, Benjamin Herrenschmidt wrote:
> This patch adds a new "psmap" file to spufs that allows mmap of all of
> the problem state mapping of SPEs. It is compatible with 64k pages. In
> addition, it removes mmap ability of individual files when using 64k
> pages, with the exception of signal1 and signal2 which will both map the
> entire 64k page holding both registers. It also removes
> CONFIG_SPUFS_MMAP as there is no point in not building mmap support in
> spufs.
> 
> It goes along a separate patch to libspe implementing usage of that new
> file to access problem state registers.
> 
> Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
> ---

> Index: linux-cell/arch/powerpc/platforms/cell/spufs/file.c
> ===================================================================
> --- linux-cell.orig/arch/powerpc/platforms/cell/spufs/file.c	2006-09-29 15:04:30.000000000 +1000
> +++ linux-cell/arch/powerpc/platforms/cell/spufs/file.c	2006-09-29 15:04:46.000000000 +1000
> @@ -36,6 +36,8 @@
>  
>  #include "spufs.h"
>  
> +#define SPUFS_MMAP_4K (PAGE_SIZE == 0x1000)

Here and later you specifiy the page size in hexadecimal which isn't all
that readable to the casual observer.




More information about the cbe-oss-dev mailing list