1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
|
/*
*
* $FreeBSD$
*/
#include <machine/asm.h>
ENTRY(host_read)
li %r0, 3 # SYS_read
sc
bso 1f
blr
1:
li %r3, 0
blr
END(host_read)
ENTRY(host_write)
li %r0, 4 # SYS_write
sc
blr
END(host_write)
ENTRY(host_seek)
mr %r4,%r5
mr %r5,%r6
mr %r6,%r7
li %r0, 140 # SYS_llseek
sc
blr
END(host_seek)
ENTRY(host_llseek)
li %r0, 140 # SYS_llseek
sc
blr
END(host_llseek)
ENTRY(host_open)
li %r0, 5 # SYS_open
sc
bso 1f
blr
1:
li %r3, 0
blr
END(host_open)
ENTRY(host_close)
li %r0, 6 # SYS_close
sc
blr
END(host_close)
ENTRY(host_mmap)
li %r0, 90 # SYS_mmap
sc
blr
END(host_mmap)
ENTRY(host_uname)
li %r0, 122 # SYS_uname
sc
blr
END(host_uname)
ENTRY(host_gettimeofday)
li %r0, 78 # SYS_gettimeofday
sc
blr
END(host_gettimeofday)
ENTRY(host_select)
li %r0, 142 # SYS_select
sc
blr
END(host_select)
ENTRY(kexec_load)
lis %r6,21 # KEXEC_ARCH_PPC64
li %r0,268 # __NR_kexec_load
sc
blr
END(kexec_load)
ENTRY(host_reboot)
li %r0,88 # SYS_reboot
sc
blr
END(host_reboot)
ENTRY(host_getdents)
li %r0,141 # SYS_getdents
sc
blr
END(host_getdents)
|