diff options
author | Jens Arnold <amiconn@rockbox.org> | 2004-08-17 01:45:48 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2004-08-17 01:45:48 +0000 |
commit | 0ceaa5e365b3f6dc78269ed5c4cd43df5c0144eb (patch) | |
tree | 7fe6cbadea41f09765b631794b71d65fdbbbffbc /firmware/drivers/ata.c | |
parent | c76c568b351d37c485f78cd185b2d52d54fe7a34 (diff) | |
download | rockbox-0ceaa5e365b3f6dc78269ed5c4cd43df5c0144eb.tar.gz rockbox-0ceaa5e365b3f6dc78269ed5c4cd43df5c0144eb.zip |
Const policed pointer arguments to functions, part 2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4996 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/ata.c')
-rw-r--r-- | firmware/drivers/ata.c | 8 |
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 */ |
450 | static void copy_write_sectors(unsigned char* buf, | 450 | static void copy_write_sectors(const unsigned char* buf, |
451 | int wordcount) | 451 | int wordcount) |
452 | __attribute__ ((section (".icode"))); | 452 | __attribute__ ((section (".icode"))); |
453 | 453 | ||
454 | static void copy_write_sectors(unsigned char* buf, int wordcount) | 454 | static 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 | ||
567 | int ata_write_sectors(unsigned long start, | 567 | int 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 | ||
660 | extern void ata_delayed_write(unsigned long sector, void* buf) | 660 | extern 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; |