Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
Kernel
提交
c51d476a
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看板
提交
c51d476a
编写于
8月 13, 2006
作者:
K
Kyle McMartin
提交者:
Matthew Wilcox
10月 04, 2006
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[PARISC] Remove variables decls duplicated from asm-generic/sections.h
Signed-off-by:
N
Kyle McMartin
<
kyle@parisc-linux.org
>
上级
32104b29
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
10 addition
and
13 deletion
+10
-13
arch/parisc/mm/init.c
arch/parisc/mm/init.c
+10
-13
未找到文件。
arch/parisc/mm/init.c
浏览文件 @
c51d476a
...
...
@@ -31,10 +31,7 @@
DEFINE_PER_CPU
(
struct
mmu_gather
,
mmu_gathers
);
extern
char
_text
;
/* start of kernel code, defined by linker */
extern
int
data_start
;
extern
char
_end
;
/* end of BSS, defined by linker */
extern
char
__init_begin
,
__init_end
;
#ifdef CONFIG_DISCONTIGMEM
struct
node_map_data
node_data
[
MAX_NUMNODES
]
__read_mostly
;
...
...
@@ -319,8 +316,8 @@ static void __init setup_bootmem(void)
reserve_bootmem_node
(
NODE_DATA
(
0
),
0UL
,
(
unsigned
long
)(
PAGE0
->
mem_free
+
PDC_CONSOLE_IO_IODC_SIZE
));
reserve_bootmem_node
(
NODE_DATA
(
0
),
__pa
((
unsigned
long
)
&
_text
),
(
unsigned
long
)(
&
_end
-
&
_text
));
reserve_bootmem_node
(
NODE_DATA
(
0
),
__pa
((
unsigned
long
)
_text
),
(
unsigned
long
)(
_end
-
_text
));
reserve_bootmem_node
(
NODE_DATA
(
0
),
(
bootmap_start_pfn
<<
PAGE_SHIFT
),
((
bootmap_pfn
-
bootmap_start_pfn
)
<<
PAGE_SHIFT
));
...
...
@@ -355,8 +352,8 @@ static void __init setup_bootmem(void)
#endif
data_resource
.
start
=
virt_to_phys
(
&
data_start
);
data_resource
.
end
=
virt_to_phys
(
&
_end
)
-
1
;
code_resource
.
start
=
virt_to_phys
(
&
_text
);
data_resource
.
end
=
virt_to_phys
(
_end
)
-
1
;
code_resource
.
start
=
virt_to_phys
(
_text
);
code_resource
.
end
=
virt_to_phys
(
&
data_start
)
-
1
;
/* We don't know which region the kernel will be in, so try
...
...
@@ -385,12 +382,12 @@ void free_initmem(void)
*/
local_irq_disable
();
memset
(
&
__init_begin
,
0x00
,
(
unsigned
long
)
&
__init_end
-
(
unsigned
long
)
&
__init_begin
);
memset
(
__init_begin
,
0x00
,
(
unsigned
long
)
__init_end
-
(
unsigned
long
)
__init_begin
);
flush_data_cache
();
asm
volatile
(
"sync"
:
:
);
flush_icache_range
((
unsigned
long
)
&
__init_begin
,
(
unsigned
long
)
&
__init_end
);
flush_icache_range
((
unsigned
long
)
__init_begin
,
(
unsigned
long
)
__init_end
);
asm
volatile
(
"sync"
:
:
);
local_irq_enable
();
...
...
@@ -398,8 +395,8 @@ void free_initmem(void)
/* align __init_begin and __init_end to page size,
ignoring linker script where we might have tried to save RAM */
init_begin
=
PAGE_ALIGN
((
unsigned
long
)(
&
__init_begin
));
init_end
=
PAGE_ALIGN
((
unsigned
long
)(
&
__init_end
));
init_begin
=
PAGE_ALIGN
((
unsigned
long
)(
__init_begin
));
init_end
=
PAGE_ALIGN
((
unsigned
long
)(
__init_end
));
for
(
addr
=
init_begin
;
addr
<
init_end
;
addr
+=
PAGE_SIZE
)
{
ClearPageReserved
(
virt_to_page
(
addr
));
init_page_count
(
virt_to_page
(
addr
));
...
...
@@ -578,7 +575,7 @@ static void __init map_pages(unsigned long start_vaddr, unsigned long start_padd
extern
const
unsigned
long
fault_vector_20
;
extern
void
*
const
linux_gateway_page
;
ro_start
=
__pa
((
unsigned
long
)
&
_text
);
ro_start
=
__pa
((
unsigned
long
)
_text
);
ro_end
=
__pa
((
unsigned
long
)
&
data_start
);
fv_addr
=
__pa
((
unsigned
long
)
&
fault_vector_20
)
&
PAGE_MASK
;
gw_addr
=
__pa
((
unsigned
long
)
&
linux_gateway_page
)
&
PAGE_MASK
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录