Skip to content
  • Alexander Graf's avatar
    PPC64: Fix timebase · e3ea6529
    Alexander Graf authored
    
    
    On PPC we have a 64-bit time base. Usually (PPC32) this is accessed using
    two separate 32 bit SPR accesses to SPR_TBU and SPR_TBL.
    
    On PPC64 the SPR_TBL register acts as 64 bit though, so we get the full
    64 bits as return value. If we only take the lower ones, fine. But Linux
    wants to see all 64 bits or it breaks.
    
    This patch makes PPC64 Linux work even after TB crossed the 32-bit boundary,
    which usually happened a few seconds after bootup.
    
    Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
    Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
    e3ea6529