• O
    [POWERPC] force 64bit mode in fwnmi handlers to workaround firmware bugs · 9fc0a92c
    Olaf Hering 提交于
    The firmware of POWER4 and JS20 systems does not switch the cpu to 64bit
    mode when the registered system_reset and machine_check handlers get called.
    If a 32bit process runs on that cpu at the time of the event, the cpu
    remains in 32bit mode. xmon and kdump can not deal with it, the result is
    an error like 'Bad kernel stack pointer fff2aad0 at 3200'.
    xmon just loses some register info, but booting the kdump kernel usually fails.
    
    Both handlers are not hot paths.  Duplicate the EXCEPTION_PROLOG_PSERIES macro
    and add two instructions to switch to 64bit:
    
     li     r11,5;
     rldimi r10,r11,61,0;
    Signed-off-by: NOlaf Hering <olh@suse.de>
    Signed-off-by: NPaul Mackerras <paulus@samba.org>
    9fc0a92c
head_64.S 52.9 KB