Substituting IDLE task

John Pickwick john.pickwick at
Fri Oct 19 18:52:11 UTC 2007

Not exactly ... I was expecting a simple macro that would have overriden the default Idle thread without having to recompile the BSP.

Thanx anyway :=)

  ----- Original Message ----- 
  From: Manuel Coutinho 
  To: 'John Pickwick' ; rtems-users at 
  Sent: Friday, October 19, 2007 12:57 PM
  Subject: RE: Substituting IDLE task



  I'm not sure I understood your question. Are you trying to replace the idle task of the Leon2 BSP?

  If so, you can found the body of the idle task on the setvec.c file. 

  This is the default idle task implemented on Leon2:


  /* LEON specific power-down function */


  void _CPU_Thread_Idle_body( void )


    while (1) {

      LEON_REG.Power_Down = LEON_REG.Power_Down;   /* make sure on load follows store to power-down reg */




  If you want, you can change it any way you like, but you have to recompile RTEMS. A simple "make all install" is sufficient.


  Hope this answers your question.



  Manuel Coutinho




  From: at [ at] On Behalf Of John Pickwick
  Sent: Thursday, October 18, 2007 10:43 PM
  To: rtems-users at
  Subject: Substituting IDLE task




  is it possible to substitute a task to the default IDLE task in the LEON2 BSP ?

  I found the CPU_IDLE_TASK macro that goes in the CPU_Table structure but I don't know if I need to recompile my BSP if I use it.






  rtems-users mailing list
  rtems-users at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the users mailing list