ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
m33_walk_stack_t Struct Reference

Explicit DOM-walk stack (NASA Rule 1: iteration, never recursion). More...

Data Fields

uint32_t items [k_walk_stack_depth]
 Pending node indices.
uint32_t sp
 Count of pending entries.

Detailed Description

Explicit DOM-walk stack (NASA Rule 1: iteration, never recursion).

A fixed k_walk_stack_depth array plus a stack pointer; the M33 pushes a node's sibling and first child here instead of recursing.

Invariant
sp <= k_walk_stack_depth at every call boundary.
Since
0.1.0

Definition at line 247 of file cpu1_main.c.

Field Documentation

◆ items

uint32_t m33_walk_stack_t::items[k_walk_stack_depth]

Pending node indices.

Definition at line 248 of file cpu1_main.c.

Referenced by collect_chapter_text(), and walk_push().

◆ sp

uint32_t m33_walk_stack_t::sp

Count of pending entries.

Definition at line 249 of file cpu1_main.c.

Referenced by collect_chapter_text(), and walk_push().


The documentation for this struct was generated from the following file:
  • examples/ek_ra8d2/hw_pending/ereader_m33/src/cpu1_main.c