Skip to content

Added Cortex-A7 module lifecycle tests to QEMU CI - #849

Merged
fdesbiens merged 2 commits into
eclipse-threadx:devfrom
fdesbiens:test/qemu-cortex-a7-module-lifecycle
Dec 1, 2026
Merged

fdesbiens merged 2 commits into
eclipse-threadx:devfrom
fdesbiens:test/qemu-cortex-a7-module-lifecycle

Conversation

@fdesbiens

Copy link
Copy Markdown
Contributor

The QEMU module suite exercised the Cortex-M ports. Cortex-A7 builds alone could not show that a protected module could call the kernel, block, and resume in user mode.

Ran the protected lifecycle on QEMU's Cortex-A7 virt machine with GICv2 and the architected timer. The harness exercises queue and timer services, checks the execution mode after a blocking call, and loads, starts, stops, and unloads the module twice. CI runs it with pointer context disabled and enabled.

GCC 14.2 and QEMU 10.2.1 passed 18/18 tests across Cortex-M3, Cortex-M4, and Cortex-A7.

The QEMU module suite ran the lifecycle on Cortex-M only. Cortex-A7 module
builds could not verify supervisor calls, scheduling, or timer interrupts.

Ran the existing protected lifecycle on the Cortex-A7 port using QEMU virt,
GICv2, and the architected timer. Checked the worker's mode after it returned
from a kernel service, and ran both callback configurations in CI.

QEMU 10.2.1 and GCC 14.2 passed 18/18 tests across Cortex-A7, Cortex-M3,
and Cortex-M4 with pointer context disabled and enabled.

Assisted-by: Codex (GPT-6.2-Sol) <noreply@openai.com>
The Cortex-A7 harness builds without optimization and exercises nested
module calls that need additional kernel stack space.

Reserved 1 KiB for the module kernel stack in the Cortex-A7 QEMU harness.

GCC 14.2 and QEMU 10.2.1 passed the protected lifecycle with pointer context
disabled and enabled.

Assisted-by: Codex (GPT-6.2-Sol) <noreply@openai.com>
@fdesbiens
fdesbiens merged commit 932ff58 into eclipse-threadx:dev Dec 1, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant