提交 8f362f8d 编写于 作者: M Mike Frysinger 提交者: Bryan Wu

Blackfin arch: remove #if check on L2_LENGTH

Signed-off-by: NMike Frysinger <vapier.adi@gmail.com>
Signed-off-by: NBryan Wu <cooloney@kernel.org>
上级 0c720da3
...@@ -37,7 +37,7 @@ int gdb_bfin_vector = -1; ...@@ -37,7 +37,7 @@ int gdb_bfin_vector = -1;
#define IN_MEM(addr, size, l1_addr, l1_size) \ #define IN_MEM(addr, size, l1_addr, l1_size) \
({ \ ({ \
unsigned long __addr = (unsigned long)(addr); \ 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 \ #define ASYNC_BANK_SIZE \
(ASYNC_BANK0_SIZE + ASYNC_BANK1_SIZE + \ (ASYNC_BANK0_SIZE + ASYNC_BANK1_SIZE + \
...@@ -495,10 +495,8 @@ static int validate_memory_access_address(unsigned long addr, int size) ...@@ -495,10 +495,8 @@ static int validate_memory_access_address(unsigned long addr, int size)
#endif #endif
} }
#if L2_LENGTH
if (IN_MEM(addr, size, L2_START, L2_LENGTH)) if (IN_MEM(addr, size, L2_START, L2_LENGTH))
return 0; return 0;
#endif
return EFAULT; return EFAULT;
} }
...@@ -714,10 +712,8 @@ int kgdb_validate_break_address(unsigned long addr) ...@@ -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)) else if (cpu == 1 && IN_MEM(addr, BREAK_INSTR_SIZE, COREB_L1_CODE_START, L1_CODE_LENGTH))
return 0; return 0;
#endif #endif
#if L2_LENGTH
if (IN_MEM(addr, BREAK_INSTR_SIZE, L2_START, L2_LENGTH)) if (IN_MEM(addr, BREAK_INSTR_SIZE, L2_START, L2_LENGTH))
return 0; return 0;
#endif
return EFAULT; return EFAULT;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册