Skip to content

Conversation

fsammoura1980
Copy link
Contributor

Refactor the code to read all PMP address CSRs (pmpaddr0 through pmpaddrN) into a new helper function, z_riscv_pmp_read_addr.

This change encapsulates the register reading loop, improving code organization and potential reusability. The new function includes size assertions

jimmyzhe
jimmyzhe previously approved these changes Oct 15, 2025
@fkokosinski
Copy link
Member

@fsammoura1980 -

LGTM, but you'd have to rebase your branch to resolve conflicts reported by GitHub.

Refactor the code to read all PMP address CSRs (pmpaddr0 through
pmpaddrN) into a new helper function, `z_riscv_pmp_read_addr`.

This change encapsulates the register reading loop, improving code
organization and potential reusability. The new function includes size
assertions

Signed-off-by: Firas Sammoura <[email protected]>
@fsammoura1980
Copy link
Contributor Author

@fsammoura1980 -

LGTM, but you'd have to rebase your branch to resolve conflicts reported by GitHub.

I rebased and resolved conflicts.

Copy link

@jhedberg jhedberg merged commit ef49739 into zephyrproject-rtos:main Oct 21, 2025
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: RISCV RISCV Architecture (32-bit & 64-bit)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants