1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Index: apps/plugins/plugin.lds
===================================================================
--- apps/plugins/plugin.lds  (revision 28428)
+++ apps/plugins/plugin.lds  (working copy)
@@ -139,14 +139,16 @@
 #endif

 #elif CONFIG_CPU==S5L8700
+/* S5L8700 have 256KB of IRAM */
 #define DRAMORIG 0x08000000
-#define IRAMORIG (0x00000000 + (64*1024))
-#define IRAMSIZE (64*1024)
+#define IRAMORIG (0x00000000 + (48*1024))
+#define IRAMSIZE (208*1024)

 #elif CONFIG_CPU==S5L8701
+/* S5L8701 have 176KB of IRAM */
 #define DRAMORIG 0x08000000
-#define IRAMORIG (0x00000000 + (96*1024))
-#define IRAMSIZE (80*1024)
+#define IRAMORIG (0x00000000 + (48*1024))
+#define IRAMSIZE (128*1024)

 #elif CONFIG_CPU == JZ4732
 #define DRAMORIG 0x80004000 + STUBOFFSET
Index: apps/plugins/SOURCES
Index: firmware/target/arm/s5l8700/app.lds
===================================================================
--- firmware/target/arm/s5l8700/app.lds  (revision 28428)
+++ firmware/target/arm/s5l8700/app.lds  (working copy)
@@ -21,9 +21,9 @@
 #define DRAMSIZE (DRAM_SIZE - PLUGINSIZE - CODECSIZE)
 #define CODECORIG (ENDAUDIOADDR)
 #if CONFIG_CPU==S5L8700
-#define IRAMSIZE (128*1024)  /* 256KB total - 128KB for core, 128KB for plugins */
+#define IRAMSIZE (48*1024)  /* 256KB total - 48KB for core, 208KB for plugins */
 #else /* S5L8701 */
-#define IRAMSIZE (96*1024)  /* 176KB total - 96KB for core, 80KB for plugins */
+#define IRAMSIZE (48*1024)  /* 176KB total - 48KB for core, 128KB for plugins */
 #endif

 /* Where the codec buffer ends, and the plugin buffer starts */