Commit Graph

3323 Commits

Author SHA1 Message Date
Sebastian Huber
ffb1a45e9c psxtests/psx07: Fix printf() statement
Close #2240.
2015-01-23 12:49:44 +01:00
Sebastian Huber
c625a64121 Filesystem: Delete node type operation
Use the fstat handler instead.
2015-01-22 07:52:40 +01:00
Sebastian Huber
f87ede57a2 libnetworking: Fix close of active sockets
Send a special event to notify tasks waiting for a socket state change
in case this socket gets closed.  This prevents a use after free.

Close #785.
2015-01-20 07:11:58 +01:00
Marcos Diaz
8a7048ac5e Fixed dl01 and dl02 makefiles 2015-01-20 07:53:51 +11:00
Sebastian Huber
77c5ddd496 smptests/smpmrsp01: Fix task delete race condition
Do not supsend self while waiting for termination since the
rtems_task_delete() may take place while the rtems_task_suspend() waits
for the Giant lock preventing delivery of the inter-processor interrupt.
The result is a suspended and terminated thread (this is a valid state,
but leads in this case to a test failure).
2015-01-14 07:40:49 +01:00
Sebastian Huber
7f28f23726 powerpc: Delete _CPU_IRQ_info 2015-01-09 14:03:35 +01:00
Sebastian Huber
b3ed66a17f libtests/crypt01: Increase stack size 2015-01-09 14:03:32 +01:00
Sebastian Huber
e7d175affb smptests/smpwakeafter01: Fix task count 2015-01-09 14:03:32 +01:00
Sebastian Huber
ad0743db07 smptests/smpmrsp01: Update run indicator only once
On the Freescale T2080 the excessive concurrent write/read lead to a
livelock condition.
2015-01-09 14:03:32 +01:00
Sebastian Huber
864d3475a5 smp: Fix timeout for MrsP semaphores
The previous timeout handling was flawed.  In case a waiting thread
helped out the owner could use the scheduler node indefinitely long.
Update the resource tree in _MRSP_Timeout() to avoid this issue.

Bug reported by Luca Bonato.
2014-12-18 08:33:29 +01:00
Sebastian Huber
a0b1b5edb8 Delete CONFIGURE_USE_IMFS_AS_BASE_FILESYSTEM
This define was superfluous, undocumented and used inconsistently.
2014-12-16 11:34:38 +01:00
Nick Withers
f42d4292cb Enable WebSocket support in the Mongoose HTTP server 2014-12-15 07:44:56 +01:00
Sebastian Huber
7bdb765a67 Add POSIX key value pairs to resource snapshot 2014-12-12 13:16:28 +01:00
Sebastian Huber
172e953147 posix: Delete key/value if value is set to NULL 2014-12-12 13:16:25 +01:00
Nick Withers
9d9c42601a Teach rtems_tarfs_load() about symlinks 2014-12-11 08:12:13 +01:00
Sebastian Huber
f3730d5660 libtests/complex: Avoid multiple definitions 2014-12-08 09:47:58 +01:00
Sebastian Huber
1207288022 Update bug report URL 2014-12-05 07:47:32 +01:00
Sebastian Huber
e870941bb0 libmisc: More useful default configuration
The dummy.c was a de-facto default configuration.  Rename it to
default-configuration.c.  Use unlimited objects and the stack checker.
This makes it easier for new RTEMS users which will likely use this file
if they just work with the usual main() function as the application
entry point.  Provide proper arguments for main() using the BSP command
line.  Add spare user extensions and drivers.

Do not initialize the network by default.  Delete bspinit.c.
2014-12-05 07:47:06 +01:00
Sebastian Huber
0104056056 sptests: Add get_one_tick_busy_value()
Extract this function from
interrupt_critical_section_test_support_initialize().
2014-12-03 11:19:53 +01:00
Sebastian Huber
f54e50339c libtests: Omit libdl tests if no RTEMS tools 2014-12-03 08:27:55 +01:00
Daniel Hellstrom
e7e92da52e DEVFS04: make test work on LEON3-FT GR712RC
The LEON3 BSP have support for up to 8 termios consoles, the
LEON3-FT GR712RC uses 6 UARTs.

This does not take into account the BSP maximum devices instead
it is hardcoded to 6. This patch increases it the maximum
devices of DEVFS04 from 6 to 10.
2014-12-02 13:47:37 +01:00
Daniel Hellstrom
9e8d8b5ce3 spcpuset01: fix test comments 2014-12-02 13:46:42 +01:00
Sebastian Huber
80d99aa20c libtests/complex,math: Prevent optimizations
For constant arguments GCC calculates the values of the math library
functions at compile-time.

close #1741
2014-12-01 08:20:55 +01:00
Sebastian Huber
01557b0c6e libcsupport: Delete malloc statistics
Use the heap handler statistics instead.  Add heap walk option to MALLOC
shell command.

