123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185 |
- .macro DEBUG ch
- .endm
- .section .rodata
-
- .balign 1
- __tlb_lmax_sizes:
- .byte 0, 64, 0, 0
- .byte 0, 0, 0, 0
- .byte 0, 0, 0, 0
- .byte 0, 0, 0, 0
- .section .text
- .balign 4
- .globl __flush_tlb_all
- .type __flush_tlb_all,@function
- __flush_tlb_all:
- DEBUG 'A'
-
- setlos
- movgs gr4,scr0
- movgs gr4,scr1
-
- movgs gr0,iamlr1
- movgs gr0,iampr1
- movgs gr0,damlr1
- movgs gr0,dampr1
-
- movsg tpxr,gr5
- sethi.p %hi(__tlb_lmax_sizes),gr4
- srli gr5,
- setlo.p %lo(__tlb_lmax_sizes),gr4
- andi gr5,
- ldub @(gr4,gr5),gr4
-
- setlos.p
- setlos
- 1:
- tlbpr gr6,gr0,
- subicc.p gr4,
- add gr6,gr5,gr6
- bne icc0,
- DEBUG 'B'
- bralr
- .size __flush_tlb_all, .-__flush_tlb_all
- .globl __flush_tlb_mm
- .type __flush_tlb_mm,@function
- __flush_tlb_mm:
- DEBUG 'M'
-
- setlos
- movgs gr4,scr0
- movgs gr4,scr1
-
- movgs gr8,tplr
-
- movsg tpxr,gr5
- sethi.p %hi(__tlb_lmax_sizes),gr4
- srli gr5,
- setlo.p %lo(__tlb_lmax_sizes),gr4
- andi gr5,
- ldub @(gr4,gr5),gr4
-
- setlos.p
- setlos
- 0:
- tlbpr gr6,gr0,
- subicc.p gr4,
- add gr6,gr5,gr6
- bne icc0,
- DEBUG 'N'
- bralr
- .size __flush_tlb_mm, .-__flush_tlb_mm
- .globl __flush_tlb_page
- .type __flush_tlb_page,@function
- __flush_tlb_page:
-
- setlos
- movgs gr4,scr0
- movgs gr4,scr1
-
- movgs gr8,tplr
-
- setlos
- and gr9,gr5,gr9
- tlbpr gr9,gr0,
- bralr
- .size __flush_tlb_page, .-__flush_tlb_page
- .globl __flush_tlb_range
- .type __flush_tlb_range,@function
- __flush_tlb_range:
-
- setlos
- movgs gr4,scr0
- movgs gr4,scr1
-
- movgs gr8,tplr
-
- setlos.p
- setlos
- subi.p gr10,
- and gr9,gr5,gr9
- and gr10,gr5,gr10
- 2:
- tlbpr gr9,gr0,
- subcc.p gr9,gr10,gr0,icc0
- add gr9,gr6,gr9
- bne icc0,
- bralr
- .size __flush_tlb_range, .-__flush_tlb_range
|