diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-04-11 15:04:22 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-04-11 15:24:39 +0200 |
commit | 5eb434e67ed31111eb90b92cf75248f2ff9d1086 (patch) | |
tree | 4e4493d101058953149da482fb8344cb240721a2 /cpukit/sapi/include | |
parent | nios2: New functions (diff) | |
download | rtems-5eb434e67ed31111eb90b92cf75248f2ff9d1086.tar.bz2 |
score: New macros and functions
New macros
o _Objects_Maximum_per_allocation(),
o rtems_resource_is_unlimited(), and
o rtems_resource_maximum_per_allocation().
New function
o _Objects_Is_unlimited().
Diffstat (limited to 'cpukit/sapi/include')
-rw-r--r-- | cpukit/sapi/include/confdefs.h | 2 | ||||
-rw-r--r-- | cpukit/sapi/include/rtems/config.h | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/cpukit/sapi/include/confdefs.h b/cpukit/sapi/include/confdefs.h index ab8e473789..d896c59e82 100644 --- a/cpukit/sapi/include/confdefs.h +++ b/cpukit/sapi/include/confdefs.h @@ -954,7 +954,7 @@ rtems_fs_init_functions_t rtems_fs_init_helper = * for memory usage. */ #define _Configure_Max_Objects(_max) \ - ((_max) & ~RTEMS_UNLIMITED_OBJECTS) + rtems_resource_maximum_per_allocation(_max) /** * This macro accounts for how memory for a set of configured objects is diff --git a/cpukit/sapi/include/rtems/config.h b/cpukit/sapi/include/rtems/config.h index 25ddfda421..407b19e825 100644 --- a/cpukit/sapi/include/rtems/config.h +++ b/cpukit/sapi/include/rtems/config.h @@ -37,6 +37,12 @@ extern "C" { #define rtems_resource_unlimited(resource) \ ( resource | RTEMS_UNLIMITED_OBJECTS ) +#define rtems_resource_is_unlimited(resource) \ + _Objects_Is_unlimited(resource) + +#define rtems_resource_maximum_per_allocation(resource) \ + _Objects_Maximum_per_allocation(resource) + /* * This is kind of kludgy but it allows targets to totally ignore the * optional APIs like POSIX safely. |