Blackfin: unify memory region checks between kgdb and traps
authorMike Frysinger <vapier@gentoo.org>
Sun, 7 Jun 2009 20:31:52 +0000 (16:31 -0400)
committerMike Frysinger <vapier@gentoo.org>
Tue, 23 Jun 2009 01:15:34 +0000 (21:15 -0400)
commite56e03b0cfeb997a4be9ad874c193824364942e0
tree5a49f9a42d1577c13ee59d016bd0630c60de58d1
parentac1b7c378ef26fba6694d5f118fe7fc16fee2fe2
Blackfin: unify memory region checks between kgdb and traps

The kgdb (in multiple places) and traps code developed pretty much
identical checks for how to access different regions of the Blackfin
memory map, but each wasn't 100%, so unify them to avoid duplication,
bitrot, and bugs with edge cases.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/include/asm/uaccess.h
arch/blackfin/kernel/kgdb.c
arch/blackfin/kernel/process.c
arch/blackfin/kernel/traps.c