Skip to content

Commit 6e7df84

Browse files
OpenKernel 2.0
1 parent 4690f0c commit 6e7df84

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Drivers/Ata/ata.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ void ata_sys_disk_init() {
1616
void ata_sys_disk_read(uint32_t lba, uint8_t* buffer) {
1717
ata_wait_busy();
1818

19-
outb(ATA_DRIVE_SELECT, 0x0E | ((lba >> 24) & 0x0F)); // Select drive and set LBA bits 24-27
20-
outb(ATA_SECTOR_COUNT, 1); // Read one sector
19+
outb(ATA_DRIVE_SELECT, 0x0E | ((lba >> 24) & 0x0F));
20+
outb(ATA_SECTOR_COUNT, 1);
2121

2222
outb(ATA_LBA_LOW, (uint8_t)(lba));
2323
outb(ATA_LBA_MID, (uint8_t)(lba >> 8));
@@ -36,8 +36,8 @@ void ata_sys_disk_read(uint32_t lba, uint8_t* buffer) {
3636
void ata_sys_disk_write(uint32_t lba, const uint8_t* buffer) {
3737
ata_wait_busy();
3838

39-
outb(ATA_DRIVE_SELECT, 0x0E | ((lba >> 24) & 0x0F)); // Select drive and set LBA bits 24-27
40-
outb(ATA_SECTOR_COUNT, 1); // Write one sector
39+
outb(ATA_DRIVE_SELECT, 0x0E | ((lba >> 24) & 0x0F));
40+
outb(ATA_SECTOR_COUNT, 1);
4141

4242
outb(ATA_LBA_LOW, (uint8_t)(lba));
4343
outb(ATA_LBA_MID, (uint8_t)(lba >> 8));

Drivers/Vga/vga.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ void vga_clear_screen(const char *mode) {
1616
cx = 0;
1717
cy = 0;
1818
} else if (mode[0] == 'C') {
19-
for (int y = 1; y < VHEIGHT - 1; y++) { // 0 = üst bar, VHEIGHT-1 = alt bar
19+
for (int y = 1; y < VHEIGHT - 1; y++) {
2020
for (int x = 0; x < VWIDTH; x++) {
21-
vgabuffer[y * VWIDTH + x] = VGA_ENTRY(' ', txt_color); // standart arkaplan ve yazı rengi
21+
vgabuffer[y * VWIDTH + x] = VGA_ENTRY(' ', txt_color);
2222
}
2323
}
2424
cx = 0;

0 commit comments

Comments
 (0)