Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67348
b: refs/heads/master
c: 59000b5
h: refs/heads/master
v: v3
  • Loading branch information
Michael Ellerman authored and Paul Mackerras committed Sep 19, 2007
1 parent f9b4295 commit e128996
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 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: d464fb441071a3d65bde2264c5f97f9ca47ce5c3
refs/heads/master: 59000b53c7ea07531018b6cf1f5fcd21e881867a
16 changes: 2 additions & 14 deletions trunk/arch/powerpc/platforms/cell/spufs/coredump.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,6 @@ static int spufs_dump_seek(struct file *file, loff_t off)
return 1;
}

static u64 ctx_ls_size(struct spu_context *ctx)
{
return ctx->csa.priv2.spu_lslr_RW + 1;
}

static int spufs_ctx_note_size(struct spu_context *ctx, int dfd)
{
int i, sz, total = 0;
Expand All @@ -85,10 +80,7 @@ static int spufs_ctx_note_size(struct spu_context *ctx, int dfd)

total += sizeof(struct elf_note);
total += roundup(strlen(fullname) + 1, 4);
if (!strcmp(name, "mem"))
total += roundup(ctx_ls_size(ctx), 4);
else
total += roundup(sz, 4);
total += roundup(sz, 4);
}

return total;
Expand Down Expand Up @@ -164,11 +156,7 @@ static void spufs_arch_write_note(struct spu_context *ctx, int i,
return;

name = spufs_coredump_read[i].name;

if (!strcmp(name, "mem"))
sz = ctx_ls_size(ctx);
else
sz = spufs_coredump_read[i].size;
sz = spufs_coredump_read[i].size;

sprintf(fullname, "SPU/%d/%s", dfd, name);
en.n_namesz = strlen(fullname) + 1;
Expand Down

0 comments on commit e128996

Please sign in to comment.