Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127089
b: refs/heads/master
c: 8f362f8
h: refs/heads/master
i:
  127087: 583e89c
v: v3
  • Loading branch information
Mike Frysinger authored and Bryan Wu committed Jan 7, 2009
1 parent 7f2762f commit a89c3aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 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: 0c720da35c1eeba49fe0bbec6e6d4f732afc56f4
refs/heads/master: 8f362f8d7b743adb7279c5371dfccd8edcb224fc
6 changes: 1 addition & 5 deletions trunk/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 a89c3aa

Please sign in to comment.