Root/m1/patches/rtems/fix-pmem-size.patch

1We increased PMEM to 8 kB but never updated SOFTUSB_PMEM_SIZE.
2This didn't have much of an effect because all we used it for was
3to zero unused program memory - which we should never touch
4anyway.
5
6But now that "usb load" in FN uses SOFTUSB_PMEM_SIZE, this caused
7it to silently truncate the firmware, producing rather puzzling
8effects.
9
10- Werner
11
12Index: rtems/c/src/lib/libbsp/lm32/milkymist/include/system_conf.h
13===================================================================
14--- rtems.orig/c/src/lib/libbsp/lm32/milkymist/include/system_conf.h 2012-03-02 20:35:36.000000000 -0300
15+++ rtems/c/src/lib/libbsp/lm32/milkymist/include/system_conf.h 2012-03-02 20:41:02.000000000 -0300
16@@ -155,7 +155,7 @@
17 #define MM_SOFTUSB_PMEM_BASE (0xa0000000)
18 #define MM_SOFTUSB_DMEM_BASE (0xa0020000)
19 
20-#define SOFTUSB_PMEM_SIZE (1 << 12)
21+#define SOFTUSB_PMEM_SIZE (1 << 13)
22 #define SOFTUSB_DMEM_SIZE (1 << 13)
23 
24 /* PFPU */
25

Archive Download this file

Branches:
master



interactive