Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
xcap
xcap-capability-linux
Commits
a81d9641
Commit
a81d9641
authored
Jul 08, 2014
by
Charles Jacobsen
Committed by
Vikram Narayanan
Oct 25, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
All lcd tests through 5 are passing.
Added pgd_pfn to asm/pgtables.h.
parent
1d9c6dfb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
arch/x86/include/asm/pgtable.h
arch/x86/include/asm/pgtable.h
+5
-0
virt/lcd-domains/lcd-tests.c
virt/lcd-domains/lcd-tests.c
+1
-1
No files found.
arch/x86/include/asm/pgtable.h
View file @
a81d9641
...
...
@@ -168,6 +168,11 @@ static inline unsigned long pud_pfn(pud_t pud)
return
(
pud_val
(
pud
)
&
pud_pfn_mask
(
pud
))
>>
PAGE_SHIFT
;
}
static
inline
unsigned
long
pgd_pfn
(
pgd_t
pgd
)
{
return
(
pgd_val
(
pgd
)
&
PTE_PFN_MASK
)
>>
PAGE_SHIFT
;
}
#define pte_page(pte) pfn_to_page(pte_pfn(pte))
static
inline
int
pmd_large
(
pmd_t
pte
)
...
...
virt/lcd-domains/lcd-tests.c
View file @
a81d9641
...
...
@@ -219,7 +219,7 @@ static int test05(void)
* gpa 0x1234000UL.
*/
pmd
=
(
pmd_t
*
)
__va
(
hpa
);
set_pmd
(
pmd
+
4
,
0x1234000UL
);
set_pmd
(
pmd
+
4
,
__pmd
(
0x1234000UL
)
)
;
/*
* Set up pud entry for look up, and find pmd
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment