Changeset 130fa35 in rtems-libbsd


Ignore:
Timestamp:
Jun 27, 2016, 3:09:04 AM (3 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
afaeccc05a556f6aa25ba044a7e49d6aa634a59e, freebsd-9.3, master
Children:
b23da31
Parents:
a0e49f9
git-author:
Chris Johns <chrisj@…> (06/27/16 03:09:04)
git-committer:
Chris Johns <chrisj@…> (06/27/16 03:32:24)
Message:

Make the domain allocation size global to allow it to set in tests.

Some BSPs with multiple NIC locked in the tests due to not enough
memory. This provides a simple per BSP way to increase the memory
size.

Location:
rtemsbsd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/include/rtems/bsd/bsd.h

    ra0e49f9 r130fa35  
    113113
    114114/**
     115 * @brief The size for the page/mbufs default allocator domain.
     116 *
     117 * Applications may set this value to change the value returned by the default.
     118 */
     119extern uintptr_t rtems_bsd_allocator_domain_page_mbuf_size;
     120
     121/**
    115122 * @brief Returns the size for a specific allocator domain.
    116123 *
  • rtemsbsd/rtems/rtems-bsd-get-allocator-domain-size.c

    ra0e49f9 r130fa35  
    4040#include <rtems/bsd/bsd.h>
    4141
     42uintptr_t rtems_bsd_allocator_domain_page_mbuf_size = 8 * 1024 * 1024;
     43
    4244uintptr_t
    4345rtems_bsd_get_allocator_domain_size(rtems_bsd_allocator_domain domain)
     
    4850                case RTEMS_BSD_ALLOCATOR_DOMAIN_PAGE:
    4951                case RTEMS_BSD_ALLOCATOR_DOMAIN_MBUF:
    50                         size = 8 * 1024 * 1024;
     52                        size = rtems_bsd_allocator_domain_page_mbuf_size;
    5153                        break;
    5254                default:
Note: See TracChangeset for help on using the changeset viewer.