1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2024-11-15 05:53:09 +02:00

m1/patches/rtems/: fix SOFTUSB_PMEM_SIZE

This commit is contained in:
Werner Almesberger 2012-03-02 20:59:34 -03:00
parent e99d4af33d
commit f829d131ad
2 changed files with 25 additions and 0 deletions

View File

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

View File

@ -24,3 +24,4 @@ fix-dns-in-dhcp.patch # https://www.rtems.org/bugzilla/show_bug.cgi?id=1841
export-shell-fns.patch # https://www.rtems.org/bugzilla/show_bug.cgi?id=2030
bootp-dhcp-cleanup.patch # https://www.rtems.org/bugzilla/show_bug.cgi?id=2031
usb-firmware-ioctl.patch # https://www.rtems.org/bugzilla/show_bug.cgi?id=2032
fix-pmem-size.patch