close #1367
2014-11-28 11:23:53 +01:00
Sebastian Huber
0ff1c29d96 smptests/smpmrsp01: Use busy waits
Use busy waits instead of sleeps to avoid unnecessary switches to the
idle thread.
2014-11-27 10:33:31 +01:00
Sebastian Huber
5bd822a779 smp: Fix scheduler helping protocol
Ensure that scheduler nodes in the SCHEDULER_HELP_ACTIVE_OWNER or
SCHEDULER_HELP_ACTIVE_RIVAL helping state are always
SCHEDULER_SMP_NODE_READY or SCHEDULER_SMP_NODE_SCHEDULED to ensure the
MrsP protocol properties.
2014-11-27 10:33:31 +01:00
Sebastian Huber
038faca160 rtems: Add rtems_cache_coherent_allocate()
Add rtems_cache_coherent_free() and rtems_cache_coherent_add_area().
2014-11-27 10:33:30 +01:00
Jennifer Averett
39af57c3f7 smp09: Resolve missing prototype warning. 2014-11-25 14:44:59 -06:00
Jennifer Averett
6291e9627e smp07: Resolve missing prototype warning. 2014-11-25 14:44:59 -06:00
Jennifer Averett
2c474a056f smp05: Resolve missing prototype warning. 2014-11-25 14:44:59 -06:00
Jennifer Averett
441dc1c1ad smp02: Resolve unused method warnings. 2014-11-25 14:44:59 -06:00
Jennifer Averett
4375b3b660 smp03: Remove set but not used warning.
Added status validation.
2014-11-25 14:44:59 -06:00
Jennifer Averett
689cba286f smpschedsem01: Remove unused variable warning. 2014-11-25 14:44:59 -06:00
Jennifer Averett
15e371fe67 smpschedaffinity02: Remove unused prototype. 2014-11-25 14:44:59 -06:00
Sebastian Huber
7e5c9b895e rtems: Move rtems_cache_aligned_malloc()
Make sure also the size is cache aligned since otherwise we may have
some overlap with the next allocation block.  A cache invalidate on this
area would be fatal.
2014-11-25 16:08:16 +01:00
Sebastian Huber
7981a885f8 sptest/spcache01: New test cases 2014-11-25 16:08:16 +01:00
Jennifer Averett
44da98f08f smpcapture01: New test. 2014-11-24 14:04:54 -06:00
Jennifer Averett
11b3ba1b02 capture01: Use capture engine print methods. 2014-11-24 14:04:54 -06:00
Joel Sherrill
f7d27953cb testsuites/.../tmacros.h: Add parentheses to fix warning 2014-11-24 13:57:21 -06:00
Luca Bonato
cceb19f4e5 smp: Fix scheduler helping protocol
New test case for smptests/smpmrsp01.

Fix _Scheduler_Block_node() in case the node is in the
SCHEDULER_HELP_ACTIVE_RIVAL helping state.  For example a
rtems_task_suspend() on a task waiting for a MrsP semaphore.

Fix _Scheduler_Unblock_node() in case the node is in the
SCHEDULER_SMP_NODE_READY state.  For example a rtems_task_resume() on a
task owning or waiting for a MrsP semaphore.
2014-11-24 08:01:15 +01:00
Joel Sherrill
6570876d0e termio05: Remove unreferenced files
The functionality was conditionally compiled into a shared file
and these were not removed.

close #1821
2014-11-23 10:40:14 -06:00
Sebastian Huber
11925eef78 Delete or rename MIN/MAX macros and defines
Include <sys/param.h> if necessary to get the MIN()/MAX() macros.
2014-11-21 08:52:29 +01:00
Jennifer Averett
db44590c1d smpschedaffinity05: Change semaphore attributes.
Change semaphore attributes to resolve problem where semaphore is not
released upon a context switch.
2014-11-20 13:47:03 -06:00
Jennifer Averett
1960dcb9b2 smpschedaffinity04: Change semaphore attributes.
Change semaphore attributes to prevent semaphore from being
locked and never released upon a context switch.
2014-11-20 13:47:03 -06:00
Jennifer Averett
bc95f81699 smpschedaffinity02: Change semaphore attributes.
Change semaphore attributes to prevent semaphore from being
locked and never released upon a context switch.
2014-11-20 13:47:03 -06:00
Joel Sherrill
163519a055 libtests/malloctest/init.c: Fix warning
posix_memalign() is prototyped to take a non-NULL parameter. But our
test is deliberately passing one in. With the -Wnon-null warning flag
enabled, we will always get warnings on this test unless we disable
that warning for this single test case.
2014-11-20 12:57:33 -06:00
Sebastian Huber
a634febae4 dl01,dl02: Avoid non-runnable $(EXEEXT) files 2014-11-20 11:36:07 +01:00
Sebastian Huber
e02d5dd9b3 Ensure security of default user environment 2014-11-20 10:30:24 +01:00
Sebastian Huber
fa028bb2ef shell: Do chroot() after successful login 2014-11-20 10:30:24 +01:00
Sebastian Huber
065d72ce7e shell: Get supplementary group IDs in login check 2014-11-20 10:30:23 +01:00