Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
gsplhtlxg
clone-Linux
提交
3bd4c902
C
clone-Linux
项目概览
gsplhtlxg
/
clone-Linux
通知
2
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
clone-Linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3bd4c902
编写于
6月 16, 2005
作者:
M
Maciej W. Rozycki
提交者:
Ralf Baechle
10月 29, 2005
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Deal with the bloody KSEG vs CKSEG horror...
Signed-off-by:
N
Ralf Baechle
<
ralf@linux-mips.org
>
上级
902d21d5
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
26 addition
and
26 deletion
+26
-26
arch/mips/dec/ecc-berr.c
arch/mips/dec/ecc-berr.c
+2
-1
arch/mips/dec/prom/memory.c
arch/mips/dec/prom/memory.c
+7
-7
arch/mips/dec/reset.c
arch/mips/dec/reset.c
+1
-1
drivers/tc/tc.c
drivers/tc/tc.c
+1
-2
drivers/tc/zs.c
drivers/tc/zs.c
+3
-3
include/asm-mips/dec/kn01.h
include/asm-mips/dec/kn01.h
+2
-2
include/asm-mips/dec/kn02.h
include/asm-mips/dec/kn02.h
+1
-1
include/asm-mips/dec/kn02xa.h
include/asm-mips/dec/kn02xa.h
+7
-7
include/asm-mips/dec/kn03.h
include/asm-mips/dec/kn03.h
+1
-1
include/asm-mips/dec/prom.h
include/asm-mips/dec/prom.h
+1
-1
未找到文件。
arch/mips/dec/ecc-berr.c
浏览文件 @
3bd4c902
...
...
@@ -144,7 +144,8 @@ static int dec_ecc_be_backend(struct pt_regs *regs, int is_fixup, int invoker)
}
else
if
(
!
sngl
)
{
status
=
dbestr
;
}
else
{
volatile
u32
*
ptr
=
(
void
*
)
KSEG1ADDR
(
address
);
volatile
u32
*
ptr
=
(
void
*
)
CKSEG1ADDR
(
address
);
*
ptr
=
*
ptr
;
/* Rewrite. */
iob
();
...
...
arch/mips/dec/prom/memory.c
浏览文件 @
3bd4c902
...
...
@@ -35,22 +35,22 @@ static inline void pmax_setup_memory_region(void)
extern
char
genexcept_early
;
/* Install exception handler */
memcpy
(
&
old_handler
,
(
void
*
)(
KSEG0
+
0x80
),
0x80
);
memcpy
((
void
*
)(
KSEG0
+
0x80
),
&
genexcept_early
,
0x80
);
memcpy
(
&
old_handler
,
(
void
*
)(
C
KSEG0
+
0x80
),
0x80
);
memcpy
((
void
*
)(
C
KSEG0
+
0x80
),
&
genexcept_early
,
0x80
);
/* read unmapped and uncached (KSEG1)
* DECstations have at least 4MB RAM
* Assume less than 480MB of RAM, as this is max for 5000/2xx
* FIXME this should be replaced by the first free page!
*/
for
(
memory_page
=
(
unsigned
char
*
)
KSEG1
+
CHUNK_SIZE
;
(
mem_err
==
0
)
&&
(
memory_page
<
((
unsigned
char
*
)
KSEG1
+
0x1E000000
))
;
for
(
memory_page
=
(
unsigned
char
*
)
C
KSEG1
+
CHUNK_SIZE
;
mem_err
==
0
&&
memory_page
<
(
unsigned
char
*
)
CKSEG1
+
0x1e00000
;
memory_page
+=
CHUNK_SIZE
)
{
dummy
=
*
memory_page
;
}
memcpy
((
void
*
)(
KSEG0
+
0x80
),
&
old_handler
,
0x80
);
memcpy
((
void
*
)(
C
KSEG0
+
0x80
),
&
old_handler
,
0x80
);
add_memory_region
(
0
,
(
unsigned
long
)
memory_page
-
KSEG1
-
CHUNK_SIZE
,
add_memory_region
(
0
,
(
unsigned
long
)
memory_page
-
C
KSEG1
-
CHUNK_SIZE
,
BOOT_MEM_RAM
);
}
...
...
@@ -65,7 +65,7 @@ static inline void rex_setup_memory_region(void)
memmap
*
bm
;
/* some free 64k */
bm
=
(
memmap
*
)
KSEG0ADDR
(
0x28000
);
bm
=
(
memmap
*
)
C
KSEG0ADDR
(
0x28000
);
bitmap_size
=
rex_getbitmap
(
bm
);
...
...
arch/mips/dec/reset.c
浏览文件 @
3bd4c902
...
...
@@ -14,7 +14,7 @@ typedef void ATTRIB_NORET (* noret_func_t)(void);
static
inline
void
ATTRIB_NORET
back_to_prom
(
void
)
{
noret_func_t
func
=
(
void
*
)
KSEG1ADDR
(
0x1fc00000
);
noret_func_t
func
=
(
void
*
)
C
KSEG1ADDR
(
0x1fc00000
);
func
();
}
...
...
drivers/tc/tc.c
浏览文件 @
3bd4c902
...
...
@@ -197,7 +197,7 @@ void __init tc_init(void)
}
info
=
(
tcinfo
*
)
rex_gettcinfo
();
slot0addr
=
(
unsigned
long
)
KSEG1ADDR
(
rex_slot_address
(
0
));
slot0addr
=
(
unsigned
long
)
C
KSEG1ADDR
(
rex_slot_address
(
0
));
switch
(
mips_machtype
)
{
case
MACH_DS5000_200
:
...
...
@@ -245,7 +245,6 @@ void __init tc_init(void)
tc_bus
[
i
].
name
,
tc_bus
[
i
].
firmware
);
}
#endif
ioport_resource
.
end
=
KSEG2
-
1
;
}
}
...
...
drivers/tc/zs.c
浏览文件 @
3bd4c902
...
...
@@ -1637,21 +1637,21 @@ static void __init probe_sccs(void)
#ifdef CONFIG_MACH_DECSTATION
case
MACH_DS5000_2X0
:
case
MACH_DS5900
:
system_base
=
KSEG1ADDR
(
0x1f800000
);
system_base
=
C
KSEG1ADDR
(
0x1f800000
);
n_chips
=
2
;
zs_parms
=
&
ds_parms
;
zs_parms
->
irq0
=
dec_interrupt
[
DEC_IRQ_SCC0
];
zs_parms
->
irq1
=
dec_interrupt
[
DEC_IRQ_SCC1
];
break
;
case
MACH_DS5000_1XX
:
system_base
=
KSEG1ADDR
(
0x1c000000
);
system_base
=
C
KSEG1ADDR
(
0x1c000000
);
n_chips
=
2
;
zs_parms
=
&
ds_parms
;
zs_parms
->
irq0
=
dec_interrupt
[
DEC_IRQ_SCC0
];
zs_parms
->
irq1
=
dec_interrupt
[
DEC_IRQ_SCC1
];
break
;
case
MACH_DS5000_XX
:
system_base
=
KSEG1ADDR
(
0x1c000000
);
system_base
=
C
KSEG1ADDR
(
0x1c000000
);
n_chips
=
1
;
zs_parms
=
&
ds_parms
;
zs_parms
->
irq0
=
dec_interrupt
[
DEC_IRQ_SCC0
];
...
...
include/asm-mips/dec/kn01.h
浏览文件 @
3bd4c902
...
...
@@ -15,7 +15,7 @@
#include <asm/addrspace.h>
#define KN01_SLOT_BASE KSEG1ADDR(0x10000000)
#define KN01_SLOT_BASE
C
KSEG1ADDR(0x10000000)
#define KN01_SLOT_SIZE 0x01000000
/*
...
...
@@ -51,7 +51,7 @@
/*
* Frame buffer memory address.
*/
#define KN01_VFB_MEM KSEG1ADDR(0x0fc00000)
#define KN01_VFB_MEM
C
KSEG1ADDR(0x0fc00000)
/*
* CPU interrupt bits.
...
...
include/asm-mips/dec/kn02.h
浏览文件 @
3bd4c902
...
...
@@ -22,7 +22,7 @@
#include <asm/dec/ecc.h>
#define KN02_SLOT_BASE KSEG1ADDR(0x1fc00000)
#define KN02_SLOT_BASE
C
KSEG1ADDR(0x1fc00000)
#define KN02_SLOT_SIZE 0x00080000
/*
...
...
include/asm-mips/dec/kn02xa.h
浏览文件 @
3bd4c902
...
...
@@ -20,7 +20,7 @@
#include <asm/addrspace.h>
#include <asm/dec/ioasic_addrs.h>
#define KN02XA_SLOT_BASE KSEG1ADDR(0x1c000000)
#define KN02XA_SLOT_BASE
C
KSEG1ADDR(0x1c000000)
/*
* Some port addresses...
...
...
@@ -32,16 +32,16 @@
/*
* Memory control ASIC registers.
*/
#define KN02XA_MER KSEG1ADDR(0x0c400000)
/* memory error register */
#define KN02XA_MSR KSEG1ADDR(0x0c800000)
/* memory size register */
#define KN02XA_MER
C
KSEG1ADDR(0x0c400000)
/* memory error register */
#define KN02XA_MSR
C
KSEG1ADDR(0x0c800000)
/* memory size register */
/*
* CPU control ASIC registers.
*/
#define KN02XA_MEM_CONF KSEG1ADDR(0x0e000000)
/* write timeout config */
#define KN02XA_EAR KSEG1ADDR(0x0e000004)
/* error address register */
#define KN02XA_BOOT0 KSEG1ADDR(0x0e000008)
/* boot 0 register */
#define KN02XA_MEM_INTR KSEG1ADDR(0x0e00000c)
/* write err IRQ stat & ack */
#define KN02XA_MEM_CONF
C
KSEG1ADDR(0x0e000000)
/* write timeout config */
#define KN02XA_EAR
C
KSEG1ADDR(0x0e000004)
/* error address register */
#define KN02XA_BOOT0
C
KSEG1ADDR(0x0e000008)
/* boot 0 register */
#define KN02XA_MEM_INTR
C
KSEG1ADDR(0x0e00000c)
/* write err IRQ stat & ack */
/*
* Memory Error Register bits, common definitions.
...
...
include/asm-mips/dec/kn03.h
浏览文件 @
3bd4c902
...
...
@@ -19,7 +19,7 @@
#include <asm/dec/ecc.h>
#include <asm/dec/ioasic_addrs.h>
#define KN03_SLOT_BASE KSEG1ADDR(0x1f800000)
#define KN03_SLOT_BASE
C
KSEG1ADDR(0x1f800000)
/*
* Some port addresses...
...
...
include/asm-mips/dec/prom.h
浏览文件 @
3bd4c902
...
...
@@ -24,7 +24,7 @@
* PMAX/3MAX PROM entry points for DS2100/3100's and DS5000/2xx's.
* Many of these will work for MIPSen as well!
*/
#define VEC_RESET (u64 *)KSEG1ADDR(0x1fc00000)
#define VEC_RESET (u64 *)
C
KSEG1ADDR(0x1fc00000)
/* Prom base address */
#define PMAX_PROM_ENTRY(x) (VEC_RESET + (x))
/* Prom jump table */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录