This is the mail archive of the
ecos-discuss@sourceware.cygnus.com
mailing list for the eCos project.
[PATCH] AEB-1C memory SFR settings...
- To: ecos-discuss at sourceware dot cygnus dot com
- Subject: [ECOS] [PATCH] AEB-1C memory SFR settings...
- From: vonsrdmn at ugcs dot caltech dot edu (Srdjan Sobajic)
- Date: Fri, 17 Dec 1999 11:23:16 -0800 (PST)
- Cc: srdjans at digitalpersona dot com
Hi All,
Maybe I missed some obvious way of doing this, but after checking out
the memory SFR settings on the AEB-1C I have, the board is configured
to use only 128 kB of the available RAM...
So this patch fixes that problem right at startup, and makes the full
256 kB RAM available.
If there's a better way of doing this please let me know- but this works
for me.
Srdjan
(this is for $(BASEPATH)/packages/hal/arm/arch/current/src/vectors.S)
--- vectors.S~ Wed Dec 1 13:33:38 1999
+++ vectors.S Wed Dec 8 14:50:26 1999
@@ -142,6 +142,18 @@
// Come here to reset board
warm_reset:
+#ifndef CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS
+ // Added to have 256 kB RAM available on AEB-1C with weird Flash
+ mvn r3, #24320
+ sub r3, r3, #243
+ mov r2, #294912
+ str r2, [r3] // set 0xFFFFA00C (Start3) to 0x48000
+ mvn r3, #24320
+ sub r3, r3, #215
+ mov r2, #294912
+ str r2, [r3] // set 0xFFFFA028 (Stop 2) to 0x48000
+#endif
+
#if defined(CYG_HAL_STARTUP_RAM) && \
!defined(CYGDBG_HAL_DEBUG_GDB_INCLUDE_STUBS)
mrs r7,cpsr // move back to IRQ mode