Skip to content

Commit

Permalink
Blackfin arch: remove #if check on L2_LENGTH
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
  • Loading branch information
Mike Frysinger authored and Bryan Wu committed Jan 7, 2009
1 parent 0c720da commit 8f362f8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions arch/blackfin/kernel/kgdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ int gdb_bfin_vector = -1;
#define IN_MEM(addr, size, l1_addr, l1_size) \
({ \
unsigned long __addr = (unsigned long)(addr); \
(__addr >= l1_addr && __addr + (size) <= l1_addr + l1_size); \
(l1_size && __addr >= l1_addr && __addr + (size) <= l1_addr + l1_size); \
})
#define ASYNC_BANK_SIZE \
(ASYNC_BANK0_SIZE + ASYNC_BANK1_SIZE + \
Expand Down Expand Up @@ -495,10 +495,8 @@ static int validate_memory_access_address(unsigned long addr, int size)
#endif
}

#if L2_LENGTH
if (IN_MEM(addr, size, L2_START, L2_LENGTH))
return 0;
#endif

return EFAULT;
}
Expand Down Expand Up @@ -714,10 +712,8 @@ int kgdb_validate_break_address(unsigned long addr)
else if (cpu == 1 && IN_MEM(addr, BREAK_INSTR_SIZE, COREB_L1_CODE_START, L1_CODE_LENGTH))
return 0;
#endif
#if L2_LENGTH
if (IN_MEM(addr, BREAK_INSTR_SIZE, L2_START, L2_LENGTH))
return 0;
#endif

return EFAULT;
}
Expand Down

0 comments on commit 8f362f8

Please sign in to comment.