Skip to content
Snippets Groups Projects
Commit 8e549fb5 authored by patacongo's avatar patacongo
Browse files

NXFLAT doesn't set bit 0 in the entry point address

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1958 42af7a65-404d-4744-a932-0658087f49c3
parent a1ef2c1e
No related branches found
No related tags found
No related merge requests found
......@@ -110,6 +110,16 @@ void up_initial_state(_TCB *tcb)
xcp->regs[REG_PIC] = (uint32)tcb->dspace->region;
}
/* Make certain that bit 0 is set in the main entry address. This
* is only an issue when NXFLAT is enabled. NXFLAT doesn't know
* anything about thumb; the addresses that NXFLAT sets are based
* on file header info and won't have bit 0 set.
*/
#ifdef CONFIG_NXFLAT
tcb->entry.main = (main_t)((uint32)tcb->entry.main | 1);
#endif
#endif
/* Enable or disable interrupts, based on user configuration */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment