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: expose MSI capability to guest
[kvm-userspace.git]
/
user
/
test
/
x86
/
memtest1.S
blob
3821e867c5751eddca47797b9bc2365651c03566
1
.text
2
3
start:
4
mov $0x1000,%r8
5
mov $0x0a,%ecx
6
7
init_page:
8
dec %ecx
9
jne no_io
10
mov $0x0,%al
11
out %al,$0x80
12
mov $0x0a,%ecx
13
14
no_io:
15
mov %r8,(%r8)
16
add $0x1000,%r8
17
cmp $0x8000000,%r8
18
jne init_page
19
mov $0x1000,%r8
20
mov $0x0a,%ecx
21
22
test_loop:
23
dec %ecx
24
jne no_io2
25
mov $0x0,%al
26
out %al,$0x80
27
mov $0x0a,%ecx
28
29
no_io2:
30
mov (%r8),%r9
31
cmp %r8,%r9
32
jne err
33
add $0x1000,%r8
34
cmp $0x8000000,%r8
35
jne test_loop
36
mov $0x1000,%r8
37
jmp test_loop
38
39
err:
40
mov $0xffffffffffffffff,%r12
41
mov $0xffffffffffffffff,%r13
42
mov $0x0,%al
43
out %al,$0x80
44
jmp err