1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 #include <linux/linkage.h>
16 #include <linux/sys.h>
17 #include <asm/unistd.h>
18 #include <linux/errno.h>
19 #include <asm/mmu.h>
20 #include <asm/page.h>
21
22 .text
23
24
25
26
27
28 .globl _tlbia;
29 .type _tlbia, @function
30 .align 4;
31 _tlbia:
32 lwi r12, r0, tlb_skip;
33
34 _tlbia_1:
35 mts rtlbx, r12
36 nop
37 mts rtlbhi, r0
38 nop
39 rsubi r11, r12, MICROBLAZE_TLB_SIZE - 1
40 bneid r11, _tlbia_1
41 addik r12, r12, 1
42
43 rtsd r15, 8
44 nop
45 .size _tlbia, . - _tlbia
46
47
48
49
50 .globl _tlbie;
51 .type _tlbie, @function
52 .align 4;
53 _tlbie:
54 mts rtlbsx, r5
55 nop
56 mfs r12, rtlbx
57 nop
58 blti r12, _tlbie_1
59 mts rtlbhi, r0
60 nop
61 _tlbie_1:
62 rtsd r15, 8
63 nop
64
65 .size _tlbie, . - _tlbie