still working on ata :(
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
.code32
|
||||
.section .text
|
||||
.section .text
|
||||
|
||||
.global disable_interrupts
|
||||
disable_interrupts:
|
||||
cli
|
||||
@@ -37,4 +38,31 @@ liftoff:
|
||||
xor %eax, %eax
|
||||
xor %edx, %edx
|
||||
|
||||
iret
|
||||
iret
|
||||
|
||||
.global outb
|
||||
outb:
|
||||
push %ebp
|
||||
mov %esp, %ebp
|
||||
|
||||
# 8(%ebp) port
|
||||
# 12(%ebp) data
|
||||
mov 8(%ebp), %edx
|
||||
mov 12(%ebp), %eax
|
||||
outb %al, %dx
|
||||
|
||||
leave
|
||||
ret
|
||||
|
||||
.global inb
|
||||
inb:
|
||||
push %ebp
|
||||
mov %esp, %ebp
|
||||
|
||||
# 8(%ebp) port
|
||||
mov 8(%ebp), %edx
|
||||
xor %eax, %eax
|
||||
inb %dx, %al
|
||||
|
||||
leave
|
||||
ret
|
||||
Reference in New Issue
Block a user