Path: blob/master/arch/powerpc/kernel/cpu_setup_pa6t.S
10818 views
/*1* Copyright (C) 2006-2007 PA Semi, Inc2*3* Maintained by: Olof Johansson <[email protected]>4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License version 2 as7* published by the Free Software Foundation.8*9* This program is distributed in the hope that it will be useful,10* but WITHOUT ANY WARRANTY; without even the implied warranty of11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12* GNU General Public License for more details.13*14* You should have received a copy of the GNU General Public License15* along with this program; if not, write to the Free Software16* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA17*18*/1920#include <asm/processor.h>21#include <asm/page.h>22#include <asm/cputable.h>23#include <asm/ppc_asm.h>24#include <asm/asm-offsets.h>25#include <asm/cache.h>2627/* Right now, restore and setup are the same thing */28_GLOBAL(__restore_cpu_pa6t)29_GLOBAL(__setup_cpu_pa6t)30/* Do nothing if not running in HV mode */31mfmsr r032rldicl. r0,r0,4,6333beqlr3435mfspr r0,SPRN_HID536ori r0,r0,0x3837mtspr SPRN_HID5,r03839mfspr r0,SPRN_LPCR40ori r0,r0,0x700041mtspr SPRN_LPCR,r04243blr444546