Deleted Added
full compact
locore.S (93678) locore.S (97445)
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 *
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 93678 2002-04-02 17:10:15Z tmm $
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
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 sllx %o0, PAGE_SHIFT, %o0
96 mov AA_IMMU_TAR, %o3
97 stxa %o0, [%o3] ASI_IMMU
98 stxa %o1, [%g0] ASI_ITLB_DATA_IN_REG
99 membar #Sync
100 retl
101 wrpr %o4, 0, %pstate
102
103ENTRY(dtlb_enter)
104 rdpr %pstate, %o4
105 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
106 sllx %o0, PAGE_SHIFT, %o0
107 mov AA_DMMU_TAR, %o3
108 stxa %o0, [%o3] ASI_DMMU
109 stxa %o1, [%g0] ASI_DTLB_DATA_IN_REG
110 membar #Sync
111 retl
112 wrpr %o4, 0, %pstate
113
114 .comm stack, STACK_SIZE, 32
115 .comm smp_stack, STACK_SIZE, 32
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