group_addrenv: Fix call to group_addrenv for targets that don't need it

This commit is contained in:
Ville Juven 2023-01-27 12:13:26 +02:00 • committed by Xiang Xiao
parent 375cb09ff0
commit 9ac3e841da
31 changed files with 64 additions and 54 deletions

View file

@ -29,11 +29,11 @@
#include <nuttx/arch.h>
#include <assert.h>
#include <nuttx/addrenv.h>
#include <nuttx/board.h>
#include <arch/board/board.h>
#include "arm_internal.h"
#include "group/group.h"
/****************************************************************************
* Pre-processor Definitions
@ -95,7 +95,7 @@ void arm_doirq(int irq, uint32_t *regs)
* thread at the head of the ready-to-run list.
*/
group_addrenv(NULL);
addrenv_switch(NULL);
}
#endif

View file

@ -29,10 +29,10 @@
#include <debug.h>
#include <syscall.h>
#include <nuttx/addrenv.h>
#include <nuttx/arch.h>
#include "arm_internal.h"
#include "group/group.h"
/****************************************************************************
* Public Functions
@ -165,7 +165,7 @@ uint32_t *arm_syscall(uint32_t *regs)
* thread at the head of the ready-to-run list.
*/
group_addrenv(NULL);
addrenv_switch(NULL);
}
#endif

View file

@ -30,9 +30,10 @@
#include <assert.h>
#include <debug.h>
#include <nuttx/addrenv.h>
#include "chip.h"
#include "arm_internal.h"
#include "group/group.h"
/****************************************************************************
* Public Functions
@ -99,7 +100,7 @@ uint32_t *arm_decodeirq(uint32_t *regs)
* thread at the head of the ready-to-run list.
*/
group_addrenv(NULL);
addrenv_switch(NULL);
}
#endif

View file

@ -30,9 +30,10 @@
#include <assert.h>
#include <debug.h>
#include <nuttx/addrenv.h>
#include "chip.h"
#include "arm_internal.h"
#include "group/group.h"
/****************************************************************************
* Pre-processor Definitions
@ -115,7 +116,7 @@ uint32_t *arm_decodeirq(uint32_t *regs)
* thread at the head of the ready-to-run list.
*/
group_addrenv(NULL);
addrenv_switch(NULL);
}
#endif
}

View file

@ -28,12 +28,12 @@
#include <assert.h>
#include <debug.h>
#include <nuttx/addrenv.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include "chip.h"
#include "arm_internal.h"
#include "group/group.h"
#include "lpc31_intc.h"
@ -105,7 +105,7 @@ uint32_t *arm_decodeirq(uint32_t *regs)
* thread at the head of the ready-to-run list.
*/
group_addrenv(NULL);
addrenv_switch(NULL);
}
#endif

View file

@ -28,13 +28,14 @@
#include <assert.h>
#include <sched.h>
#include <debug.h>
#include <nuttx/addrenv.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/board.h>
#include "task/task.h"
#include "sched/sched.h"
#include "group/group.h"
#include "irq/irq.h"
#include "arm64_arch.h"
#include "arm64_internal.h"
@ -88,7 +89,7 @@ uint64_t *arm64_doirq(int irq, uint64_t * regs)
* thread at the head of the ready-to-run list.
*/
group_addrenv(NULL);
addrenv_switch(NULL);
#endif
/* Restore the cpu lock */

View file

@ -211,7 +211,7 @@ uint64_t *arm64_syscall_switch(uint64_t * regs)
* thread at the head of the ready-to-run list.
*/
group_addrenv(NULL);
addrenv_switch(NULL);
#endif
/* Restore the cpu lock */

View file

@ -27,13 +27,13 @@
#include <stdint.h>
#include <assert.h>
#include <nuttx/addrenv.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/board.h>
#include <arch/board/board.h>
#include "avr_internal.h"
#include "group/group.h"
/****************************************************************************
* Pre-processor Definitions
@ -97,7 +97,7 @@ uint32_t *avr_doirq(int irq, uint32_t *regs)
* thread at the head of the ready-to-run list.
*/
group_addrenv(NULL);
addrenv_switch(NULL);
#endif
}
#endif

View file

@ -27,11 +27,12 @@
#include <sched.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/addrenv.h>
#include <nuttx/arch.h>
#include <nuttx/sched.h>
#include "sched/sched.h"
#include "group/group.h"
#include "clock/clock.h"
#include "avr_internal.h"
@ -92,7 +93,7 @@ void up_switch_context(struct tcb_s *tcb, struct tcb_s *rtcb)
* thread at the head of the ready-to-run list.
*/
group_addrenv(tcb);
addrenv_switch(tcb);
#endif
/* Update scheduler parameters */

View file

@ -27,6 +27,7 @@
#include <sched.h>
#include <debug.h>
#include <nuttx/addrenv.h>
#include <nuttx/arch.h>
#include <nuttx/irq.h>
#ifdef CONFIG_DUMP_ON_EXIT
@ -140,7 +141,7 @@ void up_exit(int status)
* the ready-to-run list.
*/
group_addrenv(tcb);
addrenv_switch(tcb);
#endif
/* Then switch contexts */

