diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-11-25 05:39:03 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-12-15 00:15:57 -0500 |
commit | 340a1be1eed07bb46c2f2d853e60234c1d5bb1c3 (patch) | |
tree | 65c090d15f72093370135b9cdc251825cd841f04 /arch/blackfin | |
parent | e187837b6f23c99c219ffc1d42aa18567f6e299d (diff) | |
download | linux-340a1be1eed07bb46c2f2d853e60234c1d5bb1c3.tar.gz linux-340a1be1eed07bb46c2f2d853e60234c1d5bb1c3.tar.xz |
Blackfin: drop ptrace() write support for fixed code/bootrom
These regions are either read-only and won't work anyways (bootrom), or
we don't want people screwing with them because they're shared between
all processes (fixed code).
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/kernel/ptrace.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/blackfin/kernel/ptrace.c b/arch/blackfin/kernel/ptrace.c index 56b0ba12175f..65567dc4b9f5 100644 --- a/arch/blackfin/kernel/ptrace.c +++ b/arch/blackfin/kernel/ptrace.c @@ -316,19 +316,6 @@ long arch_ptrace(struct task_struct *child, long request, long addr, long data) case BFIN_MEM_ACCESS_CORE_ONLY: copied = access_process_vm(child, addr, &data, to_copy, 1); - if (copied) - break; - - /* hrm, why didn't that work ... maybe no mapping */ - if (addr >= FIXED_CODE_START && - addr + to_copy <= FIXED_CODE_END) { - copy_to_user_page(0, 0, 0, paddr, &data, to_copy); - copied = to_copy; - } else if (addr >= BOOT_ROM_START) { - memcpy(paddr, &data, to_copy); - copied = to_copy; - } - break; case BFIN_MEM_ACCESS_DMA: if (safe_dma_memcpy(paddr, &data, to_copy)) |