lkml.org 
[lkml]   [2010]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2] [RESEND] Handle instruction cache maintenance fault properly
From
Date
On Tue, 2010-05-11 at 11:33 +0100, Kirill A. Shutemov wrote:
> diff --git a/arch/arm/mm/fault.c b/arch/arm/mm/fault.c
> index 9d40c34..7f193ea 100644
> --- a/arch/arm/mm/fault.c
> +++ b/arch/arm/mm/fault.c
> @@ -463,7 +463,12 @@ static struct fsr_info {
> { do_bad, SIGILL, BUS_ADRALN, "alignment exception" },
> { do_bad, SIGKILL, 0, "terminal exception" },
> { do_bad, SIGILL, BUS_ADRALN, "alignment exception" },
> +/* Do we need runtime check ? */
> +#if __LINUX_ARM_ARCH__ < 6
> { do_bad, SIGBUS, 0, "external abort on linefetch" },
> +#else
> + { do_translation_fault, SIGSEGV, SEGV_MAPPER, "I-cache maintenance
> fault" },
> +#endif

Apart from line wrapping, it should be SEGV_MAPERR above.

--
Catalin



\
 
 \ /
  Last update: 2010-05-14 15:33    [W:2.427 / U:0.528 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site