Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6062

General • Re: Execute from SRAM

$
0
0
I'm unable to provide full code due to work policy, but I can provide the relevant parts:

Code:

extern void ThirdStageBootEntry(void);...        //This works    //uint32_t funcAddr = (uint32_t)&ThirdStageBootEntry;    //funcAddr |= 1;    //void (*fun_ptr)(void) = funcAddr;    //fun_ptr();        //This does not work    ThirdStageBootEntry();
And the listing in the disassembly:

Code:

20041100 <ThirdStageBootEntry>:

Statistics: Posted by rdb9878 — Mon Apr 22, 2024 9:36 am



Viewing all articles
Browse latest Browse all 6062

Latest Images

Trending Articles



Latest Images