Commit Graph

24377 Commits

Author SHA1 Message Date
Sebastian Huber
b3cee28a51 libnetworking: Avoid deadlock during starvation 2012-11-02 16:06:57 +01:00
Sebastian Huber
7a1e92a17a monitor: Support for system events 2012-11-02 16:06:40 +01:00
Sebastian Huber
eb93595b4c libblock: Documentation 2012-11-02 09:40:58 +01:00
Sebastian Huber
9f0a68ce5a libblock: Block device transfer request API change
Add and use rtems_blkdev_request_done().  Block device transfer requests
must signal the completion status now with rtems_blkdev_request_done().
The return value of the block device IO control will be ignored for
transfer requests.

The first parameter of rtems_blkdev_request_cb is now the transfer
request structure.

Renamed rtems_blkdev_request::req_done to rtems_blkdev_request::done to
break third party drivers at compile time, otherwise this API change
would result in runtime errors.
2012-11-02 09:40:58 +01:00
Sebastian Huber
20e1e769f8 bsp/mpc55xx: SMSC9218i avoid mbuf migration
The receive task will only hand over a mbuf if it gets a new one
immediately.  This avoids mbuf migration out of the receive task in case
of overload.
2012-11-02 09:34:39 +01:00
Sebastian Huber
26e90fb1c6 libnetworking: Use system events
Add reserved system events RTEMS_EVENT_SYSTEM_NETWORK_SBWAIT and
RTEMS_EVENT_SYSTEM_NETWORK_SOSLEEP.

Add and use rtems_bsdnet_event_send().
2012-11-02 09:34:35 +01:00
Sebastian Huber
f7ceeacfb0 rtems: Use event 31 for the transient event
This avoids conflicts with the netisr events of the network stack.
2012-11-02 09:34:34 +01:00
Sebastian Huber
736b8d2714 rtems: Use correct sync state for system events 2012-10-31 17:03:44 +01:00
Sebastian Huber
93b29f08f0 Filesystem: Use transient event 2012-10-30 18:03:29 +01:00
Sebastian Huber
ee82825dec libblock: Use transient event 2012-10-30 18:03:29 +01:00
Sebastian Huber
0edf263139 rtems: Add system events
System events are similar to normal events.  They offer a second set of
events.  These events are intended for internal RTEMS use and should not
be used by applications (with the exception of the transient system
event).
2012-10-30 18:03:02 +01:00
Sebastian Huber
990575c57f rtems: Reusable event implementation
Change event implementation to enable reuse for system events.
2012-10-30 18:00:33 +01:00
Sebastian Huber
f8657bbd31 rtems: Remove unused event_condition member 2012-10-30 18:00:33 +01:00
Sebastian Huber
f33873ba8e bsp/pc386: Typo 2012-10-29 21:14:23 +01:00
Sebastian Huber
9dffa384e1 libblock: rtems_bdbuf_set_block_size() API change
The set block size must synchronize and purge the disk to avoid an
inconsistent cache state and data corruption.  The synchronization is
optional depending on the new sync parameter.  In some contexts a
synchronization must not be performed, e.g. during disk creation.
2012-10-26 22:03:22 +02:00
Sebastian Huber
48680bb176 libblock: ramdisk documentation 2012-10-26 21:30:40 +02:00
Sebastian Huber
0d68d8f2e9 libtests/block16: New test 2012-10-26 21:29:36 +02:00
Sebastian Huber
2ece571e9d bsp/mpc55xx: Stop tasks for SMSC9218i during off 2012-10-25 17:42:33 +02:00
Sebastian Huber
da89075944 bsp/mpc55xx: Add custom work area init 2012-10-25 14:54:06 +02:00
Sebastian Huber
c118a6e5ff bsps: Add bsp_work_area_initialize_with_table() 2012-10-25 14:54:06 +02:00
Sebastian Huber
47a3cd8f73 score: Work area initialization API change
The work areas (RTEMS work space and C program heap) will be initialized
now in a separate step and are no longer part of
rtems_initialize_data_structures().  Initialization is performed with
tables of Heap_Area entries.  This allows usage of scattered memory
areas present on various small scale micro-controllers.

The sbrk() support API changes also.  The bsp_sbrk_init() must now deal
with a minimum size for the first memory chunk to take the configured
work space size into account.
2012-10-25 14:54:06 +02:00
Sebastian Huber
e4278f2050 score: Append to free list in _Heap_Extend() 2012-10-25 14:54:06 +02:00
Sebastian Huber
6ccfe722bd score: Change _Heap_Extend() API
The _Heap_Extend() has now the same signature as _Heap_Initialize().
The 4th parameter is ignored (page size in _Heap_Initialize()).

Add Heap_Area and Heap_Initialization_or_extend_handler.

Add and test _Heap_No_extend().

