patch-2.4.25 linux-2.4.25/arch/cris/lib/dram_init.S
Next file: linux-2.4.25/arch/cris/mm/fault.c
Previous file: linux-2.4.25/arch/cris/kernel/time.c
Back to the patch index
Back to the overall index
- Lines: 29
- Date:
2004-02-18 05:36:30.000000000 -0800
- Orig file:
linux-2.4.24/arch/cris/lib/dram_init.S
- Orig date:
2003-08-25 04:44:39.000000000 -0700
diff -urN linux-2.4.24/arch/cris/lib/dram_init.S linux-2.4.25/arch/cris/lib/dram_init.S
@@ -1,4 +1,4 @@
-/* $Id: dram_init.S,v 1.14 2003/03/31 07:07:08 starvik Exp $
+/* $Id: dram_init.S,v 1.15 2003/09/22 09:22:22 starvik Exp $
*
* DRAM/SDRAM initialization - alter with care
* This file is intended to be included from other assembler files
@@ -11,6 +11,10 @@
* Authors: Mikael Starvik (starvik@axis.com)
*
* $Log: dram_init.S,v $
+ * Revision 1.15 2003/09/22 09:22:22 starvik
+ * Decompresser is linked to 0x407xxxxx and sdram commands are at 0x000xxxxx
+ * so we need to mask off 12 bits.
+ *
* Revision 1.14 2003/03/31 07:07:08 starvik
* Corrected calculation of end of sdram init commands
*
@@ -149,9 +153,9 @@
; Issue initialization command sequence
move.d _sdram_commands_start, $r2
- and.d 0x00ffffff, $r2 ; Make sure commands are read from flash
+ and.d 0x000fffff, $r2 ; Make sure commands are read from flash
move.d _sdram_commands_end, $r3
- and.d 0x00ffffff, $r3
+ and.d 0x000fffff, $r3
1: clear.d $r4
move.b [$r2+], $r4
lslq 9, $r4 ; Command starts at bit 9
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)