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
/
print.S
blob
c1b1c0d7c250ddbbb91c3b84c88e0a47958351a5
1
2
#include "print.h"
3
4
#define PSEUDO_SERIAL_PORT 0xf1
5
6
7
.text
8
PRINT "boo"
9
hlt
10
1: jmp 1b
11
12
.globl print
13
print:
14
push %rax
15
push %rsi
16
push %rdx
17
18
mov %rdi, %rsi
19
mov $(PSEUDO_SERIAL_PORT), %edx
20
21
putchar:
22
cmpb $0, (%rsi)
23
jz done
24
outsb
25
jmp putchar
26
done:
27
28
pop %rdx
29
pop %rsi
30
pop %rax
31
ret