still working on ata :(

This commit is contained in:
2026-06-21 16:57:16 -05:00
parent 0f84acde30
commit a82a7aa1a4
5 changed files with 353 additions and 28 deletions

View File

@@ -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