1/* 2 * Initial implementation: 3 * Copyright (c) 2001 Robert Drehmel 4 * All rights reserved. 5 * 6 * As long as the above copyright statement and this notice remain 7 * unchanged, you can do what ever you want with this file. 8 * |
9 * $FreeBSD: head/sys/boot/sparc64/loader/locore.S 97445 2002-05-29 05:49:59Z jake $ |
10 */ 11 12#define LOCORE 13 14#include <machine/asi.h> 15#include <machine/asm.h> 16#include <machine/pstate.h> 17#include <machine/smp.h> --- 69 unchanged lines hidden (view full) --- 87 88/* 89 * %o0 = vpn 90 * %o1 = tte data 91 */ 92ENTRY(itlb_enter) 93 rdpr %pstate, %o4 94 wrpr %o4, PSTATE_IE, %pstate |
95 mov AA_IMMU_TAR, %o3 96 stxa %o0, [%o3] ASI_IMMU 97 stxa %o1, [%g0] ASI_ITLB_DATA_IN_REG 98 membar #Sync 99 retl 100 wrpr %o4, 0, %pstate 101 102ENTRY(dtlb_enter) 103 rdpr %pstate, %o4 104 wrpr %o4, PSTATE_IE, %pstate |
105 mov AA_DMMU_TAR, %o3 106 stxa %o0, [%o3] ASI_DMMU 107 stxa %o1, [%g0] ASI_DTLB_DATA_IN_REG 108 membar #Sync 109 retl 110 wrpr %o4, 0, %pstate 111 112 .comm stack, STACK_SIZE, 32 113 .comm smp_stack, STACK_SIZE, 32 |