/* No need to lock here because we should be the only user.  */
static void native_hpte_updateboltedpp(unsigned long newpp, unsigned long ea, int psize, int ssize)
/* No need to lock here because we should be the only user.  */
static void native_hpte_updateboltedpp(unsigned long newpp, unsigned long ea, int psize, int ssize)
{
	unsigned long vsid, va;
	long slot;
	struct hash_pte *hptep;
	vsid = get_kernel_vsid(ea, ssize);
	va = hpt_va(ea, vsid, ssize);
	slot = native_hpte_find(va, psize, ssize);
	if (slot == -1)
		panic("could not find page to bolt\n");
	hptep = htab_address + slot;
	hptep->r = (hptep->r & ~(HPTE_R_PP | HPTE_R_N)) |
		(newpp & (HPTE_R_PP | HPTE_R_N));
	tlbie(va, psize, ssize, 0);
}