linux/arch/x86/platform/olpc
Andy Lutomirski 6c690ee103 x86/mm: Split read_cr3() into read_cr3_pa() and __read_cr3()
The kernel has several code paths that read CR3.  Most of them assume that
CR3 contains the PGD's physical address, whereas some of them awkwardly
use PHYSICAL_PAGE_MASK to mask off low bits.

Add explicit mask macros for CR3 and convert all of the CR3 readers.
This will keep them from breaking when PCID is enabled.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Brian Gerst <brgerst@gmail.com>
Cc: Denys Vlasenko <dvlasenk@redhat.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Juergen Gross <jgross@suse.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: xen-devel <xen-devel@lists.xen.org>
Link: http://lkml.kernel.org/r/883f8fb121f4616c1c1427ad87350bb2f5ffeca1.1497288170.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2017-06-13 08:48:09 +02:00
..
Makefile x86, olpc: Add XO-1.5 SCI driver 2011-07-06 14:44:43 -07:00
olpc_dt.c x86, olpc: Add missing elements to device tree 2011-07-06 14:44:19 -07:00
olpc_ofw.c x86/platform: Audit and remove any unnecessary uses of module.h 2016-07-14 15:06:59 +02:00
olpc-xo1-pm.c x86/mm: Split read_cr3() into read_cr3_pa() and __read_cr3() 2017-06-13 08:48:09 +02:00
olpc-xo1-rtc.c x86, olpc: Add XO-1 RTC driver 2011-07-06 14:44:42 -07:00
olpc-xo1-sci.c x86/olpc/xo1/sci: Use newly added power_supply_put API 2015-03-13 23:15:53 +01:00
olpc-xo15-sci.c x86/platform/olpc: Fix resume handler build warning 2016-11-28 07:46:03 +01:00
olpc.c x86/platform: Audit and remove any unnecessary uses of module.h 2016-07-14 15:06:59 +02:00
xo1-wakeup.S x86, olpc: Add XO-1 suspend/resume support 2011-07-06 14:44:32 -07:00