summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2018-08-10rfs: Remove erroneous call of rtems_disk_release()4.10Sebastian Huber
The function rtems_rfs_buffer_sync() erroneously calls rtems_disk_release(). This screws up the reference counting of the disk. Close #3495.
2018-06-19sptests/sp36: Remove obsolete test programSebastian Huber
It tests the (never really working) strict order mutex option. Close #3406.
2018-03-23score: add Inherited_priorities priority queue and functionsGedare Bloom
Adds enqueue, dequeue, requeue, evaluate, and release functions for the thread priority node priority queue of inherited priorities. Add calls to these functions as needed to maintain the priority queue due to blocking, unblocking, and priority changes. Closes #3359.
2018-03-23score: replace current and real priority with priority nodeGedare Bloom
Encapsulate the current_priority and real_priority fields of the thread control block with a Thread_Priority_node struct. Propagate modifications throughout the tree where the two fields are directly accessed. Updates #3359.
2018-03-23sptests: Add spmutex01 to buildGedare Bloom
2018-03-23sptests/spmutex01: test flush with inherit prioSebastian Huber
2018-03-23sptests/spmutex01: strip out deadlock, c11, posixGedare Bloom
2018-03-23sptests/spmutex01: add tests for lock nestingSebastian Huber
2018-03-23sptests/spmutex01: refactor and add deadlock testSebastian Huber
2018-03-23score: Test thread priority queue disciplinesSebastian Huber
Add test sptests/spmutex01, since no existing uni-processor test covered the thread priority queueing discipline for CORE mutexes.
2018-03-23sptests/spsem05: another test of prio stepdown on sem releaseGedare Bloom
2018-03-23sptests/spsem04: test prio stepdown on sem releaseGedare Bloom
Closes #3263.
2018-03-23sptests: back-port spsem01, spsem02, and spsem03 from 4.11Gedare Bloom
2018-01-11bsps: Fix rtems_interrupt_server_handler_remove()Sebastian Huber
2018-01-11dosfs: Fix msdos_format()Ralf Kirchner
For FAT32 msdos_format() used to initialize first FAT entries to non-zero values only if a volume label was given. Absence of these entries made mounting such a FAT32 volume fail.
2018-01-11libnetworking: Disconnect after mbuf shortageSebastian Huber
The missing disconnect left the socket in an unusable state. Each send request resulted in an EISCONN error.
2018-01-11score: Use _Workspace_Allocate_or_fatal_error()Sebastian Huber
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.
2018-01-11rtems: PR1844: Fix MP process packet sizeSebastian Huber
2018-01-11librpc: PR2066: Fix for short enumsSebastian Huber
The XDR library has a problem on architectures with short enums like the default ARM EABI. Short enums means that the size of the enum type is variable and the smallest integer type to hold all enum values will be selected. For many enums this is char. The XDR library uses int32_t for enum_t. There are several evil casts from an enum type to enum_t which leads to invalid memory accesses on short enum architectures. A workaround is to add appropriate dummy enum values.
2018-01-11network/bootp: PR2031: Add and use header fileSebastien Bourdeauducq
2018-01-11dosfs: Fix for no space left on device conditionSebastian Huber
The file size was wrong in the no space left on device condition. This resulted in turn in a read of an invalid block which lead to an EIO error status.
2018-01-11network/dhcp: PR1841: Fix DNS processing in DHCPSebastien Bourdeauducq
2018-01-10score/chain: Fix _Chain_Is_first and _Chain_Is_lastGedare Bloom
Updates #1964.
2017-01-26tftpDriver: don't free directory node's path stringMichael Davidsaver
Update #2375.
2017-01-26tftpDriver: backport fixesMichael Davidsaver
ensure that node_access is comparable in unmount() Update #2375.
2017-01-26tftpDriver: apply changes through masterMichael Davidsaver
from 4.10.2-15-g5b21eb6 to eb7753437ff858ebe34a08baef7dfdb45eb0f018 Update #2375.
2016-09-06m32csim-testsuite.tcfg: m32csim now completes buildJoel Sherrill
2016-09-06Backport capability to exclude tests from buildingJoel Sherrill
Backported build infrastructure and .tcfg files from master.
2016-09-04Add autotools generated filesJoel Sherrill
2016-09-04rtems-test-check: Ignore tests which require real ISR based clock tickChris Johns
BSPs for simulators which do not include a clock tick interrupt source are incapable of running some tests successfully. This is a common characteristic of some BSPs and a fixed set of tests. There is no point in duplicating this list of tests in those BSPs test configuration. Read testsuites/testdata/require-tick-isr.tcfg for details. Conflicts: testsuites/automake/test-subdirs.am tools/build/rtems-test-check
2016-09-04Change version to 4.10 to the rtems-bsps.Chris Johns
2016-09-02Back port rtems-bsps for use in the release procedure.Chris Johns
2016-05-20fat: Fix for invalid cluster sizesSebastian Huber
A cluster size > 32KiB resulted in an infinite loop in fat_init_volume_info() due to an integer overflow. Update #2717.
2016-05-17posix: Fix return states of pthread_kill()Sebastian Huber
POSIX mandates that an error code is returned and not -1 plus errno. Update #2715.
2016-05-17posix: Fix return status of pthread_cancel()Sebastian Huber
POSIX recommends ESRCH in case no thread exists for the specified identifier. Update #2713.
2015-10-21RFS: Fix resource leakSebastian Huber
Update #2433.
2015-08-01Fixes breakage on at least FreeBSD.Nick Withers
closes #2379.
2015-07-29tftpDriver: close() false errorMichael Davidsaver
closes #2376.
2015-02-23rpc: misaligned pointer dereference in clnt_udp.c line 363Jeffrey Hill
see #2248
2015-02-23rpc: misaligned address exception in get_myaddress.cJeffrey Hill
updates #2249 see #1401
2015-02-23networking: alignment exception in ioctl(SIOCGIFCONF)Till Straumann
Access memory using a byte stream when copying to avoid unaligned access. update #1401
2014-12-23pc386: scan all functions of multi-function PCI devicesTill Strauman
The current algorithm scans all PCI busses (0..ff) and all devices (0..31) on each bus for bridges and determines the maximum of all subordinate busses encountered. However, the algorithm does not scan all functions present in multi-function devices -- I have a PCI express root complex (82801H) where multiple (non-zero index) functions are 'PCI bridges' whose subordinate bus number is missed by the original algorithm. This commit makes sure that the scan is extended to all functions of multi-function devices. See #2067
2014-11-28bdbuf: Fix race condition with sync active flagSebastian Huber
Bug report by Oleg Kravtsov: In rtems_bdbuf_swapout_processing() function there is the following lines: if (bdbuf_cache.sync_active && !transfered_buffers) { rtems_id sync_requester; rtems_bdbuf_lock_cache (); ... } Here access to bdbuf_cache.sync_active is not protected with anything. Imagine the following test case: 1. Task1 releases buffer(s) with bdbuf_release_modified() calls; 2. After a while swapout task starts and flushes all buffers; 3. In the end of that swapout flush we are before that part of code, and assume there is task switching (just before "if (bdbuf_cache.sync_active && !transfered_buffers)"); 4. Some other task (with higher priority) does bdbuf_release_modified and rtems_bdbuf_syncdev(). This task successfully gets both locks sync and pool (in rtems_bdbuf_syncdev() function), sets sync_active to true and starts waiting for RTEMS_BDBUF_TRANSFER_SYNC event with only sync lock got. 5. Task switching happens again and we are again before "if (bdbuf_cache.sync_active && !transfered_buffers)". As the result we check sync_active and we come inside that "if" statement. 6. The result is that we send RTEMS_BDBUF_TRANSFER_SYNC event! Though ALL modified messages of that task are not flushed yet! close #1485
2014-11-27SPI SD-Card: adapt common driver code to block devices core API changes.Pavel Pisa
close #1558
2014-11-24Avoid buffer overflow and misaligned memory accessSebastian Huber
2014-11-22ppp: PR1943: Avoid NULL pointer accessSebastian Huber
Waiting for mbufs at this level is a bad solution. It would be better to try to allocate a new mbuf chain before we hand over the current mbuf chain to the upper layer. In case the allocation fails we should drop the current packet and use its mbuf chain for a new packet.
2014-11-22capture: back-port conversion from task_name to task_id (see #1361)Nickolay Semyonov
2014-08-20score: PR2179: Fix initially locked PI mutexSebastian Huber
2014-06-27ramdisk: Fix device name generationSebastian Huber
2014-05-23score: PR2179: Fix initially locked PCP mutexesSebastian Huber
Elevate the priority of the creating task to the ceiling priority in case a semaphore is created as initially locked.