Blackfin: export the last exception cause via debugfs
authorRobin Getz <robin.getz@analog.com>
Wed, 3 Jun 2009 18:58:26 +0000 (18:58 +0000)
committerMike Frysinger <vapier@gentoo.org>
Fri, 12 Jun 2009 10:15:28 +0000 (06:15 -0400)
commit81f7f45606812f1d15d618c2646d0f33ca111f87
tree5b105be6f9b8bcac9172690ffc62d02ad8199391
parent0a990614264f04879d9608da1cfcf9a6596efe08
Blackfin: export the last exception cause via debugfs

We have some test code that runs in userspace that exercises the exception
handling of the Blackfin pretty thoroughly.  Part of the validation process
is checking the exact exception triggered, so export the last one seen to
userspace via debugfs when debugging is enabled for the test code to check.

Signed-off-by: Robin Getz <robin.getz@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/kernel/traps.c