Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #4 from not-matthias/main
Browse files Browse the repository at this point in the history
fix: segmentation limit
  • Loading branch information
memN0ps authored Feb 26, 2024
2 parents d3c01c1 + 6aca63e commit 508f448
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hypervisor/src/intel/segmentation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ impl SegmentDescriptor {

// Extract segment limit from the descriptor.
let segment_limit_low = entry_value.get_bits(0..16);
let segment_limit_high = entry_value.get_bits(48..52) << 12;
let segment_limit_high = entry_value.get_bits(48..52) << 16;
let mut segment_limit = segment_limit_low | segment_limit_high;

// For non-user segments (like TSS), the base address can span two GDT entries.
Expand Down

0 comments on commit 508f448

Please sign in to comment.