commit | af2509bb9fba2cdc1605df0ca25f5f2f25d71d2e | [log] [tgz] |
---|---|---|
author | Daniel Mentz <danielmentz@google.com> | Wed Feb 19 14:02:30 2014 -0800 |
committer | Daniel Mentz <danielmentz@google.com> | Wed Feb 19 14:02:30 2014 -0800 |
tree | 4ed631508922bef3d26bca9fc9f0a29ef7a56f17 | |
parent | 09c244bd3abb421750e2e924cf8ac1b54287f1e9 [diff] |
Fix unaligned 16 bit access in comcerto NAND drv GCC emits ARMv7 code that performs unaligned load operations. It thinks the runtime system supports it, but since the MMU is disabled in the bootloader, an unaligned data access causes a data abort exception. Let us work around this problem by using the get_unaligned() and put_unaligned() macros. Change-Id: I25000f70a5627341ee77c11b2fdcc589629b0d9d