1
0
uboot-1.1.4-kirkwood/board/mv_feroceon/mv_kw/nBootstrap.S

21 lines
550 B
ArmAsm
Raw Normal View History

2024-01-07 23:58:22 +01:00
#define MV_ASMLANGUAGE
#include "nBootstrap.h"
.globl nbootStart
nbootStart:
/* Enable I-Cache */
mrc p15, 0, r1, c1, c0, 0
orr r1, r1, #0x00001000 /* set bit 12 (I) I-Cache */
/* MUST BE PLACED AT END OF CACHE LINE!!!!!!!!!!!!!!! */
mcr p15, 0, r1, c1, c0, 0
/* Set up the stack */
ldr r0, =BOOTER_BASE
sub sp, r0, #12 /* leave 3 words for abort-stack */
/* jump to new code */
ldr lr, =nand_boot
mov pc, lr