]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[POWERPC] spufs: Add contents of npc file to SPU coredumps
authorMichael Ellerman <michael@ellerman.id.au>
Wed, 19 Sep 2007 04:38:12 +0000 (14:38 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 19 Sep 2007 05:12:19 +0000 (15:12 +1000)
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Acked-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/spufs/file.c

index 4cd34e53acaaf6ad6e19593f2b0e11d56d8a9371..985c86bb16d09b663b9ff1bcccb93bb76796dc09 100644 (file)
@@ -1606,12 +1606,17 @@ static void spufs_npc_set(void *data, u64 val)
        spu_release(ctx);
 }
 
+static u64 __spufs_npc_get(struct spu_context *ctx)
+{
+       return ctx->ops->npc_read(ctx);
+}
+
 static u64 spufs_npc_get(void *data)
 {
        struct spu_context *ctx = data;
        u64 ret;
        spu_acquire(ctx);
-       ret = ctx->ops->npc_read(ctx);
+       ret = __spufs_npc_get(ctx);
        spu_release(ctx);
        return ret;
 }
@@ -2242,5 +2247,6 @@ struct spufs_coredump_reader spufs_coredump_read[] = {
        { "proxydma_info", __spufs_proxydma_info_read,
                           NULL, sizeof(struct spu_proxydma_info)},
        { "object-id", NULL, __spufs_object_id_get, 19 },
+       { "npc", NULL, __spufs_npc_get, 19 },
        { NULL },
 };