mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-10-17 05:07:08 +08:00
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.
This commit is contained in:
@@ -39,6 +39,8 @@
|
||||
|
||||
#include <rtems/bsd/bsd.h>
|
||||
|
||||
uintptr_t rtems_bsd_allocator_domain_page_mbuf_size = 8 * 1024 * 1024;
|
||||
|
||||
uintptr_t
|
||||
rtems_bsd_get_allocator_domain_size(rtems_bsd_allocator_domain domain)
|
||||
{
|
||||
@@ -47,7 +49,7 @@ rtems_bsd_get_allocator_domain_size(rtems_bsd_allocator_domain domain)
|
||||
switch (domain) {
|
||||
case RTEMS_BSD_ALLOCATOR_DOMAIN_PAGE:
|
||||
case RTEMS_BSD_ALLOCATOR_DOMAIN_MBUF:
|
||||
size = 8 * 1024 * 1024;
|
||||
size = rtems_bsd_allocator_domain_page_mbuf_size;
|
||||
break;
|
||||
default:
|
||||
size = 0;
|
||||
|
Reference in New Issue
Block a user