Skip to content

Commit f85f015

Browse files
authored
Merge pull request #508 from rust-osdev/fix/pcid-order
fix field order for INVPCID descriptor
2 parents 323d46c + 4bd1973 commit f85f015

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/instructions/tlb.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ pub enum InvPicdCommand {
4949
#[repr(C)]
5050
#[derive(Debug)]
5151
struct InvpcidDescriptor {
52-
address: u64,
5352
pcid: u64,
53+
address: u64,
5454
}
5555

5656
/// Structure of a PCID. A PCID has to be <= 4096 for x86_64.
@@ -95,8 +95,8 @@ impl fmt::Display for PcidTooBig {
9595
#[inline]
9696
pub unsafe fn flush_pcid(command: InvPicdCommand) {
9797
let mut desc = InvpcidDescriptor {
98-
address: 0,
9998
pcid: 0,
99+
address: 0,
100100
};
101101

102102
let kind: u64;

0 commit comments

Comments
 (0)