commit | a7db682f20dedc53c6ded05d870eb2490d257fe1 | [log] [tgz] |
---|---|---|
author | Douglas Leung <douglas.leung@imgtec.com> | Tue Jun 16 16:50:08 2015 -0700 |
committer | Douglas Leung <douglas.leung@imgtec.com> | Tue Jun 16 17:13:14 2015 -0700 |
tree | ba9adbf1c12340cac61d04d3049ab2f0e1bb8a6e | |
parent | 88693e8da664bcf6cfcd68b62190be76c1724ee8 [diff] |
Fix Mips bug. The source and destination addresses were swapped, causing access errors. Change-Id: I77d1163aa9d35570664ce9a51482d079ff2088c0
diff --git a/src/mips/Ginit.c b/src/mips/Ginit.c index d7dddae..bd50aab 100644 --- a/src/mips/Ginit.c +++ b/src/mips/Ginit.c
@@ -216,7 +216,7 @@ if (write) return -1; - *(unw_word_t *) (uintptr_t) addr = *val; + *val = *(unw_word_t *) (uintptr_t) addr; Debug (16, "mem[%llx] <- %llx\n", (long long) addr, (long long) *val); return 0; }