CompuLab SBC-X270 Manual de usuario Pagina 52

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 226
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 51
SCIOPTA - Real-Time Kernel
5-12 Manual Version 4.1 User’s Manual
SCIOPTA - Real-Time Kernel
5 Processes
5.12 Process Stacks
When creating processes either statically in the SCONF configuration tool or dynamically with the
sc_procPrioCreate, sc_procIntCreate or sc_procTimCreate system calls you always need to give a stack size.
All process types (init, interrupt, timer, prioritized and daemon need a stack).
The stack size given must be big enough to hold the call stack and the maximum used local data in the process.
When you start designing a system it is good design practice to define a the stack as big as possible. In a later stage
you can measure the used stack with the SCIOPTA DRUID system level debugger and reduce the stacks if needed.
5.12.1 Unified Interrupt Stack for ARM Architecture
For the ARM architecture a unified interrupt stack can be used in interrupt and timer processes. In this case all in-
terrupt and timer processes share the same stack.
The “unified IRQ stack” checkbox must be selected in the system configuration window of the SCONF utility to
enable this feature. See chapter
16.9 “Configuring Target Systems” on page 16-8.
The stack size given must be big enough to hold the stacks of the interrupt processes with the biggest stack needs
taken in account the interrupt nesting.
5.12.2 Interrupt Nesting for ARM Architecture
If interrupt process nesting is used in the ARM architecture, the maximum nesting level of interrupt processes must
be declared in the system configutation (SCONF). See chapter
16.9 “Configuring Target Systems” on page 16-8.
Vista de pagina 51
1 2 ... 47 48 49 50 51 52 53 54 55 56 57 ... 225 226

Comentarios a estos manuales

Sin comentarios