summaryrefslogtreecommitdiff
path: root/firmware/drivers/ata.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/drivers/ata.c')
-rw-r--r--firmware/drivers/ata.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index 663df600ca..05000b02a8 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -447,11 +447,11 @@ int ata_read_sectors(unsigned long start,
447} 447}
448 448
449/* the tight loop of ata_write_sectors(), to avoid the whole in IRAM */ 449/* the tight loop of ata_write_sectors(), to avoid the whole in IRAM */
450static void copy_write_sectors(unsigned char* buf, 450static void copy_write_sectors(const unsigned char* buf,
451 int wordcount) 451 int wordcount)
452 __attribute__ ((section (".icode"))); 452 __attribute__ ((section (".icode")));
453 453
454static void copy_write_sectors(unsigned char* buf, int wordcount) 454static void copy_write_sectors(const unsigned char* buf, int wordcount)
455{ 455{
456#ifdef PREFER_C_WRITING 456#ifdef PREFER_C_WRITING
457 457
@@ -566,7 +566,7 @@ static void copy_write_sectors(unsigned char* buf, int wordcount)
566 566
567int ata_write_sectors(unsigned long start, 567int ata_write_sectors(unsigned long start,
568 int count, 568 int count,
569 void* buf) 569 const void* buf)
570{ 570{
571 int i; 571 int i;
572 int ret = 0; 572 int ret = 0;
@@ -657,7 +657,7 @@ int ata_write_sectors(unsigned long start,
657 return ret; 657 return ret;
658} 658}
659 659
660extern void ata_delayed_write(unsigned long sector, void* buf) 660extern void ata_delayed_write(unsigned long sector, const void* buf)
661{ 661{
662 memcpy(delayed_sector, buf, SECTOR_SIZE); 662 memcpy(delayed_sector, buf, SECTOR_SIZE);
663 delayed_sector_num = sector; 663 delayed_sector_num = sector;