Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 7075
b: refs/heads/master
c: dbd2fdf
h: refs/heads/master
i:
  7073: 3c0ef53
  7071: f14a338
v: v3
  • Loading branch information
David S. Miller committed Aug 30, 2005
1 parent f481826 commit 34ac694
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 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: d7ce78fd9a51ca0d6b9a8cf35baef884ddb9a95c
refs/heads/master: dbd2fdf549317de00e0b5ea465de5372039b7ee8
3 changes: 2 additions & 1 deletion trunk/arch/sparc64/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -538,11 +538,12 @@ cheetah_tlb_fixup:
nop
call cheetah_plus_patch_winfixup
nop


2: /* Patch copy/page operations to cheetah optimized versions. */
call cheetah_patch_copyops
nop
call cheetah_patch_copy_page
nop
call cheetah_patch_cachetlbops
nop

Expand Down
13 changes: 12 additions & 1 deletion trunk/arch/sparc64/lib/copy_page.S
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ copy_user_page: /* %o0=dest, %o1=src, %o2=vaddr */
membar #Sync
wrpr %o2, 0x0, %pstate

BRANCH_IF_ANY_CHEETAH(g3,o2,1f)
cheetah_copy_page_insn:
ba,pt %xcc, 9f
nop

Expand Down Expand Up @@ -240,3 +240,14 @@ copy_user_page: /* %o0=dest, %o1=src, %o2=vaddr */
stw %o4, [%g6 + TI_PRE_COUNT]

.size copy_user_page, .-copy_user_page

.globl cheetah_patch_copy_page
cheetah_patch_copy_page:
sethi %hi(0x01000000), %o1 ! NOP
sethi %hi(cheetah_copy_page_insn), %o0
or %o0, %lo(cheetah_copy_page_insn), %o0
stw %o1, [%o0]
membar #StoreStore
flush %o0
retl
nop

0 comments on commit 34ac694

Please sign in to comment.