[Bug 1797] New: malloc() are limited to the 1st 32 MB on the PowerPC BSPs

bugzilla-daemon at rtems.org bugzilla-daemon at rtems.org
Mon May 16 18:36:21 UTC 2011


https://www.rtems.org/bugzilla/show_bug.cgi?id=1797

           Summary: malloc() are limited to the 1st 32 MB on the PowerPC
                    BSPs
           Product: RTEMS
           Version: 4.10
          Platform: powerpc
        OS/Version: RTEMS
            Status: NEW
          Severity: critical
          Priority: P3
         Component: bsps
        AssignedTo: joel.sherrill at oarcorp.com
        ReportedBy: feng1 at bnl.gov


Created an attachment (id=1173)
 --> (https://www.rtems.org/bugzilla/attachment.cgi?id=1173)
Fixed the bugs for the limitation of the 1st 32 MB of memory on PPC BSPs.

bsp_sbrk_init() was declared at powerpc/shared/startup/bspgetworkarea.c and
its returned value was not passed along to bsp_libc_init(), which limited
malloc() only up to the 1st 32 MB of memory that no PPC BSP could extend to
allocate more memory, once the 32 MB is used up.  The attached patch
allowed one to malloc() beyond 32 MB. Besides, it fixed the value of
heap_start & heap_size for the single-heap case.  It complies with Joel
Sherrill's future plan for memory protection, but yet does not interfere
with the functions of other non-PowerPC BSPs. Thanks to everyone's feedback
and contribution.  Please see ChangeLog for details.

-- 
Configure bugmail: https://www.rtems.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the bugs mailing list