We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a21dd6e commit fc336c4Copy full SHA for fc336c4
source/kernel/C/ahci.c
@@ -35,7 +35,7 @@ void detect_ahci_devices(ahci_controller* ahci_ctrl) {
35
printf("SATA Disk detected at port %d", i);
36
uint8_t sector_buffer[SECTOR_SIZE * 1]; // Buffer to store 5 sectors
37
38
- if (read_sectors(1, 1, sector_buffer) != 0) {
+ if (read_sectors_broken(1, 1, sector_buffer) != 0) {
39
error("sector reading failed!", __FILE__);
40
}
41
@@ -81,7 +81,7 @@ prdt_entry_t* free_prdt(prdt_entry_t* a) {
81
return (prdt_entry_t*)free(a);
82
83
84
-int read_sectors(uint32_t lba, uint32_t sector_count, void* buffer) {
+int read_sectors_broken(uint32_t lba, uint32_t sector_count, void* buffer) {
85
if (sector_count == 0) return -1; // Handle invalid input
86
87
ahci_command_header_t* cmd_header = get_free_command_header();
0 commit comments