Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Renamed _Fault to z_${ARCH}_fault #84535

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

jhol
Copy link
Contributor

@jhol jhol commented Jan 24, 2025

During the development of the OpenRISC port of Zephyr, it was noticed that multiple architectures have common fatal exception handling code in a function named _Fault. This name is inconsistent with all other functions defined in code for the various architectures.

This PR proposes that these functions be renamed to z_${ARCH}_fault i.e. z_arc_fault, z_mips_fault, z_nios2_fault and z_riscv_fault respectively to improve consistency.

jhol added 2 commits January 24, 2025 10:05
The exception fault handler function is named _Fault which is inconsistent
with all other arch-specific functions present in Zephyr. This patch
replaces the name with z_arc_fault.

Signed-off-by: Joel Holdsworth <[email protected]>
The exception fault handler function is named _Fault which is inconsistent
with all other arch-specific functions present in Zephyr. This patch
replaces the name with z_mips_fault.

Signed-off-by: Joel Holdsworth <[email protected]>
An existing comment references a function "irq_oflload()", which should be
written "irq_offload()".

This issue was detecte by the GitHub CI compliance check.

Signed-off-by: Joel Holdsworth <[email protected]>
@jhol jhol force-pushed the fault-handler-name branch from 3463433 to 331ddcf Compare January 24, 2025 18:25
@jhol
Copy link
Contributor Author

jhol commented Jan 24, 2025

v2 of the patch set adds a fix for a pre-existing typo that was picked up by the CI Compliance Check.

jhol added 2 commits January 24, 2025 10:55
The exception fault handler function is named _Fault which is inconsistent
with all other arch-specific functions present in Zephyr. This patch
replaces the name with z_nios2_fault.

Signed-off-by: Joel Holdsworth <[email protected]>
The exception fault handler function is named _Fault which is inconsistent
with all other arch-specific functions present in Zephyr. This patch
replaces the name with z_riscv_fault.

Signed-off-by: Joel Holdsworth <[email protected]>
@jhol jhol force-pushed the fault-handler-name branch from 331ddcf to 80b862e Compare January 24, 2025 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: ARC ARC Architecture area: MIPS area: NIOS2 NIOS2 Architecture area: RISCV RISCV Architecture (32-bit & 64-bit)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants