Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132094
b: refs/heads/master
c: 7786ce8
h: refs/heads/master
v: v3
  • Loading branch information
Jie Zhang authored and Bryan Wu committed Mar 5, 2009
1 parent c7405b9 commit 1daca1f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 27276ba21fe590edc43305f483565aa02010bbbb
refs/heads/master: 7786ce823b1c9a3de01a63857e3451890cb4e81c
5 changes: 3 additions & 2 deletions trunk/arch/blackfin/kernel/ptrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#include <asm/asm-offsets.h>
#include <asm/dma.h>
#include <asm/fixed_code.h>
#include <asm/cacheflush.h>
#include <asm/mem_map.h>

#define TEXT_OFFSET 0
Expand Down Expand Up @@ -240,7 +241,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)

} else if (addr >= FIXED_CODE_START
&& addr + sizeof(tmp) <= FIXED_CODE_END) {
memcpy(&tmp, (const void *)(addr), sizeof(tmp));
copy_from_user_page(0, 0, 0, &tmp, (const void *)(addr), sizeof(tmp));
copied = sizeof(tmp);

} else
Expand Down Expand Up @@ -320,7 +321,7 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data)

} else if (addr >= FIXED_CODE_START
&& addr + sizeof(data) <= FIXED_CODE_END) {
memcpy((void *)(addr), &data, sizeof(data));
copy_to_user_page(0, 0, 0, (void *)(addr), &data, sizeof(data));
copied = sizeof(data);

} else
Expand Down

0 comments on commit 1daca1f

Please sign in to comment.