a752c7ab
elopes
add first test an...
|
1
2
3
4
5
6
7
8
9
10
11
|
/* ARM code to run user code */
/* This allows us to jump to the user's code in flash. We have */
/* to remap the flash before jumping. */
begin:
adr r0, const
ldr r1, [r0] /* r1 points to MEMMAP register */
mov r0, #1
str r0, [r1] /* remap interrupt vectors to flash */
mov pc, #0 /* and then jump to the user's code */
const:
.int 0xE01FC040 /* MEMMAP register */
|