aboutsummaryrefslogtreecommitdiffstats
path: root/arch/cris/arch-v32
diff options
context:
space:
mode:
Diffstat (limited to 'arch/cris/arch-v32')
-rw-r--r--arch/cris/arch-v32/boot/compressed/head.S20
-rw-r--r--arch/cris/arch-v32/drivers/mach-a3/gpio.c2
-rw-r--r--arch/cris/arch-v32/drivers/mach-a3/nandflash.c2
-rw-r--r--arch/cris/arch-v32/drivers/mach-fs/nandflash.c2
-rw-r--r--arch/cris/arch-v32/drivers/pci/bios.c2
-rw-r--r--arch/cris/arch-v32/kernel/asm-offsets.c49
-rw-r--r--arch/cris/arch-v32/kernel/cache.c4
-rw-r--r--arch/cris/arch-v32/kernel/crisksyms.c8
-rw-r--r--arch/cris/arch-v32/kernel/debugport.c2
-rw-r--r--arch/cris/arch-v32/kernel/entry.S4
-rw-r--r--arch/cris/arch-v32/kernel/head.S22
-rw-r--r--arch/cris/arch-v32/kernel/kgdb.c8
-rw-r--r--arch/cris/arch-v32/kernel/kgdb_asm.S2
-rw-r--r--arch/cris/arch-v32/kernel/pinmux.c8
-rw-r--r--arch/cris/arch-v32/kernel/ptrace.c2
-rw-r--r--arch/cris/arch-v32/kernel/signal.c4
-rw-r--r--arch/cris/arch-v32/lib/nand_init.S10
-rw-r--r--arch/cris/arch-v32/mach-a3/dma.c2
-rw-r--r--arch/cris/arch-v32/mach-a3/io.c2
-rw-r--r--arch/cris/arch-v32/mach-fs/cpufreq.c6
-rw-r--r--arch/cris/arch-v32/mach-fs/dma.c2
-rw-r--r--arch/cris/arch-v32/mach-fs/io.c4
-rw-r--r--arch/cris/arch-v32/mach-fs/vcs_hook.c4
-rw-r--r--arch/cris/arch-v32/mm/init.c4
-rw-r--r--arch/cris/arch-v32/mm/tlb.c4
-rw-r--r--arch/cris/arch-v32/vmlinux.lds.S133
26 files changed, 78 insertions, 234 deletions
diff --git a/arch/cris/arch-v32/boot/compressed/head.S b/arch/cris/arch-v32/boot/compressed/head.S
index f86208caf32d..a4a65c5c669e 100644
--- a/arch/cris/arch-v32/boot/compressed/head.S
+++ b/arch/cris/arch-v32/boot/compressed/head.S
@@ -7,7 +7,7 @@
7 7
8#define ASSEMBLER_MACROS_ONLY 8#define ASSEMBLER_MACROS_ONLY
9#include <hwregs/asm/reg_map_asm.h> 9#include <hwregs/asm/reg_map_asm.h>
10#include <asm/arch/mach/startup.inc> 10#include <mach/startup.inc>
11 11
12#define RAM_INIT_MAGIC 0x56902387 12#define RAM_INIT_MAGIC 0x56902387
13#define COMMAND_LINE_MAGIC 0x87109563 13#define COMMAND_LINE_MAGIC 0x87109563
@@ -17,7 +17,7 @@
17 .globl input_data 17 .globl input_data
18 18
19 .text 19 .text
20start: 20_start:
21 di 21 di
22 22
23 ;; Start clocks for used blocks. 23 ;; Start clocks for used blocks.
@@ -28,7 +28,13 @@ start:
28 beq dram_init_finished 28 beq dram_init_finished
29 nop 29 nop
30 30
31#include "../../mach/dram_init.S" 31#if defined CONFIG_ETRAXFS
32#include "../../mach-fs/dram_init.S"
33#elif defined CONFIG_CRIS_MACH_ARTPEC3
34#include "../../mach-a3/dram_init.S"
35#else
36#error Only ETRAXFS and ARTPEC-3 supported!
37#endif
32 38
33dram_init_finished: 39dram_init_finished:
34 40
@@ -130,4 +136,10 @@ _cmd_line_addr:
130_boot_source: 136_boot_source:
131 .dword 0 137 .dword 0
132 138
133#include "../../mach/hw_settings.S" 139#if defined CONFIG_ETRAXFS
140#include "../../mach-fs/hw_settings.S"
141#elif defined CONFIG_CRIS_MACH_ARTPEC3
142#include "../../mach-a3/hw_settings.S"
143#else
144#error Only ETRAXFS and ARTPEC-3 supported!
145#endif
diff --git a/arch/cris/arch-v32/drivers/mach-a3/gpio.c b/arch/cris/arch-v32/drivers/mach-a3/gpio.c
index ef98608e5067..7a87bc0ae2e8 100644
--- a/arch/cris/arch-v32/drivers/mach-a3/gpio.c
+++ b/arch/cris/arch-v32/drivers/mach-a3/gpio.c
@@ -33,7 +33,7 @@
33#include <asm/io.h> 33#include <asm/io.h>
34#include <asm/system.h> 34#include <asm/system.h>
35#include <asm/irq.h> 35#include <asm/irq.h>
36#include <asm/arch/mach/pinmux.h> 36#include <mach/pinmux.h>
37 37
38#ifdef CONFIG_ETRAX_VIRTUAL_GPIO 38#ifdef CONFIG_ETRAX_VIRTUAL_GPIO
39#include "../i2c.h" 39#include "../i2c.h"
diff --git a/arch/cris/arch-v32/drivers/mach-a3/nandflash.c b/arch/cris/arch-v32/drivers/mach-a3/nandflash.c
index 01ed0be2d0d1..25d6f2b3a721 100644
--- a/arch/cris/arch-v32/drivers/mach-a3/nandflash.c
+++ b/arch/cris/arch-v32/drivers/mach-a3/nandflash.c
@@ -18,7 +18,7 @@
18#include <linux/mtd/mtd.h> 18#include <linux/mtd/mtd.h>
19#include <linux/mtd/nand.h> 19#include <linux/mtd/nand.h>
20#include <linux/mtd/partitions.h> 20#include <linux/mtd/partitions.h>
21#include <asm/arch/memmap.h> 21#include <arch/memmap.h>
22#include <hwregs/reg_map.h> 22#include <hwregs/reg_map.h>
23#include <hwregs/reg_rdwr.h> 23#include <hwregs/reg_rdwr.h>
24#include <hwregs/pio_defs.h> 24#include <hwregs/pio_defs.h>
diff --git a/arch/cris/arch-v32/drivers/mach-fs/nandflash.c b/arch/cris/arch-v32/drivers/mach-fs/nandflash.c
index aa01b134458a..c5a0f54763cc 100644
--- a/arch/cris/arch-v32/drivers/mach-fs/nandflash.c
+++ b/arch/cris/arch-v32/drivers/mach-fs/nandflash.c
@@ -18,7 +18,7 @@
18#include <linux/mtd/mtd.h> 18#include <linux/mtd/mtd.h>
19#include <linux/mtd/nand.h> 19#include <linux/mtd/nand.h>
20#include <linux/mtd/partitions.h> 20#include <linux/mtd/partitions.h>
21#include <asm/arch/memmap.h> 21#include <arch/memmap.h>
22#include <hwregs/reg_map.h> 22#include <hwregs/reg_map.h>
23#include <hwregs/reg_rdwr.h> 23#include <hwregs/reg_rdwr.h>
24#include <hwregs/gio_defs.h> 24#include <hwregs/gio_defs.h>
diff --git a/arch/cris/arch-v32/drivers/pci/bios.c b/arch/cris/arch-v32/drivers/pci/bios.c
index 5b79a7a772d4..77ee319193c3 100644
--- a/arch/cris/arch-v32/drivers/pci/bios.c
+++ b/arch/cris/arch-v32/drivers/pci/bios.c
@@ -1,6 +1,6 @@
1#include <linux/pci.h> 1#include <linux/pci.h>
2#include <linux/kernel.h> 2#include <linux/kernel.h>
3#include <asm/arch/hwregs/intr_vect.h> 3#include <arch/hwregs/intr_vect.h>
4 4
5void __devinit pcibios_fixup_bus(struct pci_bus *b) 5void __devinit pcibios_fixup_bus(struct pci_bus *b)
6{ 6{
diff --git a/arch/cris/arch-v32/kernel/asm-offsets.c b/arch/cris/arch-v32/kernel/asm-offsets.c
deleted file mode 100644
index 15b3d93a0496..000000000000
--- a/arch/cris/arch-v32/kernel/asm-offsets.c
+++ /dev/null
@@ -1,49 +0,0 @@
1#include <linux/sched.h>
2#include <asm/thread_info.h>
3
4/*
5 * Generate definitions needed by assembly language modules.
6 * This code generates raw asm output which is post-processed to extract
7 * and format the required data.
8 */
9
10#define DEFINE(sym, val) \
11 asm volatile("\n->" #sym " %0 " #val : : "i" (val))
12
13#define BLANK() asm volatile("\n->" : : )
14
15int main(void)
16{
17#define ENTRY(entry) DEFINE(PT_ ## entry, offsetof(struct pt_regs, entry))
18 ENTRY(orig_r10);
19 ENTRY(r13);
20 ENTRY(r12);
21 ENTRY(r11);
22 ENTRY(r10);
23 ENTRY(r9);
24 ENTRY(acr);
25 ENTRY(srs);
26 ENTRY(mof);
27 ENTRY(ccs);
28 ENTRY(srp);
29 BLANK();
30#undef ENTRY
31#define ENTRY(entry) DEFINE(TI_ ## entry, offsetof(struct thread_info, entry))
32 ENTRY(task);
33 ENTRY(flags);
34 ENTRY(preempt_count);
35 BLANK();
36#undef ENTRY
37#define ENTRY(entry) DEFINE(THREAD_ ## entry, offsetof(struct thread_struct, entry))
38 ENTRY(ksp);
39 ENTRY(usp);
40 ENTRY(ccs);
41 BLANK();
42#undef ENTRY
43#define ENTRY(entry) DEFINE(TASK_ ## entry, offsetof(struct task_struct, entry))
44 ENTRY(pid);
45 BLANK();
46 DEFINE(LCLONE_VM, CLONE_VM);
47 DEFINE(LCLONE_UNTRACED, CLONE_UNTRACED);
48 return 0;
49}
diff --git a/arch/cris/arch-v32/kernel/cache.c b/arch/cris/arch-v32/kernel/cache.c
index 80da7b88a72b..f38433b1f861 100644
--- a/arch/cris/arch-v32/kernel/cache.c
+++ b/arch/cris/arch-v32/kernel/cache.c
@@ -1,7 +1,7 @@
1#include <linux/module.h> 1#include <linux/module.h>
2#include <asm/io.h> 2#include <asm/io.h>
3#include <asm/arch/cache.h> 3#include <arch/cache.h>
4#include <asm/arch/hwregs/dma.h> 4#include <arch/hwregs/dma.h>
5 5
6/* This file is used to workaround a cache bug, Guinness TR 106. */ 6/* This file is used to workaround a cache bug, Guinness TR 106. */
7 7
diff --git a/arch/cris/arch-v32/kernel/crisksyms.c b/arch/cris/arch-v32/kernel/crisksyms.c
index 77d02c15a7fc..64933e2c0f5b 100644
--- a/arch/cris/arch-v32/kernel/crisksyms.c
+++ b/arch/cris/arch-v32/kernel/crisksyms.c
@@ -1,9 +1,9 @@
1#include <linux/module.h> 1#include <linux/module.h>
2#include <linux/irq.h> 2#include <linux/irq.h>
3#include <asm/arch/dma.h> 3#include <arch/dma.h>
4#include <asm/arch/intmem.h> 4#include <arch/intmem.h>
5#include <asm/arch/mach/pinmux.h> 5#include <mach/pinmux.h>
6#include <asm/arch/io.h> 6#include <arch/io.h>
7 7
8/* Functions for allocating DMA channels */ 8/* Functions for allocating DMA channels */
9EXPORT_SYMBOL(crisv32_request_dma); 9EXPORT_SYMBOL(crisv32_request_dma);
diff --git a/arch/cris/arch-v32/kernel/debugport.c b/arch/cris/arch-v32/kernel/debugport.c
index 15af4c293157..794b364d9f7d 100644
--- a/arch/cris/arch-v32/kernel/debugport.c
+++ b/arch/cris/arch-v32/kernel/debugport.c
@@ -9,7 +9,7 @@
9#include <hwregs/reg_map.h> 9#include <hwregs/reg_map.h>
10#include <hwregs/ser_defs.h> 10#include <hwregs/ser_defs.h>
11#include <hwregs/dma_defs.h> 11#include <hwregs/dma_defs.h>
12#include <asm/arch/mach/pinmux.h> 12#include <mach/pinmux.h>
13 13
14struct dbg_port 14struct dbg_port
15{ 15{
diff --git a/arch/cris/arch-v32/kernel/entry.S b/arch/cris/arch-v32/kernel/entry.S
index eebbaba45430..7f6f93e6b70e 100644
--- a/arch/cris/arch-v32/kernel/entry.S
+++ b/arch/cris/arch-v32/kernel/entry.S
@@ -24,8 +24,8 @@
24#include <asm/thread_info.h> 24#include <asm/thread_info.h>
25#include <asm/asm-offsets.h> 25#include <asm/asm-offsets.h>
26 26
27#include <asm/arch/hwregs/asm/reg_map_asm.h> 27#include <hwregs/asm/reg_map_asm.h>
28#include <asm/arch/hwregs/asm/intr_vect_defs_asm.h> 28#include <hwregs/asm/intr_vect_defs_asm.h>
29 29
30 ;; Exported functions. 30 ;; Exported functions.
31 .globl system_call 31 .globl system_call
diff --git a/arch/cris/arch-v32/kernel/head.S b/arch/cris/arch-v32/kernel/head.S
index 2d66a7c320e1..3db478eb5155 100644
--- a/arch/cris/arch-v32/kernel/head.S
+++ b/arch/cris/arch-v32/kernel/head.S
@@ -10,12 +10,13 @@
10 * The macros found in mmu_defs_asm.h uses the ## concatenation operator, so 10 * The macros found in mmu_defs_asm.h uses the ## concatenation operator, so
11 * -traditional must not be used when assembling this file. 11 * -traditional must not be used when assembling this file.
12 */ 12 */
13#include <linux/autoconf.h>
14#include <arch/memmap.h>
13#include <hwregs/reg_rdwr.h> 15#include <hwregs/reg_rdwr.h>
14#include <asm/arch/memmap.h>
15#include <hwregs/intr_vect.h> 16#include <hwregs/intr_vect.h>
16#include <hwregs/asm/mmu_defs_asm.h> 17#include <hwregs/asm/mmu_defs_asm.h>
17#include <hwregs/asm/reg_map_asm.h> 18#include <hwregs/asm/reg_map_asm.h>
18#include <asm/arch/mach/startup.inc> 19#include <mach/startup.inc>
19 20
20#define CRAMFS_MAGIC 0x28cd3d45 21#define CRAMFS_MAGIC 0x28cd3d45
21#define JHEAD_MAGIC 0x1FF528A6 22#define JHEAD_MAGIC 0x1FF528A6
@@ -217,7 +218,14 @@ _inflash:
217 beq _dram_initialized 218 beq _dram_initialized
218 nop 219 nop
219 220
220#include "../mach/dram_init.S" 221#if defined CONFIG_ETRAXFS
222#include "../mach-fs/dram_init.S"
223#elif defined CONFIG_CRIS_MACH_ARTPEC3
224#include "../mach-a3/dram_init.S"
225#else
226#error Only ETRAXFS and ARTPEC-3 supported!
227#endif
228
221 229
222_dram_initialized: 230_dram_initialized:
223 ;; Copy the text and data section to DRAM. This depends on that the 231 ;; Copy the text and data section to DRAM. This depends on that the
@@ -472,4 +480,10 @@ swapper_pg_dir = 0xc0002000
472 480
473 .section ".init.data", "aw" 481 .section ".init.data", "aw"
474 482
475#include "../mach/hw_settings.S" 483#if defined CONFIG_ETRAXFS
484#include "../mach-fs/hw_settings.S"
485#elif defined CONFIG_CRIS_MACH_ARTPEC3
486#include "../mach-a3/hw_settings.S"
487#else
488#error Only ETRAXFS and ARTPEC-3 supported!
489#endif
diff --git a/arch/cris/arch-v32/kernel/kgdb.c b/arch/cris/arch-v32/kernel/kgdb.c
index 8bd5a5bc0dc7..c981fd663323 100644
--- a/arch/cris/arch-v32/kernel/kgdb.c
+++ b/arch/cris/arch-v32/kernel/kgdb.c
@@ -174,10 +174,10 @@
174#include <asm/ptrace.h> 174#include <asm/ptrace.h>
175 175
176#include <asm/irq.h> 176#include <asm/irq.h>
177#include <asm/arch/hwregs/reg_map.h> 177#include <arch/hwregs/reg_map.h>
178#include <asm/arch/hwregs/reg_rdwr.h> 178#include <arch/hwregs/reg_rdwr.h>
179#include <asm/arch/hwregs/intr_vect_defs.h> 179#include <arch/hwregs/intr_vect_defs.h>
180#include <asm/arch/hwregs/ser_defs.h> 180#include <arch/hwregs/ser_defs.h>
181 181
182/* From entry.S. */ 182/* From entry.S. */
183extern void gdb_handle_exception(void); 183extern void gdb_handle_exception(void);
diff --git a/arch/cris/arch-v32/kernel/kgdb_asm.S b/arch/cris/arch-v32/kernel/kgdb_asm.S
index 3e7fa9ef8510..eba93e7e4aad 100644
--- a/arch/cris/arch-v32/kernel/kgdb_asm.S
+++ b/arch/cris/arch-v32/kernel/kgdb_asm.S
@@ -5,7 +5,7 @@
5 * port exceptions for kernel debugging purposes. 5 * port exceptions for kernel debugging purposes.
6 */ 6 */
7 7
8#include <asm/arch/hwregs/intr_vect.h> 8#include <arch/hwregs/intr_vect.h>
9 9
10 ;; Exported functions. 10 ;; Exported functions.
11 .globl kgdb_handle_exception 11 .globl kgdb_handle_exception
diff --git a/arch/cris/arch-v32/kernel/pinmux.c b/arch/cris/arch-v32/kernel/pinmux.c
index a2b8aa37c1bf..6eb54ea1c976 100644
--- a/arch/cris/arch-v32/kernel/pinmux.c
+++ b/arch/cris/arch-v32/kernel/pinmux.c
@@ -11,10 +11,10 @@
11#include <linux/kernel.h> 11#include <linux/kernel.h>
12#include <linux/string.h> 12#include <linux/string.h>
13#include <linux/spinlock.h> 13#include <linux/spinlock.h>
14#include <asm/arch/hwregs/reg_map.h> 14#include <arch/hwregs/reg_map.h>
15#include <asm/arch/hwregs/reg_rdwr.h> 15#include <arch/hwregs/reg_rdwr.h>
16#include <asm/arch/pinmux.h> 16#include <arch/pinmux.h>
17#include <asm/arch/hwregs/pinmux_defs.h> 17#include <arch/hwregs/pinmux_defs.h>
18 18
19#undef DEBUG 19#undef DEBUG
20 20
diff --git a/arch/cris/arch-v32/kernel/ptrace.c b/arch/cris/arch-v32/kernel/ptrace.c
index e27f4670e88e..dd401473f5b5 100644
--- a/arch/cris/arch-v32/kernel/ptrace.c
+++ b/arch/cris/arch-v32/kernel/ptrace.c
@@ -17,7 +17,7 @@
17#include <asm/pgtable.h> 17#include <asm/pgtable.h>
18#include <asm/system.h> 18#include <asm/system.h>
19#include <asm/processor.h> 19#include <asm/processor.h>
20#include <asm/arch/hwregs/supp_reg.h> 20#include <arch/hwregs/supp_reg.h>
21 21
22/* 22/*
23 * Determines which bits in CCS the user has access to. 23 * Determines which bits in CCS the user has access to.
diff --git a/arch/cris/arch-v32/kernel/signal.c b/arch/cris/arch-v32/kernel/signal.c
index 58c1866804e3..da7d2be000ba 100644
--- a/arch/cris/arch-v32/kernel/signal.c
+++ b/arch/cris/arch-v32/kernel/signal.c
@@ -18,8 +18,8 @@
18#include <asm/processor.h> 18#include <asm/processor.h>
19#include <asm/ucontext.h> 19#include <asm/ucontext.h>
20#include <asm/uaccess.h> 20#include <asm/uaccess.h>
21#include <asm/arch/ptrace.h> 21#include <arch/ptrace.h>
22#include <asm/arch/hwregs/cpu_vect.h> 22#include <arch/hwregs/cpu_vect.h>
23 23
24extern unsigned long cris_signal_return_page; 24extern unsigned long cris_signal_return_page;
25 25
diff --git a/arch/cris/arch-v32/lib/nand_init.S b/arch/cris/arch-v32/lib/nand_init.S
index e019816facd7..e705f5cce969 100644
--- a/arch/cris/arch-v32/lib/nand_init.S
+++ b/arch/cris/arch-v32/lib/nand_init.S
@@ -22,11 +22,11 @@
22## 22##
23##============================================================================= 23##=============================================================================
24 24
25#include <asm/arch/hwregs/asm/reg_map_asm.h> 25#include <arch/hwregs/asm/reg_map_asm.h>
26#include <asm/arch/hwregs/asm/gio_defs_asm.h> 26#include <arch/hwregs/asm/gio_defs_asm.h>
27#include <asm/arch/hwregs/asm/pinmux_defs_asm.h> 27#include <arch/hwregs/asm/pinmux_defs_asm.h>
28#include <asm/arch/hwregs/asm/bif_core_defs_asm.h> 28#include <arch/hwregs/asm/bif_core_defs_asm.h>
29#include <asm/arch/hwregs/asm/config_defs_asm.h> 29#include <arch/hwregs/asm/config_defs_asm.h>
30 30
31;; There are 8-bit NAND flashes and 16-bit NAND flashes. 31;; There are 8-bit NAND flashes and 16-bit NAND flashes.
32;; We need to treat them slightly different. 32;; We need to treat them slightly different.
diff --git a/arch/cris/arch-v32/mach-a3/dma.c b/arch/cris/arch-v32/mach-a3/dma.c
index 25f236ef0b81..f35e4f65f4ef 100644
--- a/arch/cris/arch-v32/mach-a3/dma.c
+++ b/arch/cris/arch-v32/mach-a3/dma.c
@@ -2,7 +2,7 @@
2 2
3#include <linux/kernel.h> 3#include <linux/kernel.h>
4#include <linux/spinlock.h> 4#include <linux/spinlock.h>
5#include <asm/arch/mach/dma.h> 5#include <mach/dma.h>
6#include <hwregs/reg_map.h> 6#include <hwregs/reg_map.h>
7#include <hwregs/reg_rdwr.h> 7#include <hwregs/reg_rdwr.h>
8#include <hwregs/marb_defs.h> 8#include <hwregs/marb_defs.h>
diff --git a/arch/cris/arch-v32/mach-a3/io.c b/arch/cris/arch-v32/mach-a3/io.c
index 9eeaf3eca474..c22f67ecd9f3 100644
--- a/arch/cris/arch-v32/mach-a3/io.c
+++ b/arch/cris/arch-v32/mach-a3/io.c
@@ -12,7 +12,7 @@
12#include <linux/kernel.h> 12#include <linux/kernel.h>
13#include <linux/module.h> 13#include <linux/module.h>
14#include <asm/io.h> 14#include <asm/io.h>
15#include <asm/arch/mach/pinmux.h> 15#include <mach/pinmux.h>
16#include <hwregs/gio_defs.h> 16#include <hwregs/gio_defs.h>
17 17
18struct crisv32_ioport crisv32_ioports[] = { 18struct crisv32_ioport crisv32_ioports[] = {
diff --git a/arch/cris/arch-v32/mach-fs/cpufreq.c b/arch/cris/arch-v32/mach-fs/cpufreq.c
index 58bd71e5bda9..d92cf70d1cbe 100644
--- a/arch/cris/arch-v32/mach-fs/cpufreq.c
+++ b/arch/cris/arch-v32/mach-fs/cpufreq.c
@@ -2,9 +2,9 @@
2#include <linux/module.h> 2#include <linux/module.h>
3#include <linux/cpufreq.h> 3#include <linux/cpufreq.h>
4#include <hwregs/reg_map.h> 4#include <hwregs/reg_map.h>
5#include <asm/arch/hwregs/reg_rdwr.h> 5#include <arch/hwregs/reg_rdwr.h>
6#include <asm/arch/hwregs/config_defs.h> 6#include <arch/hwregs/config_defs.h>
7#include <asm/arch/hwregs/bif_core_defs.h> 7#include <arch/hwregs/bif_core_defs.h>
8 8
9static int 9static int
10cris_sdram_freq_notifier(struct notifier_block *nb, unsigned long val, 10cris_sdram_freq_notifier(struct notifier_block *nb, unsigned long val,
diff --git a/arch/cris/arch-v32/mach-fs/dma.c b/arch/cris/arch-v32/mach-fs/dma.c
index a6acf4e6345c..2d970d7505c9 100644
--- a/arch/cris/arch-v32/mach-fs/dma.c
+++ b/arch/cris/arch-v32/mach-fs/dma.c
@@ -10,7 +10,7 @@
10#include <hwregs/strmux_defs.h> 10#include <hwregs/strmux_defs.h>
11#include <linux/errno.h> 11#include <linux/errno.h>
12#include <asm/system.h> 12#include <asm/system.h>
13#include <asm/arch/mach/arbiter.h> 13#include <mach/arbiter.h>
14 14
15static char used_dma_channels[MAX_DMA_CHANNELS]; 15static char used_dma_channels[MAX_DMA_CHANNELS];
16static const char *used_dma_channels_users[MAX_DMA_CHANNELS]; 16static const char *used_dma_channels_users[MAX_DMA_CHANNELS];
diff --git a/arch/cris/arch-v32/mach-fs/io.c b/arch/cris/arch-v32/mach-fs/io.c
index a03a3ad3a188..cb6327b1f8f8 100644
--- a/arch/cris/arch-v32/mach-fs/io.c
+++ b/arch/cris/arch-v32/mach-fs/io.c
@@ -12,8 +12,8 @@
12#include <linux/kernel.h> 12#include <linux/kernel.h>
13#include <linux/module.h> 13#include <linux/module.h>
14#include <asm/io.h> 14#include <asm/io.h>
15#include <asm/arch/pinmux.h> 15#include <mach/pinmux.h>
16#include <asm/arch/hwregs/gio_defs.h> 16#include <hwregs/gio_defs.h>
17 17
18#ifndef DEBUG 18#ifndef DEBUG
19#define DEBUG(x) 19#define DEBUG(x)
diff --git a/arch/cris/arch-v32/mach-fs/vcs_hook.c b/arch/cris/arch-v32/mach-fs/vcs_hook.c
index 593b10f07ef1..b11594ae0cb6 100644
--- a/arch/cris/arch-v32/mach-fs/vcs_hook.c
+++ b/arch/cris/arch-v32/mach-fs/vcs_hook.c
@@ -5,8 +5,8 @@
5 5
6#include "vcs_hook.h" 6#include "vcs_hook.h"
7#include <stdarg.h> 7#include <stdarg.h>
8#include <asm/arch-v32/hwregs/reg_map.h> 8#include <arch-v32/hwregs/reg_map.h>
9#include <asm/arch-v32/hwregs/intr_vect_defs.h> 9#include <arch-v32/hwregs/intr_vect_defs.h>
10 10
11#define HOOK_TRIG_ADDR 0xb7000000 /* hook cvlog model reg address */ 11#define HOOK_TRIG_ADDR 0xb7000000 /* hook cvlog model reg address */
12#define HOOK_MEM_BASE_ADDR 0xa0000000 /* csp4 (shared mem) base addr */ 12#define HOOK_MEM_BASE_ADDR 0xa0000000 /* csp4 (shared mem) base addr */
diff --git a/arch/cris/arch-v32/mm/init.c b/arch/cris/arch-v32/mm/init.c
index 8a34b8b74293..caeb921a92ea 100644
--- a/arch/cris/arch-v32/mm/init.c
+++ b/arch/cris/arch-v32/mm/init.c
@@ -16,8 +16,8 @@
16#include <asm/mmu.h> 16#include <asm/mmu.h>
17#include <asm/io.h> 17#include <asm/io.h>
18#include <asm/mmu_context.h> 18#include <asm/mmu_context.h>
19#include <asm/arch/hwregs/asm/mmu_defs_asm.h> 19#include <arch/hwregs/asm/mmu_defs_asm.h>
20#include <asm/arch/hwregs/supp_reg.h> 20#include <arch/hwregs/supp_reg.h>
21 21
22extern void tlb_init(void); 22extern void tlb_init(void);
23 23
diff --git a/arch/cris/arch-v32/mm/tlb.c b/arch/cris/arch-v32/mm/tlb.c
index eda5ebcaea54..55ade36fe8a8 100644
--- a/arch/cris/arch-v32/mm/tlb.c
+++ b/arch/cris/arch-v32/mm/tlb.c
@@ -9,8 +9,8 @@
9 9
10#include <asm/tlb.h> 10#include <asm/tlb.h>
11#include <asm/mmu_context.h> 11#include <asm/mmu_context.h>
12#include <asm/arch/hwregs/asm/mmu_defs_asm.h> 12#include <arch/hwregs/asm/mmu_defs_asm.h>
13#include <asm/arch/hwregs/supp_reg.h> 13#include <arch/hwregs/supp_reg.h>
14 14
15#define UPDATE_TLB_SEL_IDX(val) \ 15#define UPDATE_TLB_SEL_IDX(val) \
16do { \ 16do { \
diff --git a/arch/cris/arch-v32/vmlinux.lds.S b/arch/cris/arch-v32/vmlinux.lds.S
deleted file mode 100644
index d5f28e40717c..000000000000
--- a/arch/cris/arch-v32/vmlinux.lds.S
+++ /dev/null
@@ -1,133 +0,0 @@
1/* ld script to make the Linux/CRIS kernel
2 * Authors: Bjorn Wesen (bjornw@axis.com)
3 *
4 * It is VERY DANGEROUS to fiddle around with the symbols in this
5 * script. It is for example quite vital that all generated sections
6 * that are used are actually named here, otherwise the linker will
7 * put them at the end, where the init stuff is which is FREED after
8 * the kernel has booted.
9 */
10
11#include <asm-generic/vmlinux.lds.h>
12#include <asm/page.h>
13
14#ifdef CONFIG_ETRAX_VMEM_SIZE
15#define __CONFIG_ETRAX_VMEM_SIZE CONFIG_ETRAX_VMEM_SIZE
16#else
17#define __CONFIG_ETRAX_VMEM_SIZE 0
18#endif
19
20jiffies = jiffies_64;
21SECTIONS
22{
23 . = DRAM_VIRTUAL_BASE;
24 dram_start = .;
25 ebp_start = .;
26
27 /* The boot section is only necessary until the VCS top */
28 /* level testbench includes both flash and DRAM. */
29 .boot : { *(.boot) }
30
31 /* See head.S and pages reserved at the start. */
32 . = DRAM_VIRTUAL_BASE + 0x4000;
33
34 _text = .; /* Text and read-only data. */
35 text_start = .; /* Lots of aliases. */
36 _stext = .;
37 __stext = .;
38 .text : {
39 TEXT_TEXT
40 SCHED_TEXT
41 LOCK_TEXT
42 *(.fixup)
43 *(.text.__*)
44 }
45
46 _etext = . ; /* End of text section. */
47 __etext = .;
48
49 . = ALIGN(4); /* Exception table. */
50 __start___ex_table = .;
51 __ex_table : { *(__ex_table) }
52 __stop___ex_table = .;
53
54 RODATA
55
56 . = ALIGN (4);
57 ___data_start = . ;
58 __Sdata = . ;
59 .data : { /* Data */
60 DATA_DATA
61 }
62 __edata = . ; /* End of data section. */
63 _edata = . ;
64
65 . = ALIGN(PAGE_SIZE); /* init_task and stack, must be aligned. */
66 .data.init_task : { *(.data.init_task) }
67
68 . = ALIGN(PAGE_SIZE); /* Init code and data. */
69 __init_begin = .;
70 .init.text : {
71 _sinittext = .;
72 INIT_TEXT
73 _einittext = .;
74 }
75 .init.data : { INIT_DATA }
76 . = ALIGN(16);
77 __setup_start = .;
78 .init.setup : { *(.init.setup) }
79 __setup_end = .;
80 __start___param = .;
81 __param : { *(__param) }
82 __stop___param = .;
83 .initcall.init : {
84 __initcall_start = .;
85 INITCALLS
86 __initcall_end = .;
87 }
88
89 .con_initcall.init : {
90 __con_initcall_start = .;
91 *(.con_initcall.init)
92 __con_initcall_end = .;
93 }
94 SECURITY_INIT
95
96 __vmlinux_end = .; /* Last address of the physical file. */
97 PERCPU(PAGE_SIZE)
98
99 .init.ramfs : {
100 __initramfs_start = .;
101 *(.init.ramfs)
102 __initramfs_end = .;
103 }
104
105 /*
106 * We fill to the next page, so we can discard all init
107 * pages without needing to consider what payload might be
108 * appended to the kernel image.
109 */
110 . = ALIGN (PAGE_SIZE);
111
112 __init_end = .;
113
114 __data_end = . ; /* Move to _edata? */
115 __bss_start = .; /* BSS. */
116 .bss : {
117 *(COMMON)
118 *(.bss)
119 }
120
121 . = ALIGN (0x20);
122 _end = .;
123 __end = .;
124
125 /* Sections to be discarded */
126 /DISCARD/ : {
127 EXIT_TEXT
128 EXIT_DATA
129 *(.exitcall.exit)
130 }
131
132 dram_end = dram_start + (CONFIG_ETRAX_DRAM_SIZE - __CONFIG_ETRAX_VMEM_SIZE)*1024*1024;
133}