Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
e42778de
K
Kernel
项目概览
openeuler
/
Kernel
1 年多 前同步成功
通知
8
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
K
Kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
e42778de
编写于
2月 08, 2009
作者:
J
Jeremy Fitzhardinge
提交者:
Jeremy Fitzhardinge
2月 11, 2009
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
x86: move defs around to allow paravirt.h to just include page_types.h
Signed-off-by:
N
Jeremy Fitzhardinge
<
jeremy@goop.org
>
上级
1dfc07aa
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
77 addition
and
79 deletion
+77
-79
arch/x86/include/asm/page.h
arch/x86/include/asm/page.h
+0
-78
arch/x86/include/asm/page_32_types.h
arch/x86/include/asm/page_32_types.h
+2
-0
arch/x86/include/asm/page_types.h
arch/x86/include/asm/page_types.h
+74
-0
arch/x86/include/asm/paravirt.h
arch/x86/include/asm/paravirt.h
+1
-1
未找到文件。
arch/x86/include/asm/page.h
浏览文件 @
e42778de
...
...
@@ -31,84 +31,6 @@ static inline void copy_user_page(void *to, void *from, unsigned long vaddr,
alloc_page_vma(GFP_HIGHUSER | __GFP_ZERO | movableflags, vma, vaddr)
#define __HAVE_ARCH_ALLOC_ZEROED_USER_HIGHPAGE
static
inline
pgd_t
native_make_pgd
(
pgdval_t
val
)
{
return
(
pgd_t
)
{
val
};
}
static
inline
pgdval_t
native_pgd_val
(
pgd_t
pgd
)
{
return
pgd
.
pgd
;
}
static
inline
pgdval_t
pgd_flags
(
pgd_t
pgd
)
{
return
native_pgd_val
(
pgd
)
&
PTE_FLAGS_MASK
;
}
#if PAGETABLE_LEVELS >= 3
#if PAGETABLE_LEVELS == 4
static
inline
pud_t
native_make_pud
(
pmdval_t
val
)
{
return
(
pud_t
)
{
val
};
}
static
inline
pudval_t
native_pud_val
(
pud_t
pud
)
{
return
pud
.
pud
;
}
#else
/* PAGETABLE_LEVELS == 3 */
static
inline
pudval_t
native_pud_val
(
pud_t
pud
)
{
return
native_pgd_val
(
pud
.
pgd
);
}
#endif
/* PAGETABLE_LEVELS == 4 */
static
inline
pudval_t
pud_flags
(
pud_t
pud
)
{
return
native_pud_val
(
pud
)
&
PTE_FLAGS_MASK
;
}
static
inline
pmd_t
native_make_pmd
(
pmdval_t
val
)
{
return
(
pmd_t
)
{
val
};
}
static
inline
pmdval_t
native_pmd_val
(
pmd_t
pmd
)
{
return
pmd
.
pmd
;
}
#else
/* PAGETABLE_LEVELS == 2 */
static
inline
pmdval_t
native_pmd_val
(
pmd_t
pmd
)
{
return
native_pgd_val
(
pmd
.
pud
.
pgd
);
}
#endif
/* PAGETABLE_LEVELS >= 3 */
static
inline
pmdval_t
pmd_flags
(
pmd_t
pmd
)
{
return
native_pmd_val
(
pmd
)
&
PTE_FLAGS_MASK
;
}
static
inline
pte_t
native_make_pte
(
pteval_t
val
)
{
return
(
pte_t
)
{
.
pte
=
val
};
}
static
inline
pteval_t
native_pte_val
(
pte_t
pte
)
{
return
pte
.
pte
;
}
static
inline
pteval_t
pte_flags
(
pte_t
pte
)
{
return
native_pte_val
(
pte
)
&
PTE_FLAGS_MASK
;
}
#define pgprot_val(x) ((x).pgprot)
#define __pgprot(x) ((pgprot_t) { (x) } )
#ifdef CONFIG_PARAVIRT
#include <asm/paravirt.h>
#else
/* !CONFIG_PARAVIRT */
...
...
arch/x86/include/asm/page_32_types.h
浏览文件 @
e42778de
...
...
@@ -43,6 +43,8 @@
#ifndef __ASSEMBLY__
#include <linux/types.h>
#ifdef CONFIG_X86_PAE
typedef
u64
pteval_t
;
typedef
u64
pmdval_t
;
...
...
arch/x86/include/asm/page_types.h
浏览文件 @
e42778de
...
...
@@ -51,18 +51,92 @@
typedef
struct
{
pgdval_t
pgd
;
}
pgd_t
;
typedef
struct
{
pgprotval_t
pgprot
;
}
pgprot_t
;
static
inline
pgd_t
native_make_pgd
(
pgdval_t
val
)
{
return
(
pgd_t
)
{
val
};
}
static
inline
pgdval_t
native_pgd_val
(
pgd_t
pgd
)
{
return
pgd
.
pgd
;
}
static
inline
pgdval_t
pgd_flags
(
pgd_t
pgd
)
{
return
native_pgd_val
(
pgd
)
&
PTE_FLAGS_MASK
;
}
#if PAGETABLE_LEVELS > 3
typedef
struct
{
pudval_t
pud
;
}
pud_t
;
static
inline
pud_t
native_make_pud
(
pmdval_t
val
)
{
return
(
pud_t
)
{
val
};
}
static
inline
pudval_t
native_pud_val
(
pud_t
pud
)
{
return
pud
.
pud
;
}
#else
#include <asm-generic/pgtable-nopud.h>
static
inline
pudval_t
native_pud_val
(
pud_t
pud
)
{
return
native_pgd_val
(
pud
.
pgd
);
}
#endif
#if PAGETABLE_LEVELS > 2
typedef
struct
{
pmdval_t
pmd
;
}
pmd_t
;
static
inline
pudval_t
pud_flags
(
pud_t
pud
)
{
return
native_pud_val
(
pud
)
&
PTE_FLAGS_MASK
;
}
static
inline
pmd_t
native_make_pmd
(
pmdval_t
val
)
{
return
(
pmd_t
)
{
val
};
}
static
inline
pmdval_t
native_pmd_val
(
pmd_t
pmd
)
{
return
pmd
.
pmd
;
}
#else
#include <asm-generic/pgtable-nopmd.h>
static
inline
pmdval_t
native_pmd_val
(
pmd_t
pmd
)
{
return
native_pgd_val
(
pmd
.
pud
.
pgd
);
}
#endif
static
inline
pmdval_t
pmd_flags
(
pmd_t
pmd
)
{
return
native_pmd_val
(
pmd
)
&
PTE_FLAGS_MASK
;
}
static
inline
pte_t
native_make_pte
(
pteval_t
val
)
{
return
(
pte_t
)
{
.
pte
=
val
};
}
static
inline
pteval_t
native_pte_val
(
pte_t
pte
)
{
return
pte
.
pte
;
}
static
inline
pteval_t
pte_flags
(
pte_t
pte
)
{
return
native_pte_val
(
pte
)
&
PTE_FLAGS_MASK
;
}
#define pgprot_val(x) ((x).pgprot)
#define __pgprot(x) ((pgprot_t) { (x) } )
typedef
struct
page
*
pgtable_t
;
extern
int
page_is_ram
(
unsigned
long
pagenr
);
...
...
arch/x86/include/asm/paravirt.h
浏览文件 @
e42778de
...
...
@@ -4,7 +4,7 @@
* para-virtualization: those hooks are defined here. */
#ifdef CONFIG_PARAVIRT
#include <asm/page.h>
#include <asm/page
_types
.h>
#include <asm/asm.h>
/* Bitmask of what can be clobbered: usually at least eax. */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录