View file

@ -27,13 +27,13 @@
#include <stdint.h>
#include <assert.h>
#include <nuttx/addrenv.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/board.h>
#include <arch/board/board.h>
#include "hc_internal.h"
#include "group/group.h"
/****************************************************************************
* Pre-processor Definitions
@ -97,7 +97,7 @@ uint8_t *hc_doirq(int irq, uint8_t *regs)
* thread at the head of the ready-to-run list.
*/
group_addrenv(NULL);
addrenv_switch(NULL);
#endif
}
#endif

View file

@ -140,7 +140,7 @@ void up_exit(int status)
* the ready-to-run list.
*/
group_addrenv(tcb);
addrenv_switch(tcb);
#endif
/* Then switch contexts */

View file

@ -27,11 +27,12 @@
#include <sched.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/addrenv.h>
#include <nuttx/arch.h>
#include <nuttx/sched.h>
#include "sched/sched.h"
#include "group/group.h"
#include "clock/clock.h"
#include "hc_internal.h"
@ -95,7 +96,7 @@ void up_switch_context(struct tcb_s *tcb, struct tcb_s *rtcb)
* thread at the head of the ready-to-run list.
*/
group_addrenv(tcb);
addrenv_switch(tcb);
#endif
/* Update scheduler parameters */

View file

@ -27,13 +27,13 @@
#include <stdint.h>
#include <assert.h>
#include <nuttx/addrenv.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/board.h>
#include <arch/board/board.h>
#include "mips_internal.h"
#include "group/group.h"
/****************************************************************************
* Pre-processor Definitions
@ -103,7 +103,7 @@ uint32_t *mips_doirq(int irq, uint32_t *regs)
* thread at the head of the ready-to-run list.
*/
group_addrenv(NULL);
addrenv_switch(NULL);
#endif
}
#endif

View file

@ -29,6 +29,7 @@
#include <stdint.h>
#include <assert.h>
#include <nuttx/addrenv.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/board.h>
@ -38,8 +39,6 @@
#include "pic32mx_int.h"
#include "pic32mx.h"
#include "group/group.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
@ -157,7 +156,7 @@ uint32_t *pic32mx_decodeirq(uint32_t *regs)
* thread at the head of the ready-to-run list.
*/
group_addrenv(NULL);
addrenv_switch(NULL);
#endif
}
#endif

View file

@ -29,6 +29,7 @@
#include <stdint.h>
#include <assert.h>
#include <nuttx/addrenv.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/board.h>
@ -37,8 +38,6 @@
#include "mips_internal.h"
#include "hardware/pic32mz_int.h"
#include "group/group.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
@ -156,7 +155,7 @@ uint32_t *pic32mz_decodeirq(uint32_t *regs)
* thread at the head of the ready-to-run list.
*/
group_addrenv(NULL);
addrenv_switch(NULL);
#endif
}
#endif

View file

@ -28,6 +28,7 @@
#include <assert.h>
#include <debug.h>
#include <nuttx/addrenv.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/board.h>
@ -35,7 +36,6 @@
#include <arch/irq.h>
#include <arch/board/board.h>
#include "group/group.h"
#include "lm32.h"
/****************************************************************************
@ -88,7 +88,7 @@ uint32_t *lm32_doirq(int irq, uint32_t *regs)
* thread at the head of the ready-to-run list.
*/
group_addrenv(NULL);
addrenv_switch(NULL);
#endif
}
#endif

View file

@ -28,6 +28,7 @@
#include <assert.h>
#include <debug.h>
#include <nuttx/addrenv.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/board.h>
@ -35,7 +36,6 @@
#include <arch/irq.h>
#include <arch/board/board.h>
#include "group/group.h"
#include "minerva.h"
/****************************************************************************
@ -87,7 +87,7 @@ uint32_t *minerva_doirq(int irq, uint32_t * regs)
* the ready-to-run list.
*/
group_addrenv(NULL);
addrenv_switch(NULL);
# endif
}
#endif

View file

@ -27,6 +27,7 @@
#include <sched.h>
#include <debug.h>
#include <nuttx/addrenv.h>
#include <nuttx/arch.h>
#include <nuttx/irq.h>
#ifdef CONFIG_DUMP_ON_EXIT
@ -141,7 +142,7 @@ void up_exit(int status)
* the ready-to-run list.
*/
group_addrenv(tcb);
addrenv_switch(tcb);
#endif
/* Then switch contexts */

View file

@ -27,11 +27,12 @@
#include <sched.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/addrenv.h>
#include <nuttx/arch.h>
#include <nuttx/sched.h>
#include "sched/sched.h"
#include "group/group.h"
#include "clock/clock.h"
#include "or1k_internal.h"
@ -99,7 +100,7 @@ void up_switch_context(struct tcb_s *tcb, struct tcb_s *rtcb)
* thread at the head of the ready-to-run list.
*/
group_addrenv(tcb);
addrenv_switch(tcb);
#endif
/* Update scheduler parameters */

