Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
cloud-kernel
提交
ff02e0d2
cloud-kernel
项目概览
openanolis
/
cloud-kernel
1 年多 前同步成功
通知
160
Star
36
Fork
7
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
10
列表
看板
标记
里程碑
合并请求
2
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
cloud-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
10
Issue
10
列表
看板
标记
里程碑
合并请求
2
合并请求
2
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
ff02e0d2
编写于
2月 12, 2006
作者:
D
David S. Miller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[SPARC64]: Move PTE field definitions back into asm/pgtable.h
Signed-off-by:
N
David S. Miller
<
davem@davemloft.net
>
上级
221b2fb8
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
86 addition
and
86 deletion
+86
-86
arch/sparc64/mm/init.c
arch/sparc64/mm/init.c
+0
-84
include/asm-sparc64/pgtable.h
include/asm-sparc64/pgtable.h
+86
-2
未找到文件。
arch/sparc64/mm/init.c
浏览文件 @
ff02e0d2
...
@@ -1334,90 +1334,6 @@ void free_initrd_mem(unsigned long start, unsigned long end)
...
@@ -1334,90 +1334,6 @@ void free_initrd_mem(unsigned long start, unsigned long end)
}
}
#endif
#endif
/* SUN4U pte bits... */
#define _PAGE_SZ4MB_4U 0x6000000000000000
/* 4MB Page */
#define _PAGE_SZ512K_4U 0x4000000000000000
/* 512K Page */
#define _PAGE_SZ64K_4U 0x2000000000000000
/* 64K Page */
#define _PAGE_SZ8K_4U 0x0000000000000000
/* 8K Page */
#define _PAGE_NFO_4U 0x1000000000000000
/* No Fault Only */
#define _PAGE_IE_4U 0x0800000000000000
/* Invert Endianness */
#define _PAGE_SOFT2_4U 0x07FC000000000000
/* Software bits, set 2 */
#define _PAGE_RES1_4U 0x0002000000000000
/* Reserved */
#define _PAGE_SZ32MB_4U 0x0001000000000000
/* (Panther) 32MB page */
#define _PAGE_SZ256MB_4U 0x2001000000000000
/* (Panther) 256MB page */
#define _PAGE_SN_4U 0x0000800000000000
/* (Cheetah) Snoop */
#define _PAGE_RES2_4U 0x0000780000000000
/* Reserved */
#define _PAGE_PADDR_4U 0x000007FFFFFFE000
/* (Cheetah) paddr[42:13] */
#define _PAGE_SOFT_4U 0x0000000000001F80
/* Software bits: */
#define _PAGE_EXEC_4U 0x0000000000001000
/* Executable SW bit */
#define _PAGE_MODIFIED_4U 0x0000000000000800
/* Modified (dirty) */
#define _PAGE_FILE_4U 0x0000000000000800
/* Pagecache page */
#define _PAGE_ACCESSED_4U 0x0000000000000400
/* Accessed (ref'd) */
#define _PAGE_READ_4U 0x0000000000000200
/* Readable SW Bit */
#define _PAGE_WRITE_4U 0x0000000000000100
/* Writable SW Bit */
#define _PAGE_PRESENT_4U 0x0000000000000080
/* Present */
#define _PAGE_L_4U 0x0000000000000040
/* Locked TTE */
#define _PAGE_CP_4U 0x0000000000000020
/* Cacheable in P-Cache */
#define _PAGE_CV_4U 0x0000000000000010
/* Cacheable in V-Cache */
#define _PAGE_E_4U 0x0000000000000008
/* side-Effect */
#define _PAGE_P_4U 0x0000000000000004
/* Privileged Page */
#define _PAGE_W_4U 0x0000000000000002
/* Writable */
/* SUN4V pte bits... */
#define _PAGE_NFO_4V 0x4000000000000000
/* No Fault Only */
#define _PAGE_SOFT2_4V 0x3F00000000000000
/* Software bits, set 2 */
#define _PAGE_MODIFIED_4V 0x2000000000000000
/* Modified (dirty) */
#define _PAGE_ACCESSED_4V 0x1000000000000000
/* Accessed (ref'd) */
#define _PAGE_READ_4V 0x0800000000000000
/* Readable SW Bit */
#define _PAGE_WRITE_4V 0x0400000000000000
/* Writable SW Bit */
#define _PAGE_PADDR_4V 0x00FFFFFFFFFFE000
/* paddr[55:13] */
#define _PAGE_IE_4V 0x0000000000001000
/* Invert Endianness */
#define _PAGE_E_4V 0x0000000000000800
/* side-Effect */
#define _PAGE_CP_4V 0x0000000000000400
/* Cacheable in P-Cache */
#define _PAGE_CV_4V 0x0000000000000200
/* Cacheable in V-Cache */
#define _PAGE_P_4V 0x0000000000000100
/* Privileged Page */
#define _PAGE_EXEC_4V 0x0000000000000080
/* Executable Page */
#define _PAGE_W_4V 0x0000000000000040
/* Writable */
#define _PAGE_SOFT_4V 0x0000000000000030
/* Software bits */
#define _PAGE_FILE_4V 0x0000000000000020
/* Pagecache page */
#define _PAGE_PRESENT_4V 0x0000000000000010
/* Present */
#define _PAGE_RESV_4V 0x0000000000000008
/* Reserved */
#define _PAGE_SZ16GB_4V 0x0000000000000007
/* 16GB Page */
#define _PAGE_SZ2GB_4V 0x0000000000000006
/* 2GB Page */
#define _PAGE_SZ256MB_4V 0x0000000000000005
/* 256MB Page */
#define _PAGE_SZ32MB_4V 0x0000000000000004
/* 32MB Page */
#define _PAGE_SZ4MB_4V 0x0000000000000003
/* 4MB Page */
#define _PAGE_SZ512K_4V 0x0000000000000002
/* 512K Page */
#define _PAGE_SZ64K_4V 0x0000000000000001
/* 64K Page */
#define _PAGE_SZ8K_4V 0x0000000000000000
/* 8K Page */
#if PAGE_SHIFT == 13
#define _PAGE_SZBITS_4U _PAGE_SZ8K_4U
#define _PAGE_SZBITS_4V _PAGE_SZ8K_4V
#elif PAGE_SHIFT == 16
#define _PAGE_SZBITS_4U _PAGE_SZ64K_4U
#define _PAGE_SZBITS_4V _PAGE_SZ64K_4V
#elif PAGE_SHIFT == 19
#define _PAGE_SZBITS_4U _PAGE_SZ512K_4U
#define _PAGE_SZBITS_4V _PAGE_SZ512K_4V
#elif PAGE_SHIFT == 22
#define _PAGE_SZBITS_4U _PAGE_SZ4MB_4U
#define _PAGE_SZBITS_4V _PAGE_SZ4MB_4V
#else
#error Wrong PAGE_SHIFT specified
#endif
#if defined(CONFIG_HUGETLB_PAGE_SIZE_4MB)
#define _PAGE_SZHUGE_4U _PAGE_SZ4MB_4U
#define _PAGE_SZHUGE_4V _PAGE_SZ4MB_4V
#elif defined(CONFIG_HUGETLB_PAGE_SIZE_512K)
#define _PAGE_SZHUGE_4U _PAGE_SZ512K_4U
#define _PAGE_SZHUGE_4V _PAGE_SZ512K_4V
#elif defined(CONFIG_HUGETLB_PAGE_SIZE_64K)
#define _PAGE_SZHUGE_4U _PAGE_SZ64K_4U
#define _PAGE_SZHUGE_4V _PAGE_SZ64K_4V
#endif
#define _PAGE_CACHE_4U (_PAGE_CP_4U | _PAGE_CV_4U)
#define _PAGE_CACHE_4U (_PAGE_CP_4U | _PAGE_CV_4U)
#define _PAGE_CACHE_4V (_PAGE_CP_4V | _PAGE_CV_4V)
#define _PAGE_CACHE_4V (_PAGE_CP_4V | _PAGE_CV_4V)
#define __DIRTY_BITS_4U (_PAGE_MODIFIED_4U | _PAGE_WRITE_4U | _PAGE_W_4U)
#define __DIRTY_BITS_4U (_PAGE_MODIFIED_4U | _PAGE_WRITE_4U | _PAGE_W_4U)
...
...
include/asm-sparc64/pgtable.h
浏览文件 @
ff02e0d2
...
@@ -91,8 +91,92 @@
...
@@ -91,8 +91,92 @@
#endif
/* !(__ASSEMBLY__) */
#endif
/* !(__ASSEMBLY__) */
/* PTE bits which are the same in SUN4U and SUN4V format. */
/* PTE bits which are the same in SUN4U and SUN4V format. */
#define _PAGE_VALID 0x8000000000000000
/* Valid TTE */
#define _PAGE_VALID _AC(0x8000000000000000,UL)
/* Valid TTE */
#define _PAGE_R 0x8000000000000000
/* Keep ref bit up to date*/
#define _PAGE_R _AC(0x8000000000000000,UL)
/* Keep ref bit uptodate*/
/* SUN4U pte bits... */
#define _PAGE_SZ4MB_4U _AC(0x6000000000000000,UL)
/* 4MB Page */
#define _PAGE_SZ512K_4U _AC(0x4000000000000000,UL)
/* 512K Page */
#define _PAGE_SZ64K_4U _AC(0x2000000000000000,UL)
/* 64K Page */
#define _PAGE_SZ8K_4U _AC(0x0000000000000000,UL)
/* 8K Page */
#define _PAGE_NFO_4U _AC(0x1000000000000000,UL)
/* No Fault Only */
#define _PAGE_IE_4U _AC(0x0800000000000000,UL)
/* Invert Endianness */
#define _PAGE_SOFT2_4U _AC(0x07FC000000000000,UL)
/* Software bits, set 2 */
#define _PAGE_RES1_4U _AC(0x0002000000000000,UL)
/* Reserved */
#define _PAGE_SZ32MB_4U _AC(0x0001000000000000,UL)
/* (Panther) 32MB page */
#define _PAGE_SZ256MB_4U _AC(0x2001000000000000,UL)
/* (Panther) 256MB page */
#define _PAGE_SN_4U _AC(0x0000800000000000,UL)
/* (Cheetah) Snoop */
#define _PAGE_RES2_4U _AC(0x0000780000000000,UL)
/* Reserved */
#define _PAGE_PADDR_4U _AC(0x000007FFFFFFE000,UL)
/* (Cheetah) pa[42:13] */
#define _PAGE_SOFT_4U _AC(0x0000000000001F80,UL)
/* Software bits: */
#define _PAGE_EXEC_4U _AC(0x0000000000001000,UL)
/* Executable SW bit */
#define _PAGE_MODIFIED_4U _AC(0x0000000000000800,UL)
/* Modified (dirty) */
#define _PAGE_FILE_4U _AC(0x0000000000000800,UL)
/* Pagecache page */
#define _PAGE_ACCESSED_4U _AC(0x0000000000000400,UL)
/* Accessed (ref'd) */
#define _PAGE_READ_4U _AC(0x0000000000000200,UL)
/* Readable SW Bit */
#define _PAGE_WRITE_4U _AC(0x0000000000000100,UL)
/* Writable SW Bit */
#define _PAGE_PRESENT_4U _AC(0x0000000000000080,UL)
/* Present */
#define _PAGE_L_4U _AC(0x0000000000000040,UL)
/* Locked TTE */
#define _PAGE_CP_4U _AC(0x0000000000000020,UL)
/* Cacheable in P-Cache */
#define _PAGE_CV_4U _AC(0x0000000000000010,UL)
/* Cacheable in V-Cache */
#define _PAGE_E_4U _AC(0x0000000000000008,UL)
/* side-Effect */
#define _PAGE_P_4U _AC(0x0000000000000004,UL)
/* Privileged Page */
#define _PAGE_W_4U _AC(0x0000000000000002,UL)
/* Writable */
/* SUN4V pte bits... */
#define _PAGE_NFO_4V _AC(0x4000000000000000,UL)
/* No Fault Only */
#define _PAGE_SOFT2_4V _AC(0x3F00000000000000,UL)
/* Software bits, set 2 */
#define _PAGE_MODIFIED_4V _AC(0x2000000000000000,UL)
/* Modified (dirty) */
#define _PAGE_ACCESSED_4V _AC(0x1000000000000000,UL)
/* Accessed (ref'd) */
#define _PAGE_READ_4V _AC(0x0800000000000000,UL)
/* Readable SW Bit */
#define _PAGE_WRITE_4V _AC(0x0400000000000000,UL)
/* Writable SW Bit */
#define _PAGE_PADDR_4V _AC(0x00FFFFFFFFFFE000,UL)
/* paddr[55:13] */
#define _PAGE_IE_4V _AC(0x0000000000001000,UL)
/* Invert Endianness */
#define _PAGE_E_4V _AC(0x0000000000000800,UL)
/* side-Effect */
#define _PAGE_CP_4V _AC(0x0000000000000400,UL)
/* Cacheable in P-Cache */
#define _PAGE_CV_4V _AC(0x0000000000000200,UL)
/* Cacheable in V-Cache */
#define _PAGE_P_4V _AC(0x0000000000000100,UL)
/* Privileged Page */
#define _PAGE_EXEC_4V _AC(0x0000000000000080,UL)
/* Executable Page */
#define _PAGE_W_4V _AC(0x0000000000000040,UL)
/* Writable */
#define _PAGE_SOFT_4V _AC(0x0000000000000030,UL)
/* Software bits */
#define _PAGE_FILE_4V _AC(0x0000000000000020,UL)
/* Pagecache page */
#define _PAGE_PRESENT_4V _AC(0x0000000000000010,UL)
/* Present */
#define _PAGE_RESV_4V _AC(0x0000000000000008,UL)
/* Reserved */
#define _PAGE_SZ16GB_4V _AC(0x0000000000000007,UL)
/* 16GB Page */
#define _PAGE_SZ2GB_4V _AC(0x0000000000000006,UL)
/* 2GB Page */
#define _PAGE_SZ256MB_4V _AC(0x0000000000000005,UL)
/* 256MB Page */
#define _PAGE_SZ32MB_4V _AC(0x0000000000000004,UL)
/* 32MB Page */
#define _PAGE_SZ4MB_4V _AC(0x0000000000000003,UL)
/* 4MB Page */
#define _PAGE_SZ512K_4V _AC(0x0000000000000002,UL)
/* 512K Page */
#define _PAGE_SZ64K_4V _AC(0x0000000000000001,UL)
/* 64K Page */
#define _PAGE_SZ8K_4V _AC(0x0000000000000000,UL)
/* 8K Page */
#if PAGE_SHIFT == 13
#define _PAGE_SZBITS_4U _PAGE_SZ8K_4U
#define _PAGE_SZBITS_4V _PAGE_SZ8K_4V
#elif PAGE_SHIFT == 16
#define _PAGE_SZBITS_4U _PAGE_SZ64K_4U
#define _PAGE_SZBITS_4V _PAGE_SZ64K_4V
#elif PAGE_SHIFT == 19
#define _PAGE_SZBITS_4U _PAGE_SZ512K_4U
#define _PAGE_SZBITS_4V _PAGE_SZ512K_4V
#elif PAGE_SHIFT == 22
#define _PAGE_SZBITS_4U _PAGE_SZ4MB_4U
#define _PAGE_SZBITS_4V _PAGE_SZ4MB_4V
#else
#error Wrong PAGE_SHIFT specified
#endif
#if defined(CONFIG_HUGETLB_PAGE_SIZE_4MB)
#define _PAGE_SZHUGE_4U _PAGE_SZ4MB_4U
#define _PAGE_SZHUGE_4V _PAGE_SZ4MB_4V
#elif defined(CONFIG_HUGETLB_PAGE_SIZE_512K)
#define _PAGE_SZHUGE_4U _PAGE_SZ512K_4U
#define _PAGE_SZHUGE_4V _PAGE_SZ512K_4V
#elif defined(CONFIG_HUGETLB_PAGE_SIZE_64K)
#define _PAGE_SZHUGE_4U _PAGE_SZ64K_4U
#define _PAGE_SZHUGE_4V _PAGE_SZ64K_4V
#endif
/* These are actually filled in at boot time by sun4{u,v}_pgprot_init() */
/* These are actually filled in at boot time by sun4{u,v}_pgprot_init() */
#define __P000 __pgprot(0)
#define __P000 __pgprot(0)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录