Skip to content

HvGetSegmentDescriptor function #19

@wangce888

Description

@wangce888

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions