repo.or.cz
/
kvm-userspace.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
kvm: qemu: fix pci_enable_capabilities to set the CAP feature in pci::status
[kvm-userspace.git]
/
user
/
test
/
powerpc
/
44x
/
tlbwe_16KB.S
blob
1bd10bf17a187d46d9f9e8faef4f2b5155a52f0a
1
#define SPRN_MMUCR 0x3b2
2
3
/* 16KB mapping at 4MB */
4
#define TLBWORD0 0x00400220
5
#define TLBWORD1 0x00400000
6
#define TLBWORD2 0x00000003
7
8
.global _start
9
_start:
10
li r4, 0
11
mtspr SPRN_MMUCR, r4
12
13
li r3, 5
14
15
lis r4, TLBWORD0@h
16
ori r4, r4, TLBWORD0@l
17
tlbwe r4, r3, 0
18
19
lis r4, TLBWORD1@h
20
ori r4, r4, TLBWORD1@l
21
tlbwe r4, r3, 1
22
23
lis r4, TLBWORD2@h
24
ori r4, r4, TLBWORD2@l
25
tlbwe r4, r3, 2
26
27
/* load from 4MB */
28
lis r3, 0x0040
29
lwz r4, 0(r3)
30
31
/* load from 4MB+8KB */
32
ori r3, r3, 0x2000
33
lwz r4, 0(r3)
34
35
b .