Skip to content

Commit fc336c4

Browse files
Renamed reading disk as broken.
1 parent a21dd6e commit fc336c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/kernel/C/ahci.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ void detect_ahci_devices(ahci_controller* ahci_ctrl) {
3535
printf("SATA Disk detected at port %d", i);
3636
uint8_t sector_buffer[SECTOR_SIZE * 1]; // Buffer to store 5 sectors
3737

38-
if (read_sectors(1, 1, sector_buffer) != 0) {
38+
if (read_sectors_broken(1, 1, sector_buffer) != 0) {
3939
error("sector reading failed!", __FILE__);
4040
}
4141

@@ -81,7 +81,7 @@ prdt_entry_t* free_prdt(prdt_entry_t* a) {
8181
return (prdt_entry_t*)free(a);
8282
}
8383

84-
int read_sectors(uint32_t lba, uint32_t sector_count, void* buffer) {
84+
int read_sectors_broken(uint32_t lba, uint32_t sector_count, void* buffer) {
8585
if (sector_count == 0) return -1; // Handle invalid input
8686

8787
ahci_command_header_t* cmd_header = get_free_command_header();

0 commit comments

Comments
 (0)