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

LibJS: Implement extract_pointer_bits for ppc64 #24685

Closed

Conversation

sideeffect42
Copy link
Contributor

On PowerPC 64 pointers can use all 64 bits, however by convention on Linux user-space addresses use only the lower 43 bits. I'm not 100% certain that the masking off of the 16 high bits is the proper solution, but it matches the rest of the LibJS code which assumes pointers only use the lower 48 bits.

https://www.kernel.org/doc/ols/2001/ppc64.pdf


This is a copy of LadybirdBrowser/ladybird#504 and has not been tested in SerenityOS, because I don't have a system running SerenityOS.

On PowerPC 64 pointers can use all 64 bits, however by convention on
Linux user-space addresses use only the lower 43 bits.
I'm not 100% certain that the masking off of the 16 high bits is the
proper solution, but it matches the rest of the LibJS code which assumes
pointers only use the lower 48 bits.

https://www.kernel.org/doc/ols/2001/ppc64.pdf
@github-actions github-actions bot added the 👀 pr-needs-review PR needs review from a maintainer or community member label Jul 10, 2024
@sideeffect42
Copy link
Contributor Author

I was too fast. This PR requires #24684 to be merged, first.
I'm marking it as a draft for now.

@sideeffect42 sideeffect42 marked this pull request as draft July 10, 2024 08:23
@github-actions github-actions bot removed the 👀 pr-needs-review PR needs review from a maintainer or community member label Jul 10, 2024
Copy link

stale bot commented Aug 1, 2024

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions!

@stale stale bot added the stale label Aug 1, 2024
Copy link

stale bot commented Aug 8, 2024

This pull request has been closed because it has not had recent activity. Feel free to re-open if you wish to still contribute these changes. Thank you for your contributions!

@stale stale bot closed this Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant