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

HvGetSegmentDescriptor function #19

Open
wangce888 opened this issue May 13, 2022 · 1 comment
Open

HvGetSegmentDescriptor function #19

wangce888 opened this issue May 13, 2022 · 1 comment

Comments

@wangce888
Copy link

SegDesc = (PSEGMENT_DESCRIPTOR)((PUCHAR)GdtBase + (Selector & ~0x7));
Hi, I didn't understand this line. Should (Selector & ~0x7) be multiplied by 8? because GdtBase is unsigned char*,it's 8 bits,Adding 1 means that the address is increased by 8 bits, and segment desciptor is 64 bits
If it's okay, how should this line code be interpreted?

@SinaKarvandi
Copy link
Owner

@BehroozAbbassi

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

No branches or pull requests

2 participants