Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118314
b: refs/heads/master
c: 263e69c
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Oct 31, 2008
1 parent b38fe7f commit 807e9eb
Show file tree
Hide file tree
Showing 530 changed files with 5,326 additions and 3,380 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4ac96572f1f6abe44b5e02e80fdfb5a990129613
refs/heads/master: 263e69cbc9e5a9e7bcf6a24f641ef0717d1ae4df
4 changes: 3 additions & 1 deletion trunk/Documentation/sh/new-machine.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ Next, for companion chips:
`-- sh
`-- cchips
`-- hd6446x
`-- hd64461
|-- hd64461
| `-- cchip-specific files
`-- hd64465
`-- cchip-specific files

... and so on. Headers for the companion chips are treated the same way as
Expand Down
87 changes: 60 additions & 27 deletions trunk/arch/cris/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,12 @@ mach-$(CONFIG_ETRAXFS) := fs

ifneq ($(arch-y),)
SARCH := arch-$(arch-y)
inc := -Iarch/cris/include/$(SARCH)
inc += -Iarch/cris/include/$(SARCH)/arch
else
SARCH :=
inc :=
endif

ifneq ($(mach-y),)
MACH := mach-$(mach-y)
inc += -Iarch/cris/include/$(SARCH)/$(MACH)/
inc += -Iarch/cris/include/$(SARCH)/$(MACH)/mach
else
MACH :=
endif
Expand All @@ -44,57 +39,95 @@ OBJCOPYFLAGS := -O binary -R .note -R .comment -S

CPPFLAGS_vmlinux.lds = -DDRAM_VIRTUAL_BASE=0x$(CONFIG_ETRAX_DRAM_VIRTUAL_BASE)

KBUILD_AFLAGS += -mlinux -march=$(arch-y) $(inc)
KBUILD_CFLAGS += -mlinux -march=$(arch-y) -pipe $(inc)
KBUILD_CPPFLAGS += $(inc)
KBUILD_AFLAGS += -mlinux -march=$(arch-y) -Iinclude/asm/arch/mach -Iinclude/asm/arch

KBUILD_CFLAGS += -mlinux -march=$(arch-y) -pipe -Iinclude/asm/arch/mach -Iinclude/asm/arch

ifdef CONFIG_FRAME_POINTER
KBUILD_CFLAGS := $(subst -fomit-frame-pointer,,$(KBUILD_CFLAGS)) -g
KBUILD_CFLAGS += -fno-omit-frame-pointer
endif

head-y := arch/cris/$(SARCH)/kernel/head.o
head-y := arch/$(ARCH)/$(SARCH)/kernel/head.o

LIBGCC = $(shell $(CC) $(KBUILD_CFLAGS) -print-file-name=libgcc.a)

core-y += arch/cris/kernel/ arch/cris/mm/
core-y += arch/cris/$(SARCH)/kernel/ arch/cris/$(SARCH)/mm/
core-y += arch/$(ARCH)/kernel/ arch/$(ARCH)/mm/
core-y += arch/$(ARCH)/$(SARCH)/kernel/ arch/$(ARCH)/$(SARCH)/mm/
ifdef CONFIG_ETRAX_ARCH_V32
core-y += arch/cris/$(SARCH)/$(MACH)/
core-y += arch/$(ARCH)/$(SARCH)/$(MACH)/
endif
drivers-y += arch/cris/$(SARCH)/drivers/
libs-y += arch/cris/$(SARCH)/lib/ $(LIBGCC)
drivers-y += arch/$(ARCH)/$(SARCH)/drivers/
libs-y += arch/$(ARCH)/$(SARCH)/lib/ $(LIBGCC)

# cris source path
SRC_ARCH = $(srctree)/arch/cris
SRC_ARCH = $(srctree)/arch/$(ARCH)
# cris object files path
OBJ_ARCH = $(objtree)/arch/cris
OBJ_ARCH = $(objtree)/arch/$(ARCH)

boot := arch/cris/$(SARCH)/boot
MACHINE := arch/cris/$(SARCH)
boot := arch/$(ARCH)/boot
MACHINE := arch/$(ARCH)/$(SARCH)

all: zImage

zImage Image: vmlinux
$(Q)$(MAKE) $(build)=$(boot) MACHINE=$(MACHINE) $(boot)/$@

archprepare:
archprepare: $(SRC_ARCH)/.links $(srctree)/include/asm-$(ARCH)/.arch FORCE

# Create some links to make all tools happy
$(SRC_ARCH)/.links:
@rm -rf $(SRC_ARCH)/drivers
@ln -sfn $(SARCH)/drivers $(SRC_ARCH)/drivers
@rm -rf $(SRC_ARCH)/boot
@ln -sfn $(SARCH)/boot $(SRC_ARCH)/boot
@rm -rf $(SRC_ARCH)/lib
@ln -sfn $(SARCH)/lib $(SRC_ARCH)/lib
@rm -f $(SRC_ARCH)/arch/mach
@rm -rf $(SRC_ARCH)/arch
@ln -sfn $(SARCH) $(SRC_ARCH)/arch
ifdef CONFIG_ETRAX_ARCH_V32
@ln -sfn ../$(SARCH)/$(MACH) $(SRC_ARCH)/arch/mach
endif
@rm -rf $(SRC_ARCH)/kernel/vmlinux.lds.S
@ln -sfn ../$(SARCH)/vmlinux.lds.S $(SRC_ARCH)/kernel/vmlinux.lds.S
@rm -rf $(SRC_ARCH)/kernel/asm-offsets.c
@ln -sfn ../$(SARCH)/kernel/asm-offsets.c $(SRC_ARCH)/kernel/asm-offsets.c
@touch $@

# Create link to sub arch includes
$(srctree)/include/asm-$(ARCH)/.arch: $(wildcard include/config/arch/*.h)
@echo ' SYMLINK include/asm-$(ARCH)/arch -> include/asm-$(ARCH)/$(SARCH)'
@rm -f $(srctree)/include/asm-$(ARCH)/arch/mach
@rm -f $(srctree)/include/asm-$(ARCH)/arch
@ln -sf $(SARCH) $(srctree)/include/asm-$(ARCH)/arch
ifdef CONFIG_ETRAX_ARCH_V32
@ln -sf $(MACH) $(srctree)/include/asm-$(ARCH)/arch/mach
endif
@touch $@

archclean:
$(Q)if [ -e arch/cris/$(SARCH)/boot ]; then \
$(MAKE) $(clean)=arch/cris/$(SARCH)/boot; \
$(Q)if [ -e arch/$(ARCH)/boot ]; then \
$(MAKE) $(clean)=arch/$(ARCH)/boot; \
fi

CLEAN_FILES += \
$(MACHINE)/boot/zImage \
$(MACHINE)/boot/compressed/decompress.bin \
$(MACHINE)/boot/compressed/piggy.gz \
$(MACHINE)/boot/rescue/rescue.bin


# MRPROPER_FILES +=
$(MACHINE)/boot/rescue/rescue.bin \
$(SRC_ARCH)/.links \
$(srctree)/include/asm-$(ARCH)/.arch

MRPROPER_FILES += \
$(SRC_ARCH)/drivers \
$(SRC_ARCH)/boot \
$(SRC_ARCH)/lib \
$(SRC_ARCH)/arch \
$(SRC_ARCH)/kernel/vmlinux.lds.S \
$(SRC_ARCH)/kernel/asm-offsets.c

define archhelp
echo '* zImage - Compressed kernel image (arch/cris/boot/zImage)'
echo '* Image - Uncompressed kernel image (arch/cris/boot/Image)'
echo '* zImage - Compressed kernel image (arch/$(ARCH)/boot/zImage)'
echo '* Image - Uncompressed kernel image (arch/$(ARCH)/boot/Image)'
endef
2 changes: 0 additions & 2 deletions trunk/arch/cris/arch-v10/boot/.gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion trunk/arch/cris/arch-v10/boot/compressed/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
*/

#define ASSEMBLER_MACROS_ONLY
#include <arch/sv_addr_ag.h>
#include <asm/arch/sv_addr_ag.h>

#define RAM_INIT_MAGIC 0x56902387
#define COMMAND_LINE_MAGIC 0x87109563
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/cris/arch-v10/boot/compressed/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


#include <linux/types.h>
#include <arch/svinto.h>
#include <asm/arch/svinto.h>

/*
* gzip declarations
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/cris/arch-v10/boot/rescue/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
#ifdef CONFIG_ETRAX_AXISFLASHMAP

#define ASSEMBLER_MACROS_ONLY
#include <arch/sv_addr_ag.h>
#include <asm/arch/sv_addr_ag.h>

;; The partitiontable is looked for at the first sector after the boot
;; sector. Sector size is 65536 bytes in all flashes we use.
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/cris/arch-v10/boot/rescue/kimagerescue.S
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

#define ASSEMBLER_MACROS_ONLY
#include <arch/sv_addr_ag.h>
#include <asm/arch/sv_addr_ag.h>

#define CODE_START 0x40004000
#define CODE_LENGTH 784
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/cris/arch-v10/boot/rescue/testrescue.S
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

#define ASSEMBLER_MACROS_ONLY
#include <arch/sv_addr_ag.h>
#include <asm/arch/sv_addr_ag.h>

.text

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/cris/arch-v10/drivers/axisflashmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include <asm/axisflashmap.h>
#include <asm/mmu.h>
#include <arch/sv_addr_ag.h>
#include <asm/arch/sv_addr_ag.h>

#ifdef CONFIG_CRIS_LOW_MAP
#define FLASH_UNCACHED_ADDR KSEG_8
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/cris/arch-v10/drivers/ds1302.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@

#include <asm/uaccess.h>
#include <asm/system.h>
#include <arch/svinto.h>
#include <asm/arch/svinto.h>
#include <asm/io.h>
#include <asm/rtc.h>
#include <arch/io_interface_mux.h>
#include <asm/arch/io_interface_mux.h>

#include "i2c.h"

Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/cris/arch-v10/drivers/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
#include <linux/interrupt.h>

#include <asm/etraxgpio.h>
#include <arch/svinto.h>
#include <asm/arch/svinto.h>
#include <asm/io.h>
#include <asm/system.h>
#include <asm/irq.h>
#include <arch/io_interface_mux.h>
#include <asm/arch/io_interface_mux.h>

#define GPIO_MAJOR 120 /* experimental MAJOR number */

Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/cris/arch-v10/drivers/i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
#include <asm/etraxi2c.h>

#include <asm/system.h>
#include <arch/svinto.h>
#include <asm/arch/svinto.h>
#include <asm/io.h>
#include <asm/delay.h>
#include <arch/io_interface_mux.h>
#include <asm/arch/io_interface_mux.h>

#include "i2c.h"

Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/cris/arch-v10/drivers/sync_serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@
#include <asm/irq.h>
#include <asm/dma.h>
#include <asm/io.h>
#include <arch/svinto.h>
#include <asm/arch/svinto.h>
#include <asm/uaccess.h>
#include <asm/system.h>
#include <asm/sync_serial.h>
#include <arch/io_interface_mux.h>
#include <asm/arch/io_interface_mux.h>

/* The receiver is a bit tricky beacuse of the continuous stream of data.*/
/* */
Expand Down
47 changes: 47 additions & 0 deletions trunk/arch/cris/arch-v10/kernel/asm-offsets.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#include <linux/sched.h>
#include <asm/thread_info.h>

/*
* Generate definitions needed by assembly language modules.
* This code generates raw asm output which is post-processed to extract
* and format the required data.
*/

#define DEFINE(sym, val) \
asm volatile("\n->" #sym " %0 " #val : : "i" (val))

#define BLANK() asm volatile("\n->" : : )

int main(void)
{
#define ENTRY(entry) DEFINE(PT_ ## entry, offsetof(struct pt_regs, entry))
ENTRY(orig_r10);
ENTRY(r13);
ENTRY(r12);
ENTRY(r11);
ENTRY(r10);
ENTRY(r9);
ENTRY(mof);
ENTRY(dccr);
ENTRY(srp);
BLANK();
#undef ENTRY
#define ENTRY(entry) DEFINE(TI_ ## entry, offsetof(struct thread_info, entry))
ENTRY(task);
ENTRY(flags);
ENTRY(preempt_count);
BLANK();
#undef ENTRY
#define ENTRY(entry) DEFINE(THREAD_ ## entry, offsetof(struct thread_struct, entry))
ENTRY(ksp);
ENTRY(usp);
ENTRY(dccr);
BLANK();
#undef ENTRY
#define ENTRY(entry) DEFINE(TASK_ ## entry, offsetof(struct task_struct, entry))
ENTRY(pid);
BLANK();
DEFINE(LCLONE_VM, CLONE_VM);
DEFINE(LCLONE_UNTRACED, CLONE_UNTRACED);
return 0;
}
2 changes: 1 addition & 1 deletion trunk/arch/cris/arch-v10/kernel/crisksyms.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include <linux/module.h>
#include <asm/io.h>
#include <arch/svinto.h>
#include <asm/arch/svinto.h>

/* Export shadow registers for the CPU I/O pins */
EXPORT_SYMBOL(genconfig_shadow);
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/cris/arch-v10/kernel/debugport.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <linux/delay.h>
#include <linux/tty.h>
#include <asm/system.h>
#include <arch/svinto.h>
#include <asm/arch/svinto.h>
#include <asm/io.h> /* Get SIMCOUT. */

extern void reset_watchdog(void);
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/cris/arch-v10/kernel/dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <linux/errno.h>

#include <asm/dma.h>
#include <arch/svinto.h>
#include <asm/arch/svinto.h>

/* Macro to access ETRAX 100 registers */
#define SETS(var, reg, field, val) var = (var & ~IO_MASK_(reg##_, field##_)) | \
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/cris/arch-v10/kernel/entry.S
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
#include <linux/linkage.h>
#include <linux/sys.h>
#include <asm/unistd.h>
#include <arch/sv_addr_ag.h>
#include <asm/arch/sv_addr_ag.h>
#include <asm/errno.h>
#include <asm/thread_info.h>
#include <asm/asm-offsets.h>
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/cris/arch-v10/kernel/fasttimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <asm/rtc.h>


#include <arch/svinto.h>
#include <asm/arch/svinto.h>
#include <asm/fasttimer.h>
#include <linux/proc_fs.h>

Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/cris/arch-v10/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#define ASSEMBLER_MACROS_ONLY
/* The IO_* macros use the ## token concatenation operator, so
-traditional must not be used when assembling this file. */
#include <arch/sv_addr_ag.h>
#include <asm/arch/sv_addr_ag.h>

#define CRAMFS_MAGIC 0x28cd3d45
#define RAM_INIT_MAGIC 0x56902387
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/cris/arch-v10/kernel/io_interface_mux.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
#include <linux/module.h>
#include <linux/init.h>

#include <arch/svinto.h>
#include <asm/arch/svinto.h>
#include <asm/io.h>
#include <arch/io_interface_mux.h>
#include <asm/arch/io_interface_mux.h>


#define DBG(s)
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/cris/arch-v10/kernel/kgdb.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
#include <asm/setup.h>
#include <asm/ptrace.h>

#include <arch/svinto.h>
#include <asm/arch/svinto.h>
#include <asm/irq.h>

static int kgdb_started = 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/cris/arch-v10/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <linux/err.h>
#include <linux/fs.h>
#include <linux/slab.h>
#include <arch/svinto.h>
#include <asm/arch/svinto.h>
#include <linux/init.h>

#ifdef CONFIG_ETRAX_GPIO
Expand Down
Loading

0 comments on commit 807e9eb

Please sign in to comment.