Subversion Repositories HelenOS-historic

Rev

Rev 352 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 352 Rev 353
Line 38... Line 38...
38
.global enable_l_apic_in_msr
38
.global enable_l_apic_in_msr
39
.global interrupt_handlers
39
.global interrupt_handlers
40
.global inb
40
.global inb
41
.global inw
41
.global inw
42
.global inl
42
.global inl
43
.global outw
-
 
44
.global outl
-
 
45
.global memcpy
43
.global memcpy
46
.global memsetb
44
.global memsetb
47
.global memsetw
45
.global memsetw
48
.global memcmp
46
.global memcmp
49
 
47
 
Line 190... Line 188...
190
	movl 4(%esp),%edx
188
	movl 4(%esp),%edx
191
	inl %dx,%eax
189
	inl %dx,%eax
192
	ret
190
	ret
193
 
191
 
194
 
192
 
195
## I/O output (word)
-
 
196
#
-
 
197
# Send a word to I/O port.
-
 
198
#
-
 
199
outw:
-
 
200
	push %eax
-
 
201
 
-
 
202
	movl 8(%esp),%edx
-
 
203
	movl 12(%esp),%eax
-
 
204
	outw %ax,%dx
-
 
205
 
-
 
206
	pop %eax
-
 
207
	ret
-
 
208
 
-
 
209
 
-
 
210
## I/O output (dword)
-
 
211
#
-
 
212
# Send a dword to I/O port.
-
 
213
#
-
 
214
outl:
-
 
215
	push %eax
-
 
216
 
-
 
217
	movl 8(%esp),%edx
-
 
218
	movl 12(%esp),%eax
-
 
219
	outl %eax,%dx
-
 
220
 
-
 
221
	pop %eax
-
 
222
	ret
-
 
223
 
-
 
224
 
-
 
225
## Copy memory
193
## Copy memory
226
#
194
#
227
# Copy a given number of bytes (3rd argument)
195
# Copy a given number of bytes (3rd argument)
228
# from the memory location defined by 2nd argument
196
# from the memory location defined by 2nd argument
229
# to the memory location defined by 1st argument.
197
# to the memory location defined by 1st argument.