Hardware Architecture Interface
|
Type
|
Level
|
UID
|
STATUS
|
TYPE
|
COMPONENT
|
REFS
|
Title
|
Statement
|
USER_STORY
|
|---|---|---|---|---|---|---|---|---|---|
|
TEXT
|
|
SPDX-License-Identifier: Apache-2.0 |
|||||||
|
REQUIREMENT
|
1 |
|
|
|
|
|
The Zephyr RTOS shall provide an interface to access memory while ensuring mutual exclusion. |
As a Zephyr RTOS user I want to read from or write into a memory areas without being disturbed by other threads or ISRs. |
|
|
REQUIREMENT
|
2 |
|
|
|
|
|
The Zephyr RTOS shall provide a mechanism for context switching between threads. |
As a Zephyr RTOS user I want to execute code concurrently in one or more threads and when interrupted at a code location in a thread, to continue at the very same location. |
|
|
REQUIREMENT
|
3 |
|
|
|
|
|
The Zephyr RTOS shall provide an interface to implement software exceptions. |
As a Zephyr RTOS user I want to catch any software exception and handle it according to my application needs. |
|
|
REQUIREMENT
|
4 |
|
|
|
|
|
The Zephyr RTOS shall support processor architectures with 32-bit and with 64-bit native word sizes. |
|
|
|
SECTION
|
5 |
|
|
||||||
|
REQUIREMENT
|
5.1 |
|
|
|
|
|
Where user mode is supported, the Zephyr RTOS shall provide an interface to transition the executing thread from supervisor mode to user mode. |
As a Zephyr RTOS user I want the kernel to execute code at the appropriate processor privilege level (for example supervisor and user mode) so that privileged and unprivileged execution are kept separate. |
|
|
REQUIREMENT
|
5.2 |
|
|
|
|
|
Where user mode is supported, the Zephyr RTOS shall provide an interface to query whether the current execution context is running in user mode. |
|
|
|
REQUIREMENT
|
5.3 |
|
|
|
|
|
Where user mode is supported, the Zephyr RTOS shall provide an interface for user mode code to invoke system calls that execute in supervisor mode. |
|
|
|
SECTION
|
6 |
|
|
||||||
|
REQUIREMENT
|
6.1 |
|
|
|
|
|
Where a data cache is present, the Zephyr RTOS shall provide an interface to flush the data cache, over the entire cache or a specified address range. |
|
|
|
REQUIREMENT
|
6.2 |
|
|
|
|
|
Where a data cache is present, the Zephyr RTOS shall provide an interface to invalidate the data cache, over the entire cache or a specified address range. |
|
|
|
REQUIREMENT
|
6.3 |
|
|
|
|
|
Where a data cache is present, the Zephyr RTOS shall provide an interface to flush and invalidate the data cache in a single operation, over the entire cache or a specified address range. |
|
|
|
REQUIREMENT
|
6.4 |
|
|
|
|
|
Where an instruction cache is present, the Zephyr RTOS shall provide an interface to flush the instruction cache, over the entire cache or a specified address range. |
|
|
|
REQUIREMENT
|
6.5 |
|
|
|
|
|
Where an instruction cache is present, the Zephyr RTOS shall provide an interface to invalidate the instruction cache, over the entire cache or a specified address range. |
|
|
|
REQUIREMENT
|
6.6 |
|
|
|
|
|
Where an instruction cache is present, the Zephyr RTOS shall provide an interface to flush and invalidate the instruction cache in a single operation, over the entire cache or a specified address range. |
|
|
|
REQUIREMENT
|
6.7 |
|
|
|
|
|
Where a data cache is present, the Zephyr RTOS shall provide an interface to enable the data cache. |
|
|
|
REQUIREMENT
|
6.8 |
|
|
|
|
|
Where a data cache is present, the Zephyr RTOS shall provide an interface to disable the data cache. |
|
|
|
REQUIREMENT
|
6.9 |
|
|
|
|
|
Where an instruction cache is present, the Zephyr RTOS shall provide an interface to enable the instruction cache. |
|
|
|
REQUIREMENT
|
6.10 |
|
|
|
|
|
Where an instruction cache is present, the Zephyr RTOS shall provide an interface to disable the instruction cache. |
|
|
|
REQUIREMENT
|
6.11 |
|
|
|
|
|
Where a data cache is present, the Zephyr RTOS shall provide an interface to obtain the data cache line size. |
|
|
|
REQUIREMENT
|
6.12 |
|
|
|
|
|
Where an instruction cache is present, the Zephyr RTOS shall provide an interface to obtain the instruction cache line size. |
|
|
|
REQUIREMENT
|
6.13 |
|
|
|
|
|
Where the architecture can determine memory coherence, the Zephyr RTOS shall provide an interface to report whether the memory at a given address is coherent with respect to the data cache. |
|
|
|
SECTION
|
7 |
|
|
||||||
|
REQUIREMENT
|
7.1 |
|
|
|
|
|
The Zephyr RTOS shall provide a mechanism to enforce sequentially consistent ordering of memory accesses around a point in the program (a full data memory barrier). |
|
|
|
REQUIREMENT
|
7.2 |
|
|
|
|
|
The Zephyr RTOS shall provide a mechanism to ensure that all outstanding memory accesses complete before subsequent instructions execute (a data synchronization barrier). |
|
|
|
REQUIREMENT
|
7.3 |
|
|
|
|
|
The Zephyr RTOS shall provide a mechanism to synchronize memory accesses across all cores (a system-wide synchronization barrier). |
|
|
|
SECTION
|
8 |
|
|
||||||
|
REQUIREMENT
|
8.1 |
|
|
|
|
|
Where stack unwinding is supported, the Zephyr RTOS shall provide an interface to walk the call stack of a thread and report each stack frame to a caller-supplied function. |
|
|
|
REQUIREMENT
|
8.2 |
|
|
|
|
|
Where core dump support is enabled, the Zephyr RTOS shall provide an interface to capture architecture-specific processor state for inclusion in a core dump. |
|
|
|
REQUIREMENT
|
8.3 |
|
|
|
|
|
Where a debug stub is enabled, the Zephyr RTOS shall provide an interface for an external debugger to read and write the processor registers. |
|
|
|
REQUIREMENT
|
8.4 |
|
|
|
|
|
Where a debug stub is enabled, the Zephyr RTOS shall provide an interface for an external debugger to set and remove breakpoints. |
|
|
|
REQUIREMENT
|
8.5 |
|
|
|
|
|
Where a debug stub is enabled, the Zephyr RTOS shall provide an interface for an external debugger to single-step execution. |
|