ARM: 5746/1: Handle possible translation errors in ARMv6/v7 coherent_user_range
authorCatalin Marinas <catalin.marinas@arm.com>
Tue, 6 Oct 2009 16:57:09 +0000 (17:57 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 7 Oct 2009 12:12:59 +0000 (13:12 +0100)
commit32cfb1b16f2b68d2296536811cadfffe26a06c1b
tree6872f034656cc4ffb80ba51f9b29c35bb8da9f9e
parentcc1ad4a69667be885ac6036a315066854ef8c871
ARM: 5746/1: Handle possible translation errors in ARMv6/v7 coherent_user_range

This is needed because applications using the sys_cacheflush system call
can pass a memory range which isn't mapped yet even though the
corresponding vma is valid. The patch also adds unwinding annotations
for correct backtraces from the coherent_user_range() functions.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/cache-v6.S
arch/arm/mm/cache-v7.S