mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Fix AVR build, Add hooks for kernel threads
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3477 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -108,11 +108,6 @@ nuttx: $(HEAD_AOBJ) board/libboard$(LIBEXT)
|
|||||||
@echo "LD: nuttx"
|
@echo "LD: nuttx"
|
||||||
@$(LD) --entry=__start $(LDFLAGS) $(LIBPATHS) -o $(NUTTX)$(EXEEXT) $(HEAD_AOBJ) $(EXTRA_OBJS) \
|
@$(LD) --entry=__start $(LDFLAGS) $(LIBPATHS) -o $(NUTTX)$(EXEEXT) $(HEAD_AOBJ) $(EXTRA_OBJS) \
|
||||||
--start-group $(LDLIBS) -lboard --end-group $(EXTRA_LIBS) $(LIBGCC)
|
--start-group $(LDLIBS) -lboard --end-group $(EXTRA_LIBS) $(LIBGCC)
|
||||||
ifeq ($(CONFIG_BOOT_RUNFROMFLASH),y)
|
|
||||||
@export flashloc=`$(OBJDUMP) --all-headers $(NUTTX)$(EXEEXT) | grep _eronly | cut -d' ' -f1`; \
|
|
||||||
$(OBJCOPY) $(OBJCOPYARGS) --adjust-section-vma=.data=0x$$flashloc $(NUTTX)$(EXEEXT) $(NUTTX).flashimage
|
|
||||||
@mv $(NUTTX).flashimage $(NUTTX)$(EXEEXT)
|
|
||||||
endif
|
|
||||||
@$(NM) $(NUTTX)$(EXEEXT) | \
|
@$(NM) $(NUTTX)$(EXEEXT) | \
|
||||||
grep -v '\(compiled\)\|\(\$(OBJEXT)$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
|
grep -v '\(compiled\)\|\(\$(OBJEXT)$$\)\|\( [aUw] \)\|\(\.\.ng$$\)\|\(LASH[RL]DI\)' | \
|
||||||
sort > $(TOPDIR)/System.map
|
sort > $(TOPDIR)/System.map
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ uint8_t *up_doirq(int irq, uint8_t *regs)
|
|||||||
* switch occurred during interrupt processing.
|
* switch occurred during interrupt processing.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
regs = current_regs;
|
regs = (uint8_t*)current_regs;
|
||||||
|
|
||||||
/* Restore the previous value of current_regs. NULL would indicate that
|
/* Restore the previous value of current_regs. NULL would indicate that
|
||||||
* we are no longer in an interrupt handler. It will be non-NULL if we
|
* we are no longer in an interrupt handler. It will be non-NULL if we
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ typedef void (*up_vector_t)(void);
|
|||||||
* structure. If is non-NULL only during interrupt processing.
|
* structure. If is non-NULL only during interrupt processing.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
extern uint8_t *current_regs;
|
extern volatile uint8_t *current_regs;
|
||||||
|
|
||||||
/* This is the beginning of heap as provided from processor-specific logic.
|
/* This is the beginning of heap as provided from processor-specific logic.
|
||||||
* This is the first address in RAM after the loaded program+bss+idle stack.
|
* This is the first address in RAM after the loaded program+bss+idle stack.
|
||||||
|
|||||||
Reference in New Issue
Block a user