patch-2.4.22 linux-2.4.22/arch/cris/kernel/head.S
Next file: linux-2.4.22/arch/cris/kernel/irq.c
Previous file: linux-2.4.22/arch/cris/kernel/fasttimer.c
Back to the patch index
Back to the overall index
- Lines: 93
- Date:
2003-08-25 04:44:39.000000000 -0700
- Orig file:
linux-2.4.21/arch/cris/kernel/head.S
- Orig date:
2002-08-02 17:39:42.000000000 -0700
diff -urN linux-2.4.21/arch/cris/kernel/head.S linux-2.4.22/arch/cris/kernel/head.S
@@ -1,4 +1,4 @@
-/* $Id: head.S,v 1.44 2002/02/05 15:39:57 bjornw Exp $
+/* $Id: head.S,v 1.47 2003/07/08 09:53:35 starvik Exp $
*
* Head of the kernel - alter with care
*
@@ -7,6 +7,15 @@
* Authors: Bjorn Wesen (bjornw@axis.com)
*
* $Log: head.S,v $
+ * Revision 1.47 2003/07/08 09:53:35 starvik
+ * Corrected last CVS log entry
+ *
+ * Revision 1.46 2003/05/15 08:07:51 gunnard
+ * Removed serial port DMA when using AGDB.
+ *
+ * Revision 1.45 2003/04/28 05:31:05 starvik
+ * Added section attributes
+ *
* Revision 1.44 2002/02/05 15:39:57 bjornw
* Oops.. non-CRAMFS_MAGIC should jump over the copying, not into it...
*
@@ -311,7 +320,7 @@
;; Put this in a suitable section where we can reclaim storage
;; after init.
- .section ".text.init"
+ .section ".text.init", "ax"
_inflash:
#ifdef CONFIG_ETRAX_ETHERNET
;; Start MII clock to make sure it is running when tranceiver is reset
@@ -543,14 +552,24 @@
#if (!defined(CONFIG_ETRAX_KGDB) || !defined(CONFIG_ETRAX_DEBUG_PORT0)) \
&& !defined(CONFIG_DMA_MEMCPY)
; DMA channels 6 and 7 to ser0, kgdb doesnt want DMA
+#if (defined(CONFIG_ETRAX_AGDB))
+ ; agdb only wants DMA out, no dma in
+ or.d IO_STATE (R_GEN_CONFIG, dma6, serial0),$r0
+#else
or.d IO_STATE (R_GEN_CONFIG, dma7, serial0) \
| IO_STATE (R_GEN_CONFIG, dma6, serial0),$r0
#endif
+#endif
#if !defined(CONFIG_ETRAX_KGDB) || !defined(CONFIG_ETRAX_DEBUG_PORT1)
; DMA channels 8 and 9 to ser1, kgdb doesnt want DMA
+#if (defined(CONFIG_ETRAX_AGDB))
+ ; agdb only wants DMA out, no dma in
+ or.d IO_STATE (R_GEN_CONFIG, dma8, serial1),$r0
+#else
or.d IO_STATE (R_GEN_CONFIG, dma9, serial1) \
| IO_STATE (R_GEN_CONFIG, dma8, serial1),$r0
#endif
+#endif
#ifdef CONFIG_DMA_MEMCPY
; 6/7 memory-memory DMA
or.d IO_STATE (R_GEN_CONFIG, dma7, intdma6) \
@@ -561,19 +580,29 @@
or.w IO_STATE (R_GEN_CONFIG, ser2, select),$r0
#if !defined(CONFIG_ETRAX_KGDB) || !defined(CONFIG_ETRAX_DEBUG_PORT2)
; DMA channels 2 and 3 to ser2, kgdb doesnt want DMA
+#if (defined(CONFIG_ETRAX_AGDB))
+ ; agdb only wants DMA out, no dma in
+ or.d IO_STATE (R_GEN_CONFIG, dma2, serial2),$r0
+#else
or.d IO_STATE (R_GEN_CONFIG, dma3, serial2) \
| IO_STATE (R_GEN_CONFIG, dma2, serial2),$r0
#endif
#endif
+#endif
#if defined(CONFIG_ETRAX_SERIAL_PORT3) || defined(CONFIG_ETRAX_SYNCHRONOUS_SERIAL_PORT1)
; Enable serial port 3
or.w IO_STATE (R_GEN_CONFIG, ser3, select),$r0
#if !defined(CONFIG_ETRAX_KGDB) || !defined(CONFIG_ETRAX_DEBUG_PORT3)
; DMA channels 4 and 5 to ser3, kgdb doesnt want DMA
+#if (defined(CONFIG_ETRAX_AGDB))
+ ; agdb only wants DMA out, no dma in
+ or.d IO_STATE (R_GEN_CONFIG, dma4, serial3),$r0
+#else
or.d IO_STATE (R_GEN_CONFIG, dma5, serial3) \
| IO_STATE (R_GEN_CONFIG, dma4, serial3),$r0
#endif
#endif
+#endif
#if defined(CONFIG_ETRAX_PARALLEL_PORT0) || defined(CONFIG_ETRAX_ETHERNET_LPSLAVE)
; parport 0 enabled using DMA 2/3
or.w IO_STATE (R_GEN_CONFIG, par0, select),$r0
@@ -840,5 +869,5 @@
swapper_pg_dir = 0xc0002000
#endif
- .section ".data.init"
+ .section ".data.init", "aw"
#include "../lib/hw_settings.S"
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)