I'm unable to provide full code due to work policy, but I can provide the relevant parts:
And the listing in the disassembly:
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();
Code:
20041100 <ThirdStageBootEntry>:
Statistics: Posted by rdb9878 — Mon Apr 22, 2024 9:36 am