View file

@ -100,7 +100,7 @@ uint32_t *renesas_doirq(int irq, uint32_t * regs)
* thread at the head of the ready-to-run list.
*/
group_addrenv(NULL);
addrenv_switch(NULL);
#endif
}

View file

@ -140,7 +140,7 @@ void up_exit(int status)
* the ready-to-run list.
*/
group_addrenv(tcb);
addrenv_switch(tcb);
#endif
/* Then switch contexts */

View file

@ -27,11 +27,12 @@
#include <sched.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/addrenv.h>
#include <nuttx/arch.h>
#include <nuttx/sched.h>
#include "sched/sched.h"
#include "group/group.h"
#include "clock/clock.h"
#include "renesas_internal.h"
@ -95,7 +96,7 @@ void up_switch_context(struct tcb_s *tcb, struct tcb_s *rtcb)
* thread at the head of the ready-to-run list.
*/
group_addrenv(tcb);
addrenv_switch(tcb);
#endif
/* Update scheduler parameters */

View file

@ -27,13 +27,13 @@
#include <stdint.h>
#include <assert.h>
#include <nuttx/addrenv.h>
#include <nuttx/irq.h>
#include <nuttx/arch.h>
#include <nuttx/board.h>
#include <arch/board/board.h>
#include "sparc_internal.h"
#include "group/group.h"
/****************************************************************************
* Pre-processor Definitions
@ -98,7 +98,7 @@ uint32_t *sparc_doirq(int irq, uint32_t *regs)
* thread at the head of the ready-to-run list.
*/
group_addrenv(NULL);
addrenv_switch(NULL);
#endif
}
#endif

View file

@ -27,6 +27,7 @@
#include <sched.h>
#include <debug.h>
#include <nuttx/addrenv.h>
#include <nuttx/arch.h>
#include <nuttx/irq.h>
#ifdef CONFIG_DUMP_ON_EXIT
@ -142,7 +143,7 @@ void up_exit(int status)
* the ready-to-run list.
*/
group_addrenv(tcb);
addrenv_switch(tcb);
#endif
/* Then switch contexts */

View file

@ -27,11 +27,12 @@
#include <sched.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/addrenv.h>
#include <nuttx/arch.h>
#include <nuttx/sched.h>
#include "sched/sched.h"
#include "group/group.h"
#include "clock/clock.h"
#include "x86_internal.h"
@ -95,7 +96,7 @@ void up_switch_context(struct tcb_s *tcb, struct tcb_s *rtcb)
* thread at the head of the ready-to-run list.
*/
group_addrenv(tcb);
addrenv_switch(tcb);
#endif
/* Update scheduler parameters */

View file

@ -113,7 +113,7 @@ static uint32_t *common_handler(int irq, uint32_t *regs)
* thread at the head of the ready-to-run list.
*/
group_addrenv(NULL);
addrenv_switch(NULL);
#endif
}
#endif

View file

@ -146,7 +146,7 @@ void up_exit(int status)
* the ready-to-run list.
*/
group_addrenv(tcb);
addrenv_switch(tcb);
#endif
/* Then switch contexts */

View file

@ -27,13 +27,13 @@
#include <sched.h>
#include <assert.h>
#include <debug.h>
#include <nuttx/addrenv.h>
#include <nuttx/arch.h>
#include <nuttx/sched.h>
#include <stdio.h>
#include "sched/sched.h"
#include "group/group.h"
#include "clock/clock.h"
#include "x86_64_internal.h"
@ -101,7 +101,7 @@ void up_switch_context(struct tcb_s *tcb, struct tcb_s *rtcb)
* thread at the head of the ready-to-run list.
*/
group_addrenv(tcb);
addrenv_switch(tcb);
#endif
/* Update scheduler parameters */

View file

@ -25,6 +25,7 @@
#include <nuttx/config.h>
#include <nuttx/compiler.h>
#include <nuttx/addrenv.h>
#include <nuttx/arch.h>
#include <nuttx/board.h>
#include <nuttx/signal.h>
@ -99,7 +100,7 @@ static uint64_t *common_handler(int irq, uint64_t *regs)
* thread at the head of the ready-to-run list.
*/
group_addrenv(NULL);
addrenv_switch(NULL);
#endif
}
#endif

View file

@ -29,13 +29,13 @@
#include <nuttx/arch.h>
#include <assert.h>
#include <nuttx/addrenv.h>
#include <nuttx/board.h>
#include <arch/board/board.h>
#include <arch/chip/core-isa.h>
#include "xtensa.h"
#include "group/group.h"
#include "sched/sched.h"
/****************************************************************************
@ -80,7 +80,7 @@ uint32_t *xtensa_irq_dispatch(int irq, uint32_t *regs)
* thread at the head of the ready-to-run list.
*/
group_addrenv(NULL);
addrenv_switch(NULL);
#endif
}
#endif