Skip to content
Snippets Groups Projects
Commit 44b4dbed authored by Anatolij Gustschin's avatar Anatolij Gustschin Committed by Wolfgang Denk
Browse files

Fix warnings while compilation of post/drivers/memory.c


Fix warnings while compilation with new gcc in eldk-4.2

Signed-off-by: default avatarAnatolij Gustschin <agust@denx.de>
parent a8b7e476
No related branches found
No related tags found
No related merge requests found
...@@ -186,7 +186,7 @@ DECLARE_GLOBAL_DATA_PTR; ...@@ -186,7 +186,7 @@ DECLARE_GLOBAL_DATA_PTR;
* *
* For other processors, let the compiler generate the best code it can. * For other processors, let the compiler generate the best code it can.
*/ */
static void move64(unsigned long long *src, unsigned long long *dest) static void move64(const unsigned long long *src, unsigned long long *dest)
{ {
#if defined(CONFIG_MPC8260) || defined(CONFIG_MPC824X) #if defined(CONFIG_MPC8260) || defined(CONFIG_MPC824X)
asm ("lfd 0, 0(3)\n\t" /* fpr0 = *scr */ asm ("lfd 0, 0(3)\n\t" /* fpr0 = *scr */
...@@ -233,12 +233,12 @@ static int memory_post_dataline(unsigned long long * pmem) ...@@ -233,12 +233,12 @@ static int memory_post_dataline(unsigned long long * pmem)
int ret = 0; int ret = 0;
for ( i = 0; i < num_patterns; i++) { for ( i = 0; i < num_patterns; i++) {
move64((unsigned long long *)&(pattern[i]), pmem++); move64(&(pattern[i]), pmem++);
/* /*
* Put a different pattern on the data lines: otherwise they * Put a different pattern on the data lines: otherwise they
* may float long enough to read back what we wrote. * may float long enough to read back what we wrote.
*/ */
move64((unsigned long long *)&otherpattern, pmem--); move64(&otherpattern, pmem--);
move64(pmem, &temp64); move64(pmem, &temp64);
#ifdef INJECT_DATA_ERRORS #ifdef INJECT_DATA_ERRORS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment