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

lib: sbi_domain: Fix PMP condition for addresses #346

Closed
wants to merge 1 commit into from

Conversation

CodingVoid
Copy link

In order to put an address/size into an NAPOT PMP region, the address needs to be aligned to the size shifted two to the right.

Example:
fw_start: 0x80040000
fw_size: 0x00040000
PMP address: 0x80040000 | (0x00040000 >> 2)
fw_size is valid, but not in the current implementation

Fixes issue #345

In order to put an address/size into an NAPOT PMP region, the address
needs to be aligned to the size shifted two to the right.

Example:
fw_start: 0x80040000
fw_size:  0x00040000
PMP address: 0x80040000 | (0x00040000 >> 2)
fw_size is valid, but not in the current implementation

Signed-off-by: Maximilian Brune <[email protected]>
@avpatel
Copy link
Collaborator

avpatel commented Feb 26, 2024

We have mailing list based patch review so it would be great if you can send these patchs to OpenSBI mailing list.

You need to join OpenSBI mailing list using following link
http://lists.infradead.org/mailman/listinfo/opensbi

Make sure you use "git send-email" to send the patches.

Regards,
Anup

@CodingVoid
Copy link
Author

CodingVoid commented Feb 27, 2024

Sorry I didn't know that. I will send the patch via email.

@CodingVoid CodingVoid closed this Mar 12, 2024
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.

2 participants