x86, msr: CFI annotations, cleanups for msr-reg.S
authorH. Peter Anvin <hpa@zytor.com>
Mon, 31 Aug 2009 20:59:53 +0000 (13:59 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 31 Aug 2009 22:14:47 +0000 (15:14 -0700)
commit79c5dca3619d6ae15815eec14cd7a43db5f38b47
treef2a10abc4862d1812a08dcb44bc5a7a8a78ec57f
parent709972b1f6f70535d1fddbe1243a51b90c408a1c
x86, msr: CFI annotations, cleanups for msr-reg.S

Add CFI annotations for native_{rd,wr}msr_safe_regs().
Simplify the 64-bit implementation: we don't allow the upper half
registers to be set, and so we can use them to carry state across the
operation.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: Borislav Petkov <petkovbb@gmail.com>
LKML-Reference: <1251705011-18636-1-git-send-email-petkovbb@gmail.com>
arch/x86/lib/msr-reg.S