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

Commit

Permalink
fix: segmentation limit
Browse files Browse the repository at this point in the history
  • Loading branch information
not-matthias committed Feb 26, 2024
1 parent d3c01c1 commit 6aca63e
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 6aca63e

Please sign in to comment.