Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright (C) 2006-2007 PA Semi, Inc
0004  *
0005  * Maintained by: Olof Johansson <olof@lixom.net>
0006  */
0007 
0008 #include <asm/processor.h>
0009 #include <asm/page.h>
0010 #include <asm/cputable.h>
0011 #include <asm/ppc_asm.h>
0012 #include <asm/asm-offsets.h>
0013 #include <asm/cache.h>
0014 
0015 /* Right now, restore and setup are the same thing */
0016 _GLOBAL(__restore_cpu_pa6t)
0017 _GLOBAL(__setup_cpu_pa6t)
0018     /* Do nothing if not running in HV mode */
0019     mfmsr   r0
0020     rldicl. r0,r0,4,63
0021     beqlr
0022 
0023     mfspr   r0,SPRN_HID5
0024     ori r0,r0,0x38
0025     mtspr   SPRN_HID5,r0
0026 
0027     mfspr   r0,SPRN_LPCR
0028     ori r0,r0,0x7000
0029     mtspr   SPRN_LPCR,r0
0030 
0031     blr