Disable the data alignment check.

This commit is contained in:
qz721 2019-04-01 14:21:59 +08:00
parent fbd40fc5b8
commit b10039f396
1 changed files with 5 additions and 0 deletions

View File

@ -51,6 +51,11 @@ _reset:
/* set the cpu to SVC32 mode and disable interrupt */
cps #Mode_SVC
/* disable the data alignment check */
mrc p15, 0, r1, c1, c0, 0
bic r1, #(1<<1)
mcr p15, 0, r1, c1, c0, 0
/* setup stack */
bl stack_setup