aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/mips/dec/ecc-berr.c3
-rw-r--r--arch/mips/dec/prom/memory.c14
-rw-r--r--arch/mips/dec/reset.c2
-rw-r--r--drivers/tc/tc.c3
-rw-r--r--drivers/tc/zs.c6
-rw-r--r--include/asm-mips/dec/kn01.h4
-rw-r--r--include/asm-mips/dec/kn02.h2
-rw-r--r--include/asm-mips/dec/kn02xa.h14
-rw-r--r--include/asm-mips/dec/kn03.h2
-rw-r--r--include/asm-mips/dec/prom.h2
10 files changed, 26 insertions, 26 deletions
diff --git a/arch/mips/dec/ecc-berr.c b/arch/mips/dec/ecc-berr.c
index c4842096e50d..a36503c95bbb 100644
--- a/arch/mips/dec/ecc-berr.c
+++ b/arch/mips/dec/ecc-berr.c
@@ -144,7 +144,8 @@ static int dec_ecc_be_backend(struct pt_regs *regs, int is_fixup, int invoker)
144 } else if (!sngl) { 144 } else if (!sngl) {
145 status = dbestr; 145 status = dbestr;
146 } else { 146 } else {
147 volatile u32 *ptr = (void *)KSEG1ADDR(address); 147 volatile u32 *ptr =
148 (void *)CKSEG1ADDR(address);
148 149
149 *ptr = *ptr; /* Rewrite. */ 150 *ptr = *ptr; /* Rewrite. */
150 iob(); 151 iob();
diff --git a/arch/mips/dec/prom/memory.c b/arch/mips/dec/prom/memory.c
index e4f6f26425ea..83d4556c3cb5 100644
--- a/arch/mips/dec/prom/memory.c
+++ b/arch/mips/dec/prom/memory.c
@@ -35,22 +35,22 @@ static inline void pmax_setup_memory_region(void)
35 extern char genexcept_early; 35 extern char genexcept_early;
36 36
37 /* Install exception handler */ 37 /* Install exception handler */
38 memcpy(&old_handler, (void *)(KSEG0 + 0x80), 0x80); 38 memcpy(&old_handler, (void *)(CKSEG0 + 0x80), 0x80);
39 memcpy((void *)(KSEG0 + 0x80), &genexcept_early, 0x80); 39 memcpy((void *)(CKSEG0 + 0x80), &genexcept_early, 0x80);
40 40
41 /* read unmapped and uncached (KSEG1) 41 /* read unmapped and uncached (KSEG1)
42 * DECstations have at least 4MB RAM 42 * DECstations have at least 4MB RAM
43 * Assume less than 480MB of RAM, as this is max for 5000/2xx 43 * Assume less than 480MB of RAM, as this is max for 5000/2xx
44 * FIXME this should be replaced by the first free page! 44 * FIXME this should be replaced by the first free page!
45 */ 45 */
46 for (memory_page = (unsigned char *) KSEG1 + CHUNK_SIZE; 46 for (memory_page = (unsigned char *)CKSEG1 + CHUNK_SIZE;
47 (mem_err== 0) && (memory_page < ((unsigned char *) KSEG1+0x1E000000)); 47 mem_err == 0 && memory_page < (unsigned char *)CKSEG1 + 0x1e00000;
48 memory_page += CHUNK_SIZE) { 48 memory_page += CHUNK_SIZE) {
49 dummy = *memory_page; 49 dummy = *memory_page;
50 } 50 }
51 memcpy((void *)(KSEG0 + 0x80), &old_handler, 0x80); 51 memcpy((void *)(CKSEG0 + 0x80), &old_handler, 0x80);
52 52
53 add_memory_region(0, (unsigned long)memory_page - KSEG1 - CHUNK_SIZE, 53 add_memory_region(0, (unsigned long)memory_page - CKSEG1 - CHUNK_SIZE,
54 BOOT_MEM_RAM); 54 BOOT_MEM_RAM);
55} 55}
56 56
@@ -65,7 +65,7 @@ static inline void rex_setup_memory_region(void)
65 memmap *bm; 65 memmap *bm;
66 66
67 /* some free 64k */ 67 /* some free 64k */
68 bm = (memmap *)KSEG0ADDR(0x28000); 68 bm = (memmap *)CKSEG0ADDR(0x28000);
69 69
70 bitmap_size = rex_getbitmap(bm); 70 bitmap_size = rex_getbitmap(bm);
71 71
diff --git a/arch/mips/dec/reset.c b/arch/mips/dec/reset.c
index 7e4d34d0573d..f78c6da47921 100644
--- a/arch/mips/dec/reset.c
+++ b/arch/mips/dec/reset.c
@@ -14,7 +14,7 @@ typedef void ATTRIB_NORET (* noret_func_t)(void);
14 14
15static inline void ATTRIB_NORET back_to_prom(void) 15static inline void ATTRIB_NORET back_to_prom(void)
16{ 16{
17 noret_func_t func = (void *) KSEG1ADDR(0x1fc00000); 17 noret_func_t func = (void *)CKSEG1ADDR(0x1fc00000);
18 18
19 func(); 19 func();
20} 20}
diff --git a/drivers/tc/tc.c b/drivers/tc/tc.c
index a89ef4df80c3..2613c5135c09 100644
--- a/drivers/tc/tc.c
+++ b/drivers/tc/tc.c
@@ -197,7 +197,7 @@ void __init tc_init(void)
197 } 197 }
198 198
199 info = (tcinfo *) rex_gettcinfo(); 199 info = (tcinfo *) rex_gettcinfo();
200 slot0addr = (unsigned long)KSEG1ADDR(rex_slot_address(0)); 200 slot0addr = (unsigned long)CKSEG1ADDR(rex_slot_address(0));
201 201
202 switch (mips_machtype) { 202 switch (mips_machtype) {
203 case MACH_DS5000_200: 203 case MACH_DS5000_200:
@@ -245,7 +245,6 @@ void __init tc_init(void)
245 tc_bus[i].name, tc_bus[i].firmware); 245 tc_bus[i].name, tc_bus[i].firmware);
246 } 246 }
247#endif 247#endif
248 ioport_resource.end = KSEG2 - 1;
249 } 248 }
250} 249}
251 250
diff --git a/drivers/tc/zs.c b/drivers/tc/zs.c
index 6bed8713897e..a5dab1ac568c 100644
--- a/drivers/tc/zs.c
+++ b/drivers/tc/zs.c
@@ -1637,21 +1637,21 @@ static void __init probe_sccs(void)
1637#ifdef CONFIG_MACH_DECSTATION 1637#ifdef CONFIG_MACH_DECSTATION
1638 case MACH_DS5000_2X0: 1638 case MACH_DS5000_2X0:
1639 case MACH_DS5900: 1639 case MACH_DS5900:
1640 system_base = KSEG1ADDR(0x1f800000); 1640 system_base = CKSEG1ADDR(0x1f800000);
1641 n_chips = 2; 1641 n_chips = 2;
1642 zs_parms = &ds_parms; 1642 zs_parms = &ds_parms;
1643 zs_parms->irq0 = dec_interrupt[DEC_IRQ_SCC0]; 1643 zs_parms->irq0 = dec_interrupt[DEC_IRQ_SCC0];
1644 zs_parms->irq1 = dec_interrupt[DEC_IRQ_SCC1]; 1644 zs_parms->irq1 = dec_interrupt[DEC_IRQ_SCC1];
1645 break; 1645 break;
1646 case MACH_DS5000_1XX: 1646 case MACH_DS5000_1XX:
1647 system_base = KSEG1ADDR(0x1c000000); 1647 system_base = CKSEG1ADDR(0x1c000000);
1648 n_chips = 2; 1648 n_chips = 2;
1649 zs_parms = &ds_parms; 1649 zs_parms = &ds_parms;
1650 zs_parms->irq0 = dec_interrupt[DEC_IRQ_SCC0]; 1650 zs_parms->irq0 = dec_interrupt[DEC_IRQ_SCC0];
1651 zs_parms->irq1 = dec_interrupt[DEC_IRQ_SCC1]; 1651 zs_parms->irq1 = dec_interrupt[DEC_IRQ_SCC1];
1652 break; 1652 break;
1653 case MACH_DS5000_XX: 1653 case MACH_DS5000_XX:
1654 system_base = KSEG1ADDR(0x1c000000); 1654 system_base = CKSEG1ADDR(0x1c000000);
1655 n_chips = 1; 1655 n_chips = 1;
1656 zs_parms = &ds_parms; 1656 zs_parms = &ds_parms;
1657 zs_parms->irq0 = dec_interrupt[DEC_IRQ_SCC0]; 1657 zs_parms->irq0 = dec_interrupt[DEC_IRQ_SCC0];
diff --git a/include/asm-mips/dec/kn01.h b/include/asm-mips/dec/kn01.h
index 946943502f83..325fcbbbdfa0 100644
--- a/include/asm-mips/dec/kn01.h
+++ b/include/asm-mips/dec/kn01.h
@@ -15,7 +15,7 @@
15 15
16#include <asm/addrspace.h> 16#include <asm/addrspace.h>
17 17
18#define KN01_SLOT_BASE KSEG1ADDR(0x10000000) 18#define KN01_SLOT_BASE CKSEG1ADDR(0x10000000)
19#define KN01_SLOT_SIZE 0x01000000 19#define KN01_SLOT_SIZE 0x01000000
20 20
21/* 21/*
@@ -51,7 +51,7 @@
51/* 51/*
52 * Frame buffer memory address. 52 * Frame buffer memory address.
53 */ 53 */
54#define KN01_VFB_MEM KSEG1ADDR(0x0fc00000) 54#define KN01_VFB_MEM CKSEG1ADDR(0x0fc00000)
55 55
56/* 56/*
57 * CPU interrupt bits. 57 * CPU interrupt bits.
diff --git a/include/asm-mips/dec/kn02.h b/include/asm-mips/dec/kn02.h
index f797f7045920..2c935f972c67 100644
--- a/include/asm-mips/dec/kn02.h
+++ b/include/asm-mips/dec/kn02.h
@@ -22,7 +22,7 @@
22#include <asm/dec/ecc.h> 22#include <asm/dec/ecc.h>
23 23
24 24
25#define KN02_SLOT_BASE KSEG1ADDR(0x1fc00000) 25#define KN02_SLOT_BASE CKSEG1ADDR(0x1fc00000)
26#define KN02_SLOT_SIZE 0x00080000 26#define KN02_SLOT_SIZE 0x00080000
27 27
28/* 28/*
diff --git a/include/asm-mips/dec/kn02xa.h b/include/asm-mips/dec/kn02xa.h
index 648c4dcbba1d..f6bdf730d9fb 100644
--- a/include/asm-mips/dec/kn02xa.h
+++ b/include/asm-mips/dec/kn02xa.h
@@ -20,7 +20,7 @@
20#include <asm/addrspace.h> 20#include <asm/addrspace.h>
21#include <asm/dec/ioasic_addrs.h> 21#include <asm/dec/ioasic_addrs.h>
22 22
23#define KN02XA_SLOT_BASE KSEG1ADDR(0x1c000000) 23#define KN02XA_SLOT_BASE CKSEG1ADDR(0x1c000000)
24 24
25/* 25/*
26 * Some port addresses... 26 * Some port addresses...
@@ -32,16 +32,16 @@
32/* 32/*
33 * Memory control ASIC registers. 33 * Memory control ASIC registers.
34 */ 34 */
35#define KN02XA_MER KSEG1ADDR(0x0c400000) /* memory error register */ 35#define KN02XA_MER CKSEG1ADDR(0x0c400000) /* memory error register */
36#define KN02XA_MSR KSEG1ADDR(0x0c800000) /* memory size register */ 36#define KN02XA_MSR CKSEG1ADDR(0x0c800000) /* memory size register */
37 37
38/* 38/*
39 * CPU control ASIC registers. 39 * CPU control ASIC registers.
40 */ 40 */
41#define KN02XA_MEM_CONF KSEG1ADDR(0x0e000000) /* write timeout config */ 41#define KN02XA_MEM_CONF CKSEG1ADDR(0x0e000000) /* write timeout config */
42#define KN02XA_EAR KSEG1ADDR(0x0e000004) /* error address register */ 42#define KN02XA_EAR CKSEG1ADDR(0x0e000004) /* error address register */
43#define KN02XA_BOOT0 KSEG1ADDR(0x0e000008) /* boot 0 register */ 43#define KN02XA_BOOT0 CKSEG1ADDR(0x0e000008) /* boot 0 register */
44#define KN02XA_MEM_INTR KSEG1ADDR(0x0e00000c) /* write err IRQ stat & ack */ 44#define KN02XA_MEM_INTR CKSEG1ADDR(0x0e00000c) /* write err IRQ stat & ack */
45 45
46/* 46/*
47 * Memory Error Register bits, common definitions. 47 * Memory Error Register bits, common definitions.
diff --git a/include/asm-mips/dec/kn03.h b/include/asm-mips/dec/kn03.h
index 676abd17c6a4..9d787cc26353 100644
--- a/include/asm-mips/dec/kn03.h
+++ b/include/asm-mips/dec/kn03.h
@@ -19,7 +19,7 @@
19#include <asm/dec/ecc.h> 19#include <asm/dec/ecc.h>
20#include <asm/dec/ioasic_addrs.h> 20#include <asm/dec/ioasic_addrs.h>
21 21
22#define KN03_SLOT_BASE KSEG1ADDR(0x1f800000) 22#define KN03_SLOT_BASE CKSEG1ADDR(0x1f800000)
23 23
24/* 24/*
25 * Some port addresses... 25 * Some port addresses...
diff --git a/include/asm-mips/dec/prom.h b/include/asm-mips/dec/prom.h
index a05d6d3395fe..59b8ce6e9b36 100644
--- a/include/asm-mips/dec/prom.h
+++ b/include/asm-mips/dec/prom.h
@@ -24,7 +24,7 @@
24 * PMAX/3MAX PROM entry points for DS2100/3100's and DS5000/2xx's. 24 * PMAX/3MAX PROM entry points for DS2100/3100's and DS5000/2xx's.
25 * Many of these will work for MIPSen as well! 25 * Many of these will work for MIPSen as well!
26 */ 26 */
27#define VEC_RESET (u64 *)KSEG1ADDR(0x1fc00000) 27#define VEC_RESET (u64 *)CKSEG1ADDR(0x1fc00000)
28 /* Prom base address */ 28 /* Prom base address */
29 29
30#define PMAX_PROM_ENTRY(x) (VEC_RESET + (x)) /* Prom jump table */ 30#define PMAX_PROM_ENTRY(x) (VEC_RESET + (x)) /* Prom jump table */