diff options
author | Mike Frysinger <vapier.adi@gmail.com> | 2009-01-07 10:14:39 -0500 |
---|---|---|
committer | Bryan Wu <cooloney@kernel.org> | 2009-01-07 10:14:39 -0500 |
commit | 8f362f8d7b743adb7279c5371dfccd8edcb224fc (patch) | |
tree | 9f5116474abd4c91487042c950cebcdd95d8ebcd /arch/blackfin | |
parent | 0c720da35c1eeba49fe0bbec6e6d4f732afc56f4 (diff) |
Blackfin arch: remove #if check on L2_LENGTH
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
Diffstat (limited to 'arch/blackfin')
-rw-r--r-- | arch/blackfin/kernel/kgdb.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/blackfin/kernel/kgdb.c b/arch/blackfin/kernel/kgdb.c index 62c3032d843e..6e9af2985915 100644 --- a/arch/blackfin/kernel/kgdb.c +++ b/arch/blackfin/kernel/kgdb.c | |||
@@ -37,7 +37,7 @@ int gdb_bfin_vector = -1; | |||
37 | #define IN_MEM(addr, size, l1_addr, l1_size) \ | 37 | #define IN_MEM(addr, size, l1_addr, l1_size) \ |
38 | ({ \ | 38 | ({ \ |
39 | unsigned long __addr = (unsigned long)(addr); \ | 39 | unsigned long __addr = (unsigned long)(addr); \ |
40 | (__addr >= l1_addr && __addr + (size) <= l1_addr + l1_size); \ | 40 | (l1_size && __addr >= l1_addr && __addr + (size) <= l1_addr + l1_size); \ |
41 | }) | 41 | }) |
42 | #define ASYNC_BANK_SIZE \ | 42 | #define ASYNC_BANK_SIZE \ |
43 | (ASYNC_BANK0_SIZE + ASYNC_BANK1_SIZE + \ | 43 | (ASYNC_BANK0_SIZE + ASYNC_BANK1_SIZE + \ |
@@ -495,10 +495,8 @@ static int validate_memory_access_address(unsigned long addr, int size) | |||
495 | #endif | 495 | #endif |
496 | } | 496 | } |
497 | 497 | ||
498 | #if L2_LENGTH | ||
499 | if (IN_MEM(addr, size, L2_START, L2_LENGTH)) | 498 | if (IN_MEM(addr, size, L2_START, L2_LENGTH)) |
500 | return 0; | 499 | return 0; |
501 | #endif | ||
502 | 500 | ||
503 | return EFAULT; | 501 | return EFAULT; |
504 | } | 502 | } |
@@ -714,10 +712,8 @@ int kgdb_validate_break_address(unsigned long addr) | |||
714 | else if (cpu == 1 && IN_MEM(addr, BREAK_INSTR_SIZE, COREB_L1_CODE_START, L1_CODE_LENGTH)) | 712 | else if (cpu == 1 && IN_MEM(addr, BREAK_INSTR_SIZE, COREB_L1_CODE_START, L1_CODE_LENGTH)) |
715 | return 0; | 713 | return 0; |
716 | #endif | 714 | #endif |
717 | #if L2_LENGTH | ||
718 | if (IN_MEM(addr, BREAK_INSTR_SIZE, L2_START, L2_LENGTH)) | 715 | if (IN_MEM(addr, BREAK_INSTR_SIZE, L2_START, L2_LENGTH)) |
719 | return 0; | 716 | return 0; |
720 | #endif | ||
721 | 717 | ||
722 | return EFAULT; | 718 | return EFAULT; |
723 | } | 719 | } |