summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--firmware/drivers/ata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/ata.c b/firmware/drivers/ata.c
index ce136a4..60b6a87 100644
--- a/firmware/drivers/ata.c
+++ b/firmware/drivers/ata.c
@@ -470,7 +470,7 @@ static void copy_write_sectors(const unsigned char* buf, int wordcount)
if ( (unsigned int)buf & 1)
{ /* not 16-bit aligned, copy byte by byte */
unsigned short tmp = 0;
- unsigned char* bufend = buf + wordcount*2;
+ const unsigned char* bufend = buf + wordcount*2;
do
{ /* loop compiles to 9 assembler instructions */
/* takes 13 clock cycles (2 pipeline stalls) */