File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ void detect_ahci_devices(ahci_controller* ahci_ctrl) {
35
35
printf ("SATA Disk detected at port %d" , i );
36
36
uint8_t sector_buffer [SECTOR_SIZE * 1 ]; // Buffer to store 5 sectors
37
37
38
- if (read_sectors (1 , 1 , sector_buffer ) != 0 ) {
38
+ if (read_sectors_broken (1 , 1 , sector_buffer ) != 0 ) {
39
39
error ("sector reading failed!" , __FILE__ );
40
40
}
41
41
@@ -81,7 +81,7 @@ prdt_entry_t* free_prdt(prdt_entry_t* a) {
81
81
return (prdt_entry_t * )free (a );
82
82
}
83
83
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 ) {
85
85
if (sector_count == 0 ) return -1 ; // Handle invalid input
86
86
87
87
ahci_command_header_t * cmd_header = get_free_command_header ();
You can’t perform that action at this time.
0 commit comments