aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorMichael Ellerman <michael@ellerman.id.au>2007-09-19 00:38:12 -0400
committerPaul Mackerras <paulus@samba.org>2007-09-19 01:12:19 -0400
commit78810ff6723f20015373b1ba8dd981f24c62f680 (patch)
tree10d92709e7dad244822f5820230beace2b00f533 /arch
parent74de08bc10dd4d67870cf5b6c5aaf6875cd869c5 (diff)
[POWERPC] spufs: Add contents of npc file to SPU coredumps
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/platforms/cell/spufs/file.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/file.c b/arch/powerpc/platforms/cell/spufs/file.c
index 4cd34e53acaa..985c86bb16d0 100644
--- a/arch/powerpc/platforms/cell/spufs/file.c
+++ b/arch/powerpc/platforms/cell/spufs/file.c
@@ -1606,12 +1606,17 @@ static void spufs_npc_set(void *data, u64 val)
1606 spu_release(ctx); 1606 spu_release(ctx);
1607} 1607}
1608 1608
1609static u64 __spufs_npc_get(struct spu_context *ctx)
1610{
1611 return ctx->ops->npc_read(ctx);
1612}
1613
1609static u64 spufs_npc_get(void *data) 1614static u64 spufs_npc_get(void *data)
1610{ 1615{
1611 struct spu_context *ctx = data; 1616 struct spu_context *ctx = data;
1612 u64 ret; 1617 u64 ret;
1613 spu_acquire(ctx); 1618 spu_acquire(ctx);
1614 ret = ctx->ops->npc_read(ctx); 1619 ret = __spufs_npc_get(ctx);
1615 spu_release(ctx); 1620 spu_release(ctx);
1616 return ret; 1621 return ret;
1617} 1622}
@@ -2242,5 +2247,6 @@ struct spufs_coredump_reader spufs_coredump_read[] = {
2242 { "proxydma_info", __spufs_proxydma_info_read, 2247 { "proxydma_info", __spufs_proxydma_info_read,
2243 NULL, sizeof(struct spu_proxydma_info)}, 2248 NULL, sizeof(struct spu_proxydma_info)},
2244 { "object-id", NULL, __spufs_object_id_get, 19 }, 2249 { "object-id", NULL, __spufs_object_id_get, 19 },
2250 { "npc", NULL, __spufs_npc_get, 19 },
2245 { NULL }, 2251 { NULL },
2246}; 2252};