]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
[PATCH] ARM: make entry*.S includes more logical
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Tue, 26 Apr 2005 14:21:02 +0000 (15:21 +0100)
committerRussell King <rmk@dyn-67.arm.linux.org.uk>
Tue, 26 Apr 2005 14:21:02 +0000 (15:21 +0100)
Move common includes to entry-header, and file specific includes
to the relevant file.

Signed-off-by: Russell King <rmk@arm.linux.org.uk>
arch/arm/kernel/Makefile
arch/arm/kernel/entry-armv.S
arch/arm/kernel/entry-common.S
arch/arm/kernel/entry-header.S

index 07a56ff614940d2c4a38002a28b76c69570bb0ef..4a2af55e134bcdc2cb07f01fc45d85458c673d94 100644 (file)
@@ -31,8 +31,3 @@ head-y                        := head.o
 obj-$(CONFIG_DEBUG_LL) += debug.o
 
 extra-y := $(head-y) init_task.o vmlinux.lds
-
-# Spell out some dependencies that aren't automatically figured out
-$(obj)/entry-armv.o:   $(obj)/entry-header.S include/asm-arm/constants.h
-$(obj)/entry-common.o:         $(obj)/entry-header.S include/asm-arm/constants.h \
-                       $(obj)/calls.S
index 41470567186569265a4b59b529649038c276ad01..2a5c3fe09a95484a0d0844454e5f332686d96750 100644 (file)
  *  it to save wrong values...  Be aware!
  */
 #include <linux/config.h>
-#include <linux/init.h>
 
-#include <asm/thread_info.h>
 #include <asm/glue.h>
-#include <asm/ptrace.h>
 #include <asm/vfpmacros.h>
+#include <asm/hardware.h>              @ should be moved into entry-macro.S
+#include <asm/arch/irqs.h>             @ should be moved into entry-macro.S
+#include <asm/arch/entry-macro.S>
 
 #include "entry-header.S"
 
index 07da010b67d4d715b5e97dfb824eb70433776a20..3f8d0e3aefabf71c6bf82783024a72c39988974f 100644 (file)
@@ -9,8 +9,6 @@
  */
 #include <linux/config.h>
 
-#include <asm/thread_info.h>
-#include <asm/ptrace.h>
 #include <asm/unistd.h>
 
 #include "entry-header.S"
index 956af0bff3ff5c8e76d8e6d68a88139b6e69f829..a3d40a0e2b0479032a6d2f7126d64fb2ea626215 100644 (file)
@@ -1,20 +1,11 @@
-#include <linux/config.h> /* for CONFIG_ARCH_xxxx */
+#include <linux/config.h>
+#include <linux/init.h>
 #include <linux/linkage.h>
 
 #include <asm/assembler.h>
 #include <asm/constants.h>
 #include <asm/errno.h>
-#include <asm/hardware.h>
-#include <asm/arch/irqs.h>
-#include <asm/arch/entry-macro.S>
-
-       .macro  zero_fp
-#ifdef CONFIG_FRAME_POINTER
-       mov     fp, #0
-#endif
-       .endm
-
-       .text
+#include <asm/thread_info.h>
 
 @ Bad Abort numbers
 @ -----------------
 #error "Please fix"
 #endif
 
+       .macro  zero_fp
+#ifdef CONFIG_FRAME_POINTER
+       mov     fp, #0
+#endif
+       .endm
+
 #if __LINUX_ARM_ARCH__ >= 6
        .macro  disable_irq
        cpsid   i