threadx icon indicating copy to clipboard operation
threadx copied to clipboard

Clean-up and harden the RISC-V64 GNU port

Open fdesbiens opened this issue 4 weeks ago • 0 comments

Objective

Improve code quality and maintainability of the existing RISC-V64/GNU ThreadX port.

Deliverables

  • [ ] Improve and expand code comments to describe design intent, context switch logic, and assembly behavior.
  • [ ] Standardize function names, labels, and macros to conform with RISC-V naming conventions and ThreadX coding standards.
  • [ ] Eliminate hardcoded constants (e.g., stack offsets, register counts) by replacing them with macros, enums, or configuration flags.
  • [ ] Create and document reusable flags/definitions for ISA features, register widths, ABI handling, and toolchain specifics.
  • [ ] Ensure the port is fully documented and baseline compliant with RISC-V ISA (privileged architecture) expectations.

Tags

Cleanup, Low Complexity,

fdesbiens avatar Dec 15 '25 16:12 fdesbiens