Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67352
b: refs/heads/master
c: 78810ff
h: refs/heads/master
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Sep 19, 2007
1 parent c1a8350 commit 73b84e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 74de08bc10dd4d67870cf5b6c5aaf6875cd869c5
refs/heads/master: 78810ff6723f20015373b1ba8dd981f24c62f680
8 changes: 7 additions & 1 deletion trunk/arch/powerpc/platforms/cell/spufs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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 },
};

0 comments on commit 73b84e8

Please sign in to comment.