Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Build directory — everything Make produces
build/

# Object files
*.o
*.obj

# Compiled binaries
*.elf
*.bin

# Disk images
*.iso
*.img

# Editor / IDE
.vscode/
.idea/
*.swp
*.swo
*~

# OS junk
.DS_Store
Thumbs.db
7 changes: 0 additions & 7 deletions build/isofiles/boot/grub/grub.cfg

This file was deleted.

Binary file removed build/isofiles/boot/kernel.elf
Binary file not shown.
Binary file removed build/kernel.elf
Binary file not shown.
Binary file removed build/kernel.iso
Binary file not shown.
Binary file removed build/turtleos-data.img
Binary file not shown.
4 changes: 2 additions & 2 deletions src/ata.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ int ata_read_sector(uint32_t lba, void *buffer) {
}

for (int i = 0; i < 256; i++) {
__asm__ volatile("inw %1, %0" : "=a"(data[i]) : "Nd"(ATA_REG_DATA));
__asm__ volatile("inw %w1, %w0" : "=a"(data[i]) : "Nd"(ATA_REG_DATA): "memory");
}

return 1;
Expand All @@ -88,7 +88,7 @@ int ata_write_sector(uint32_t lba, const void *buffer) {
}

for (int i = 0; i < 256; i++) {
__asm__ volatile("outw %0, %1" : : "a"(data[i]), "Nd"(ATA_REG_DATA));
__asm__ volatile("outw %w0, %w1" : : "a"(data[i]), "Nd"(ATA_REG_DATA): "memory");
}

io_wait();
Expand Down
Binary file removed src/ata.o
Binary file not shown.
Binary file removed src/boot.o
Binary file not shown.
Binary file removed src/console.o
Binary file not shown.
Binary file removed src/io.o
Binary file not shown.
Binary file removed src/kernel.o
Binary file not shown.
Binary file removed src/keyboard.o
Binary file not shown.
Binary file removed src/serial.o
Binary file not shown.
Binary file removed src/vga.o
Binary file not shown.