Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21413
b: refs/heads/master
c: 6cebb52
h: refs/heads/master
i:
  21411: feec358
v: v3
  • Loading branch information
David S. Miller committed Mar 20, 2006
1 parent 0bec554 commit ed8a429
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0d4bc95b9c205a7374afbe93b38d9c2757a45862
refs/heads/master: 6cebb52094baddd4c167bb5100a7cf6f7bee6910
35 changes: 20 additions & 15 deletions trunk/arch/sparc64/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ prom_map_name:
prom_unmap_name:
.asciz "unmap"
prom_sun4v_name:
.asciz "SUNW,sun4v"
.asciz "sun4v"
.align 4
prom_root_compatible:
.skip 64
Expand Down Expand Up @@ -300,7 +300,7 @@ sparc64_boot_after_remap:
or %g1, %lo(prom_root_compatible), %g1
sethi %hi(prom_sun4v_name), %g7
or %g7, %lo(prom_sun4v_name), %g7
mov 10, %g3
mov 5, %g3
1: ldub [%g7], %g2
ldub [%g1], %g4
cmp %g2, %g4
Expand Down Expand Up @@ -380,28 +380,33 @@ jump_to_sun4u_init:
nop

sun4u_init:
BRANCH_IF_SUN4V(g1, sun4v_init)

/* Set ctx 0 */
mov PRIMARY_CONTEXT, %g7

661: stxa %g0, [%g7] ASI_DMMU
.section .sun4v_1insn_patch, "ax"
.word 661b
stxa %g0, [%g7] ASI_MMU
.previous

stxa %g0, [%g7] ASI_DMMU
membar #Sync

mov SECONDARY_CONTEXT, %g7
stxa %g0, [%g7] ASI_DMMU
membar #Sync

661: stxa %g0, [%g7] ASI_DMMU
.section .sun4v_1insn_patch, "ax"
.word 661b
ba,pt %xcc, sun4u_continue
nop

sun4v_init:
/* Set ctx 0 */
mov PRIMARY_CONTEXT, %g7
stxa %g0, [%g7] ASI_MMU
.previous
membar #Sync

membar #Sync
mov SECONDARY_CONTEXT, %g7
stxa %g0, [%g7] ASI_MMU
membar #Sync
ba,pt %xcc, niagara_tlb_fixup
nop

BRANCH_IF_SUN4V(g1, niagara_tlb_fixup)
sun4u_continue:
BRANCH_IF_ANY_CHEETAH(g1, g7, cheetah_tlb_fixup)

ba,pt %xcc, spitfire_tlb_fixup
Expand Down

0 comments on commit ed8a429

Please sign in to comment.