[RTEMS Project] #4736: ISR_stack allocation and usage by harts > CONFIGURE_MAXIMUM_PROCESSORS

RTEMS trac trac at rtems.org
Wed Oct 5 15:38:19 UTC 2022


#4736: ISR_stack allocation and usage by harts > CONFIGURE_MAXIMUM_PROCESSORS
-----------------------------------+--------------------
  Reporter:  Lucian-Raul Silistru  |      Owner:  (none)
      Type:  defect                |     Status:  new
  Priority:  normal                |  Milestone:
 Component:  arch/riscv            |    Version:  5
  Severity:  normal                |   Keywords:
Blocked By:                        |   Blocking:
-----------------------------------+--------------------
 When running SMP with CONFIGURE_MAXIMUM_PROCESSORS < total number of
 harts, the unused harts that start will allocate interrupt stacks from the
 sections following .rtemsstack. 16 bytes are used (written) while parking
 the core in _CPU_Thread_Idle_body.

 Unallocated _Per_CPU_Information is also used but only for pointer math -
 this seems to work out fine.

 It does seem like practically, with the default linkcmds, unless the cores
 are held/delayed by a debugger, they would never end up writing in memory
 before that memory is used -.rtemsstack is followed by .work.

 Is this intended/known behaviour?

--
Ticket URL: <http://devel.rtems.org/ticket/4736>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list