Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ void LongMode(void)
const UINT64 gdtNullEntryIndex = 0;
// GDT CS entry - page granularity, long, present, type code, execute\read\accessed
const UINT16 csAttributes = 0xa09b;
const UINT64 gdtCsEntryValue = ((UINT64)csAttributes << 20);
const UINT64 gdtCsEntryValue = ((UINT64)csAttributes << 40);
const UINT64 gdtCsEntryIndex = 1;

uint64_t *gdtPage = static_cast<uint64_t *>(addressSpace.CommitRange(gdtSize, PAGE_READWRITE));
Expand Down