Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
xiphi1978
linux
提交
36763b22
L
linux
项目概览
xiphi1978
/
linux
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
36763b22
编写于
11月 21, 2007
作者:
P
Paul Mundt
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
sh: Switch SH-5 to use CONFIG_PAGE_OFFSET.
Signed-off-by:
N
Paul Mundt
<
lethal@linux-sh.org
>
上级
6deb6f91
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
20 addition
and
19 deletion
+20
-19
arch/sh/Makefile
arch/sh/Makefile
+1
-1
arch/sh/kernel/cpu/sh5/entry.S
arch/sh/kernel/cpu/sh5/entry.S
+11
-11
arch/sh/kernel/head_64.S
arch/sh/kernel/head_64.S
+4
-4
arch/sh/kernel/vmlinux_64.lds.S
arch/sh/kernel/vmlinux_64.lds.S
+2
-2
arch/sh/mm/Kconfig
arch/sh/mm/Kconfig
+2
-1
未找到文件。
arch/sh/Makefile
浏览文件 @
36763b22
...
...
@@ -85,7 +85,7 @@ KBUILD_IMAGE := arch/sh/boot/zImage
ifdef
CONFIG_SUPERH32
LDFLAGS_vmlinux
+=
-e
_stext
else
LDFLAGS_vmlinux
+=
--defsym
phys_stext
=
_stext-
$(CONFIG_
CACHED_MEMORY
_OFFSET)
\
LDFLAGS_vmlinux
+=
--defsym
phys_stext
=
_stext-
$(CONFIG_
PAGE
_OFFSET)
\
--defsym
phys_stext_shmedia
=
phys_stext+1
\
-e
phys_stext_shmedia
endif
...
...
arch/sh/kernel/cpu/sh5/entry.S
浏览文件 @
36763b22
...
...
@@ -432,7 +432,7 @@ reset_or_panic:
synco
/*
TAKum03020
(
but
probably
a
good
idea
anyway
.
)
*/
putcon
SP
,
DCR
/
*
First
save
r0
-
1
and
tr0
,
as
we
need
to
use
these
*/
movi
resvec_save_area
-
CONFIG_
CACHED_MEMORY
_OFFSET
,
SP
movi
resvec_save_area
-
CONFIG_
PAGE
_OFFSET
,
SP
st.q
SP
,
0
,
r0
st.q
SP
,
8
,
r1
gettr
tr0
,
r0
...
...
@@ -442,7 +442,7 @@ reset_or_panic:
getcon
EXPEVT
,
r0
movi
RESET_CAUSE
,
r1
sub
r1
,
r0
,
r1
/*
r1
=
0
if
reset
*/
movi
_stext
-
CONFIG_
CACHED_MEMORY
_OFFSET
,
r0
movi
_stext
-
CONFIG_
PAGE
_OFFSET
,
r0
ori
r0
,
1
,
r0
ptabs
r0
,
tr0
beqi
r1
,
0
,
tr0
/*
Jump
to
start
address
if
reset
*/
...
...
@@ -454,7 +454,7 @@ reset_or_panic:
beqi
r1
,
0
,
tr0
/*
jump
if
single
step
*/
/
*
Now
jump
to
where
we
save
the
registers
.
*/
movi
panic_stash_regs
-
CONFIG_
CACHED_MEMORY
_OFFSET
,
r1
movi
panic_stash_regs
-
CONFIG_
PAGE
_OFFSET
,
r1
ptabs
r1
,
tr0
blink
tr0
,
r63
...
...
@@ -490,7 +490,7 @@ debug_exception:
*/
putcon
SP
,
DCR
/
*
Save
SSR
&
SPC
,
together
with
R0
&
R1
,
as
we
need
to
use
2
regs
.
*/
movi
resvec_save_area
-
CONFIG_
CACHED_MEMORY
_OFFSET
,
SP
movi
resvec_save_area
-
CONFIG_
PAGE
_OFFSET
,
SP
/
*
With
the
MMU
off
,
we
are
bypassing
the
cache
,
so
purge
any
*
data
that
will
be
made
stale
by
the
following
stores
.
...
...
@@ -558,7 +558,7 @@ debug_interrupt:
/
*
Save
original
stack
pointer
into
KCR1
*/
synco
putcon
SP
,
KCR1
movi
resvec_save_area
-
CONFIG_
CACHED_MEMORY
_OFFSET
,
SP
movi
resvec_save_area
-
CONFIG_
PAGE
_OFFSET
,
SP
ocbp
SP
,
0
ocbp
SP
,
32
synco
...
...
@@ -607,7 +607,7 @@ debug_interrupt:
movi
EVENT_FAULT_NOT_TLB
,
r4
or
SP
,
ZERO
,
r5
movi
CONFIG_
CACHED_MEMORY
_OFFSET
,
r6
movi
CONFIG_
PAGE
_OFFSET
,
r6
add
r6
,
r5
,
r5
getcon
KCR1
,
SP
...
...
@@ -1366,7 +1366,7 @@ route_to_panic_handler:
last
-
chance
debugging
,
e
.
g
.
if
no
output
wants
to
go
to
the
console
.
*/
movi
panic_handler
-
CONFIG_
CACHED_MEMORY
_OFFSET
,
r1
movi
panic_handler
-
CONFIG_
PAGE
_OFFSET
,
r1
ptabs
r1
,
tr0
pta
1
f
,
tr1
gettr
tr1
,
r0
...
...
@@ -1408,7 +1408,7 @@ peek_real_address_q:
andc
r1
,
r36
,
r1
/*
turn
sr
.
mmu
off
in
real
mode
section
*/
putcon
r1
,
ssr
movi
.
peek0
-
CONFIG_
CACHED_MEMORY
_OFFSET
,
r36
/*
real
mode
target
address
*/
movi
.
peek0
-
CONFIG_
PAGE
_OFFSET
,
r36
/*
real
mode
target
address
*/
movi
1
f
,
r37
/*
virtual
mode
return
addr
*/
putcon
r36
,
spc
...
...
@@ -1457,7 +1457,7 @@ poke_real_address_q:
andc
r1
,
r36
,
r1
/*
turn
sr
.
mmu
off
in
real
mode
section
*/
putcon
r1
,
ssr
movi
.
poke0
-
CONFIG_
CACHED_MEMORY
_OFFSET
,
r36
/*
real
mode
target
address
*/
movi
.
poke0
-
CONFIG_
PAGE
_OFFSET
,
r36
/*
real
mode
target
address
*/
movi
1
f
,
r37
/*
virtual
mode
return
addr
*/
putcon
r36
,
spc
...
...
@@ -1954,7 +1954,7 @@ panic_stash_regs:
getcon
SSR
,
r3
getcon
EXPEVT
,
r4
/
*
Prepare
to
jump
to
C
-
physical
address
*/
movi
panic_handler
-
CONFIG_
CACHED_MEMORY
_OFFSET
,
r1
movi
panic_handler
-
CONFIG_
PAGE
_OFFSET
,
r1
ori
r1
,
1
,
r1
ptabs
r1
,
tr0
getcon
DCR
,
SP
...
...
@@ -2055,7 +2055,7 @@ trap_init:
andi
r19
,
-
4
,
r19
/*
reset
MMUOFF
+
reserved
*/
/
*
For
RESVEC
exceptions
we
force
the
MMU
off
,
which
means
we
need
the
physical
address
.
*/
movi
LRESVEC_block
-
CONFIG_
CACHED_MEMORY
_OFFSET
,
r20
movi
LRESVEC_block
-
CONFIG_
PAGE
_OFFSET
,
r20
andi
r20
,
-
4
,
r20
/*
reset
reserved
*/
ori
r20
,
1
,
r20
/*
set
MMUOFF
*/
putcon
r19
,
VBR
...
...
arch/sh/kernel/head_64.S
浏览文件 @
36763b22
...
...
@@ -38,9 +38,9 @@
#define MMUDR_END DTLB_LAST_VAR_UNRESTRICTED+TLB_STEP
#define MMUDR_STEP TLB_STEP
/*
Safety
check
:
CONFIG_
CACHED_MEMORY
_OFFSET
has
to
be
a
multiple
of
512
Mb
*/
#if (CONFIG_
CACHED_MEMORY
_OFFSET & ((1UL<<29)-1))
#error "CONFIG_
CACHED_MEMORY
_OFFSET must be a multiple of 512Mb"
/*
Safety
check
:
CONFIG_
PAGE
_OFFSET
has
to
be
a
multiple
of
512
Mb
*/
#if (CONFIG_
PAGE
_OFFSET & ((1UL<<29)-1))
#error "CONFIG_
PAGE
_OFFSET must be a multiple of 512Mb"
#endif
/*
...
...
@@ -49,7 +49,7 @@
/*
Deal
safely
with
the
case
where
the
base
of
RAM
is
not
512
Mb
aligned
*/
#define ALIGN_512M_MASK (0xffffffffe0000000)
#define ALIGNED_EFFECTIVE ((CONFIG_
CACHED_MEMORY
_OFFSET + CONFIG_MEMORY_START) & ALIGN_512M_MASK)
#define ALIGNED_EFFECTIVE ((CONFIG_
PAGE
_OFFSET + CONFIG_MEMORY_START) & ALIGN_512M_MASK)
#define ALIGNED_PHYSICAL (CONFIG_MEMORY_START & ALIGN_512M_MASK)
#define MMUIR_TEXT_H (0x0000000000000003 | ALIGNED_EFFECTIVE)
...
...
arch/sh/kernel/vmlinux_64.lds.S
浏览文件 @
36763b22
...
...
@@ -24,7 +24,7 @@
#include <asm/cache.h>
#include <asm/thread_info.h>
#define LOAD_OFFSET CONFIG_
CACHED_MEMORY
_OFFSET
#define LOAD_OFFSET CONFIG_
PAGE
_OFFSET
#include <asm-generic/vmlinux.lds.h>
OUTPUT_ARCH
(
sh
:
sh5
)
...
...
@@ -34,7 +34,7 @@ OUTPUT_ARCH(sh:sh5)
ENTRY
(
__start
)
SECTIONS
{
.
=
CONFIG_
CACHED_MEMORY
_OFFSET
+
CONFIG_MEMORY_START
+
PAGE_SIZE
;
.
=
CONFIG_
PAGE
_OFFSET
+
CONFIG_MEMORY_START
+
PAGE_SIZE
;
_text
=
.
; /* Text and read-only data */
.
empty_zero_page
:
C_PHYS
(
.
empty_zero_page
)
{
...
...
arch/sh/mm/Kconfig
浏览文件 @
36763b22
...
...
@@ -17,7 +17,8 @@ config MMU
config PAGE_OFFSET
hex
default "0x80000000" if MMU
default "0x80000000" if MMU && SUPERH32
default "0x20000000" if MMU && SUPERH64
default "0x00000000"
config MEMORY_START
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录