• B
    ppc: Make alignment exceptions suck less · 3433b732
    Benjamin Herrenschmidt 提交于
    The current alignment exception generation tries to load the opcode
    to put in DSISR from a context where a cpu_ldl_code() is really not
    a good idea. It might fault and longjmp out and that's not something
    we want happening here.
    
    Instead, pass the releavant opcode bits via the error_code.
    
    There are a couple of cases of alignment interrupts that won't set
    anything, the ones coming from access to direct store segments, but
    that doesn't happen in practice, nobody used direct store segments
    and they are gone from newer chips.
    Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
    Signed-off-by: NDavid Gibson <david@gibson.dropbear.id.au>
    3433b732
excp_helper.c 37.2 KB