Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 41aefdcc authored by Max Asbock's avatar Max Asbock Committed by Ingo Molnar
Browse files

x86: shift bits the right way in native_read_tscp



native_read_tscp shifts the bits in the high order value in the
wrong direction, the attached patch fixes that.

Signed-off-by: default avatarMax Asbock <masbock@linux.vnet.ibm.com>
Acked-by: default avatarGlauber Costa <gcosta@redhat.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 28499143
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ static inline unsigned long long native_read_tscp(unsigned int *aux)
	unsigned long low, high;
	asm volatile(".byte 0x0f,0x01,0xf9"
		     : "=a" (low), "=d" (high), "=c" (*aux));
	return low | ((u64)high >> 32);
	return low | ((u64)high << 32);
}

/*