]> git.karo-electronics.de Git - mv-sheeva.git/commit
powerpc/icswx: Simple ACOP fault handler
authorJimi Xenidis <jimix@pobox.com>
Thu, 29 Sep 2011 10:55:14 +0000 (10:55 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 25 Nov 2011 03:11:28 +0000 (14:11 +1100)
commitc3dcf53a3fcb01f1d98f6b0cf440bb781dbcbc34
tree8b0271a59dc103db39b3e8259419b9b549c89eae
parentfac26ad4f9cb794c9d1032f55f40a31cb55be09a
powerpc/icswx: Simple ACOP fault handler

This patch adds a fault handler that responds to illegal Coprocessor
types.  Currently all CTs are treated and illegal.  There are two ways
to report the fault back to the application.  If the application used
the record form ("icswx.") then the architected "reject" is emulated.
If the application did not used the record form ("icswx") then it is
selectable by config whether the failure is silent (as architected) or
a SIGILL is generated.

In all cases pr_warn() is used to log the bad CT.

Signed-off-by: Jimi Xenidis <jimix@pobox.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/fault.c
arch/powerpc/mm/icswx.c
arch/powerpc/mm/icswx.h
arch/powerpc/platforms/Kconfig.cputype