diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-03-17 16:01:03 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-03-17 16:01:03 +0000 |
commit | f4a8ee1c55788aeb053ede7571b07906a9847a45 (patch) | |
tree | 7417825a9a351aaf100374b08d314756523bef5f /c/src/exec/sapi/include/rtems/config.h | |
parent | Suggested rephrasing of inline versus macros option by Chris Johns (diff) | |
download | rtems-f4a8ee1c55788aeb053ede7571b07906a9847a45.tar.bz2 |
Unlimited objects patch from Chris Johns <ccj@acm.org>. Email follows:
First, the unlimited patch. I have compiled the unlmited patch for the
Linux posix BSP only and it seems to work cleanly. I would like a really
major application run on this change before commiting as the changes are
very core and significant. I am currently building all the tests to run.
I have no targets suitable to test on at the moment.
I have tested the patch for inline functions and macros.
Turning macros on has found some core bugs. I have fixed these but have
not run all the tests. Please review the patch for these changes. They
are:
1) The conditional compilation for MP support broke the core messages
code. You cannot embed a conditional macro in another macro. The Send
and Urgent Send calls are macros.
2) User extensions handler initialisation now has two parameters. I have
updated the macros to support the extra parameter.
The patch also contains the gcc-target-default.cfg fix required to build
the kernel. More of a by product than a fix for you.
Diffstat (limited to '')
-rw-r--r-- | c/src/exec/sapi/include/rtems/config.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/c/src/exec/sapi/include/rtems/config.h b/c/src/exec/sapi/include/rtems/config.h index 5a01286059..ac2da06d97 100644 --- a/c/src/exec/sapi/include/rtems/config.h +++ b/c/src/exec/sapi/include/rtems/config.h @@ -22,6 +22,20 @@ extern "C" { #endif /* + * Unlimited object support. Changes the configuration table entry for POSIX + * or RTEMS APIs to bounded only by the memory of the work-space. + * + * Use the macro to define the resource unlimited before placing in the configuration + * table. + */ + +#include <rtems/score/object.h> +#define RTEMS_UNLIMITED_OBJECTS OBJECTS_UNLIMITED_OBJECTS + +#define rtems_resource_unlimited(resource) \ + ( resource | RTEMS_UNLIMITED_OBJECTS ) + +/* * This is kind of kludgy but it allows targets to totally ignore the * POSIX API safely. */ |