x86_64: Use read and write crX in .c files
authorGlauber de Oliveira Costa <gcosta@redhat.com>
Sun, 22 Jul 2007 09:12:29 +0000 (11:12 +0200)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 22 Jul 2007 18:03:37 +0000 (11:03 -0700)
commitf51c94528a9bc73504928926ca4d791a2b7ddd7c
tree1562581d26098916a35a27ee58021f483c85b3da
parentabd4f7505bafdd6c5319fe3cb5caf9af6104e17a
x86_64: Use read and write crX in .c files

This patch uses the read and write functions provided at system.h
for control registers instead of writting raw assembly over and
over again in .c files. Functions to manipulate cr2 and cr8 were
provided, as they were lacking.

Also, removed some extra space after closing brackets

Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86_64/kernel/process.c
arch/x86_64/kernel/suspend.c
arch/x86_64/mm/fault.c
arch/x86_64/mm/init.c
include/asm-x86_64/system.h