Skip to content

Commit

Permalink
powerpc/powernv: Don't register exception handlers in little endian mode
Browse files Browse the repository at this point in the history
The powernv exception handlers are not ready to take exceptions
in little endian mode, so disable them.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
  • Loading branch information
Benjamin Herrenschmidt committed Oct 11, 2013
1 parent be401b3 commit 2918609
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/powerpc/platforms/powernv/opal.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ int __init early_init_dt_scan_opal(unsigned long node,

static int __init opal_register_exception_handlers(void)
{
#ifdef __BIG_ENDIAN__
u64 glue;

if (!(powerpc_firmware_features & FW_FEATURE_OPAL))
Expand All @@ -94,6 +95,7 @@ static int __init opal_register_exception_handlers(void)
0, glue);
glue += 128;
opal_register_exception_handler(OPAL_SOFTPATCH_HANDLER, 0, glue);
#endif

return 0;
}
Expand Down

0 comments on commit 2918609

Please sign in to comment.