diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-05-10 18:39:03 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2007-05-10 18:39:03 +0000 |
commit | 9847e4a05a1eaf0f3fd3ad7fc03e1defb568add4 (patch) | |
tree | 40f44891122ad802ff049de127f2c12c972e7ec4 /c | |
parent | 2007-05-10 Joel Sherrill <joel.sherrill@OARcorp.com> (diff) | |
download | rtems-9847e4a05a1eaf0f3fd3ad7fc03e1defb568add4.tar.bz2 |
2007-05-10 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1237/rtems
* src/lib/libbsp/shared/bsplibc.c: Add logic to prevent stack creep
when interrupts occur at a sufficient rate that the interrupted
thread never gets to clean its stack. This patch ensures that an
interrupted thread will not nest ISR dispatches on its stack.
Diffstat (limited to 'c')
-rw-r--r-- | c/ChangeLog | 8 | ||||
-rw-r--r-- | c/src/lib/libbsp/shared/bsplibc.c | 5 |
2 files changed, 9 insertions, 4 deletions
diff --git a/c/ChangeLog b/c/ChangeLog index 08a234a1f1..2129c9d866 100644 --- a/c/ChangeLog +++ b/c/ChangeLog @@ -1,3 +1,11 @@ +2007-05-10 Joel Sherrill <joel.sherrill@OARcorp.com> + + PR 1237/rtems + * src/lib/libbsp/shared/bsplibc.c: Add logic to prevent stack creep + when interrupts occur at a sufficient rate that the interrupted + thread never gets to clean its stack. This patch ensures that an + interrupted thread will not nest ISR dispatches on its stack. + 2007-03-27 Ralf Corsépius <ralf.corsepius@rtems.org> * configure.ac: Use MKDIR_P instead of mkdir_p. diff --git a/c/src/lib/libbsp/shared/bsplibc.c b/c/src/lib/libbsp/shared/bsplibc.c index f5b4f3e68a..f8016d5e70 100644 --- a/c/src/lib/libbsp/shared/bsplibc.c +++ b/c/src/lib/libbsp/shared/bsplibc.c @@ -31,8 +31,5 @@ void bsp_libc_init( * Set up for the libc handling. */ - if ( BSP_Configuration.ticks_per_timeslice > 0 ) - libc_init(1); /* reentrant if possible */ - else - libc_init(0); /* non-reentrant */ + libc_init(1); /* reentrant if possible */ } |