This helps to do a table based heap initialization and extension.
Create a table of Heap_Area elements and iterate through it.  Set the
handler to _Heap_Initialize() in the first iteration and then to
_Heap_Extend().
2012-10-25 14:54:06 +02:00
Sebastian Huber
3b978e190d libcsupport: malloc_deferred_frees_initialize()
Remove this function and statically initialize RTEMS_Malloc_GC_list.
2012-10-25 14:54:05 +02:00
Ralf Corsépius
64d6f192c9 Eliminate unused var 'digit'. 2012-10-19 14:17:46 +02:00
Ralf Corsépius
b52630c6f5 Make open_eth_txDaemon static. 2012-10-19 14:16:48 +02:00
Ralf Corsépius
b1c4e92cee Make uid_buttons static.
Reorder include-files.
Remove stray blanks.
2012-10-19 14:15:48 +02:00
Ralf Corsépius
b44f994052 Include "rtems-rfs-shell.h". 2012-10-19 14:02:48 +02:00
Ralf Corsépius
02687e22bd Remove unused vars 'rxdmaBase', txdmaBase. 2012-10-19 14:01:23 +02:00
Ralf Corsépius
37a532b99a Remove stray blanks. 2012-10-19 13:59:32 +02:00
Ralf Corsépius
23242172ab Add clock/rtc.h to rtc_rel_SOURCES. 2012-10-19 13:58:26 +02:00
Ralf Corsépius
86d7cbd23e Remove unused var 'sc'. 2012-10-15 18:12:43 +02:00
Ralf Corsépius
503de11658 Make tems_rfs_bitmap_ut_test_range, rtems_rfs_bitmap_ut_alloc_seq_test, rtems_rfs_bitmap_ut_test_bitmap, rtems_rfs_bitmap_unit_test, nullpointer_test, open_failure static. 2012-10-15 17:59:04 +02:00
Ralf Corsépius
2fcc3607ed Fix z85c30_get_register, z85c30_set_register prototype mismatch. 2012-10-15 17:58:34 +02:00
Ralf Corsépius
61af4b0b98 Include <rtems/framebuffer.h>. 2012-10-15 17:58:24 +02:00
Ralf Corsépius
364e891836 Include libchip/z85c30.h. 2012-10-15 17:58:10 +02:00
Ralf Corsépius
4c3d4fd5d4 Include stdint.h, libchip/serial.h. 2012-10-15 17:57:59 +02:00
Ralf Corsépius
e693b9ed56 Remove unused var "sc". 2012-10-15 17:57:47 +02:00
Ralf Corsépius
b9e9dab9ef Remove unused var "service". Move #include "test-http-client.h" after std-header inclusion. 2012-10-15 17:57:27 +02:00
Ralf Corsépius
2d72c19843 Move extern "C" after std-header inclusions. 2012-10-15 17:56:55 +02:00
Ralf Corsépius
3532072934 Use %zd instead of %d to print size_t's 2012-10-15 17:55:49 +02:00
Sebastian Huber
8d4faf90e8 score: Use _Workspace_Allocate_or_fatal_error()
Use _Workspace_Allocate_or_fatal_error() consistently in case auto
extend is turned off.  This helps to avoid undefined behaviour in
_API_Mutex_Allocate() in case _API_Mutex_Information() fails.
2012-10-15 14:58:08 +02:00
Sebastian Huber
178a7bb95b sptests/sp39: Increase clock tick interval
Not every BSP supports a 250 micro seconds clock tick interval.  For
example PSIM.
2012-10-15 14:58:08 +02:00
Sebastian Huber
f7513a0486 bsps: Remove unused bsp_libc_init() prototype 2012-10-15 14:58:08 +02:00
Sebastian Huber
ca9f2e639e libcsupport: Spelling 2012-10-15 14:58:08 +02:00
Sebastian Huber
2eb5d54ca8 bsps/arm: Add BSP_USB_OTG_TRANSCEIVER_I2C_ADDR 2012-10-12 15:37:09 +02:00
Sebastian Huber
f72b2de10a bsp/lpc24xx: Fix PCLK clock divider calculation 2012-10-12 15:37:09 +02:00
Sebastian Huber
34d12d97f9 bsp/lpc24xx: Use 96MHz CCLK for LPC17XX EA BSP
This enables USB support by PLL0.
2012-10-12 15:37:09 +02:00
Sebastian Huber
e9e5b92d36 bsp/lpc24xx: Evaluate LPC17XX pin type
New pin type LPC17XX_PIN_TYPE_OPEN_DRAIN.
2012-10-12 15:37:08 +02:00
Sebastian Huber
4275124e9b bsp/lpc24xx: Enable USB clock by PLL0 for LPC17XX 2012-10-12 15:37:08 +02:00