Turn on unaligned memory access on raspberry pi.
This commit is contained in:
@@ -19,6 +19,11 @@ jmp_loader:
|
|||||||
bx r12
|
bx r12
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/* Turn on unaligned memory access */
|
||||||
|
mrc p15, #0, r4, c1, c0, #0
|
||||||
|
orr r4, #0x400000
|
||||||
|
mcr p15, #0, r4, c1, c0, #0
|
||||||
|
|
||||||
/* Setup initial stack right below our .text section (growing downwards
|
/* Setup initial stack right below our .text section (growing downwards
|
||||||
into the space reserved for .init) */
|
into the space reserved for .init) */
|
||||||
mov sp, #0x8000
|
mov sp, #0x8000
|
||||||
|
|||||||
Reference in New Issue
Block a user