mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
[PATCH] uml: obvious compile fixes for x86-64 Subarch and x86 regression fixes
This patch does some totally trivial compilation fixes. It also restores the debugregs manipulation, which was commented out simply because it doesn't compile on x86_64 (we haven't yet implemented there debugregs handling). Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
1f8d419e29
commit
f7fe878174
5 changed files with 10 additions and 8 deletions
|
|
@ -1,6 +1 @@
|
|||
#ifndef __UM_IPC_H
|
||||
#define __UM_IPC_H
|
||||
|
||||
#include "asm/arch/ipc.h"
|
||||
|
||||
#endif
|
||||
#include <asm-generic/ipc.h>
|
||||
|
|
|
|||
|
|
@ -45,6 +45,9 @@ typedef struct { unsigned long pgd; } pgd_t;
|
|||
({ (pte).pte_high = (phys) >> 32; \
|
||||
(pte).pte_low = (phys) | pgprot_val(prot); })
|
||||
|
||||
#define pmd_val(x) ((x).pmd)
|
||||
#define __pmd(x) ((pmd_t) { (x) } )
|
||||
|
||||
typedef unsigned long long pfn_t;
|
||||
typedef unsigned long long phys_t;
|
||||
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ static inline pmd_t pfn_pmd(pfn_t page_nr, pgprot_t pgprot)
|
|||
|
||||
#define pte_to_pgoff(p) ((p).pte >> 32)
|
||||
|
||||
#define pgoff_to_pte(off) ((pte_t) { ((off) < 32) | _PAGE_FILE })
|
||||
#define pgoff_to_pte(off) ((pte_t) { ((off) << 32) | _PAGE_FILE })
|
||||
|
||||
#else
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue