summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* score: replace current and real priority with priority nodeGedare Bloom2018-03-2327-77/+87
| | | | | | | | | 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.
* sptests: Add spmutex01 to buildGedare Bloom2018-03-233-12/+4
|
* sptests/spmutex01: test flush with inherit prioSebastian Huber2018-03-231-6/+42
|
* sptests/spmutex01: strip out deadlock, c11, posixGedare Bloom2018-03-232-267/+1
|
* sptests/spmutex01: add tests for lock nestingSebastian Huber2018-03-231-7/+134
|
* sptests/spmutex01: refactor and add deadlock testSebastian Huber2018-03-232-39/+379
|
* score: Test thread priority queue disciplinesSebastian Huber2018-03-234-0/+304
| | | | | Add test sptests/spmutex01, since no existing uni-processor test covered the thread priority queueing discipline for CORE mutexes.
* sptests/spsem05: another test of prio stepdown on sem releaseGedare Bloom2018-03-236-1/+201
|
* sptests/spsem04: test prio stepdown on sem releaseGedare Bloom2018-03-236-1/+185
| | | | Closes #3263.
* sptests: back-port spsem01, spsem02, and spsem03 from 4.11Gedare Bloom2018-03-2314-0/+661
|
* bsps: Fix rtems_interrupt_server_handler_remove()Sebastian Huber2018-01-111-2/+2
|
* dosfs: Fix msdos_format()Ralf Kirchner2018-01-111-1/+1
| | | | | | 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.
* libnetworking: Disconnect after mbuf shortageSebastian Huber2018-01-111-1/+4
| | | | | The missing disconnect left the socket in an unusable state. Each send request resulted in an EISCONN error.
* score: Use _Workspace_Allocate_or_fatal_error()Sebastian Huber2018-01-111-5/+8
| | | | | | 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.
* rtems: PR1844: Fix MP process packet sizeSebastian Huber2018-01-111-2/+2
|
* librpc: PR2066: Fix for short enumsSebastian Huber2018-01-117-15/+23
| | | | | | | | | | 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.
* network/bootp: PR2031: Add and use header fileSebastien Bourdeauducq2018-01-116-37/+50
|
* dosfs: Fix for no space left on device conditionSebastian Huber2018-01-111-3/+5
| | | | | | 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.
* network/dhcp: PR1841: Fix DNS processing in DHCPSebastien Bourdeauducq2018-01-111-3/+45
|
* score/chain: Fix _Chain_Is_first and _Chain_Is_lastGedare Bloom2018-01-101-2/+2
| | | | Updates #1964.
* tftpDriver: don't free directory node's path stringMichael Davidsaver2017-01-261-1/+2
| | | | Update #2375.
* tftpDriver: backport fixesMichael Davidsaver2017-01-262-92/+84
| | | | | | ensure that node_access is comparable in unmount() Update #2375.
* tftpDriver: apply changes through masterMichael Davidsaver2017-01-261-215/+161
| | | | | | | from 4.10.2-15-g5b21eb6 to eb7753437ff858ebe34a08baef7dfdb45eb0f018 Update #2375.
* m32csim-testsuite.tcfg: m32csim now completes buildJoel Sherrill2016-09-061-0/+2
|
* Backport capability to exclude tests from buildingJoel Sherrill2016-09-0626-33/+199
| | | | Backported build infrastructure and .tcfg files from master.
* Add autotools generated filesJoel Sherrill2016-09-044-0/+11432
|
* rtems-test-check: Ignore tests which require real ISR based clock tickChris Johns2016-09-043-2/+150
| | | | | | | | | | | | | 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
* Change version to 4.10 to the rtems-bsps.Chris Johns2016-09-041-1/+1
|
* Back port rtems-bsps for use in the release procedure.Chris Johns2016-09-021-0/+48
|
* fat: Fix for invalid cluster sizesSebastian Huber2016-05-201-1/+3
| | | | | | | A cluster size > 32KiB resulted in an infinite loop in fat_init_volume_info() due to an integer overflow. Update #2717.
* posix: Fix return states of pthread_kill()Sebastian Huber2016-05-172-25/+16
| | | | | | POSIX mandates that an error code is returned and not -1 plus errno. Update #2715.
* posix: Fix return status of pthread_cancel()Sebastian Huber2016-05-172-3/+3
| | | | | | | POSIX recommends ESRCH in case no thread exists for the specified identifier. Update #2713.
* RFS: Fix resource leakSebastian Huber2015-10-211-0/+2
| | | | Update #2433.
* Fixes breakage on at least FreeBSD.Nick Withers2015-08-011-1/+1
| | | | closes #2379.
* tftpDriver: close() false errorMichael Davidsaver2015-07-291-1/+3
| | | | closes #2376.
* rpc: misaligned pointer dereference in clnt_udp.c line 363Jeffrey Hill2015-02-231-3/+3
| | | | see #2248
* rpc: misaligned address exception in get_myaddress.cJeffrey Hill2015-02-231-15/+38
| | | | updates #2249 see #1401
* networking: alignment exception in ioctl(SIOCGIFCONF)Till Straumann2015-02-231-11/+12
| | | | | Access memory using a byte stream when copying to avoid unaligned access. update #1401
* pc386: scan all functions of multi-function PCI devicesTill Strauman2014-12-231-7/+23
| | | | | | | | | | | | | | | | | | | 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
* bdbuf: Fix race condition with sync active flagSebastian Huber2014-11-281-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* SPI SD-Card: adapt common driver code to block devices core API changes.Pavel Pisa2014-11-271-3/+3
| | | | close #1558
* Avoid buffer overflow and misaligned memory accessSebastian Huber2014-11-241-14/+24
|
* ppp: PR1943: Avoid NULL pointer accessSebastian Huber2014-11-221-8/+2
| | | | | | | 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.
* capture: back-port conversion from task_name to task_id (see #1361)Nickolay Semyonov2014-11-221-3/+3
|
* score: PR2179: Fix initially locked PI mutexSebastian Huber2014-08-203-4/+49
|
* ramdisk: Fix device name generationSebastian Huber2014-06-271-1/+1
|
* score: PR2179: Fix initially locked PCP mutexesSebastian Huber2014-05-233-2/+40
| | | | | Elevate the priority of the creating task to the ceiling priority in case a semaphore is created as initially locked.
* posix: fix race condition between pthread_create and capture engineTill Strauman2014-04-111-0/+5
| | | | | | | Fix PR 2068: Reproducable crashes occur when using pthreads and the capture engine at the same time. 'pthread_create()' is the culprit. It creates a SCORE thread and then calls Thread_Start( ) without disabling thread-dispatching.
* rtems_cache_invalidate_multiple_instruction_linesAleksandr Platonov2014-01-141-1/+1
| | | | | | | | According with comment in rtems_cache_invalidate_multiple_instruction_lines(), final_address indicates the last address which needs to be invalidated. But if in while loop we got final_address == i_addr condition then loop breaks and final_address will not be invalidated.
* sparc.t: Correct for V8/V9Joel Sherrill2013-11-201-5/+3
|