Path: blob/master/arch/powerpc/platforms/44x/misc_44x.S
10820 views
/*1* This file contains miscellaneous low-level functions for PPC 44x.2* Copyright 2007 David Gibson <[email protected]>, IBM Corporation.3*4* This program is free software; you can redistribute it and/or5* modify it under the terms of the GNU General Public License6* as published by the Free Software Foundation; either version7* 2 of the License, or (at your option) any later version.8*9*/1011#include <asm/reg.h>12#include <asm/ppc_asm.h>1314.text1516/*17* Do an IO access in AS118*/19_GLOBAL(as1_readb)20mfmsr r721ori r0,r7,MSR_DS22sync23mtmsr r024sync25isync26lbz r3,0(r3)27sync28mtmsr r729sync30isync31blr3233_GLOBAL(as1_writeb)34mfmsr r735ori r0,r7,MSR_DS36sync37mtmsr r038sync39isync40stb r3,0(r4)41sync42mtmsr r743sync44isync45blr464748