Compare commits

..

144 Commits
4.10.1 ... 4.10

Author SHA1 Message Date
Gedare Bloom
e3f6d35f65 cpukit/score: avoid NULL and races in priority mutex
The PIP modifications from #3359 introduced new data structures
to track priority inheritance. Prioritized mutexes without PIP
share some of the code paths, and may result in NULL pointer
accesses. This patch checks for NULL, and also adds ISR critical
sections to an uncovered corner case during thread restarts.

Closes #3829.
2020-01-03 09:10:09 -07:00
Jonathan Brandmeyer
e816b4e961 shell: Correct argument order of mfill
Close #3723.

(cherry picked from commit 2e8a66d13f)
2019-03-14 09:56:40 -04:00
Sebastian Huber
68f2ea07c2 rfs: Remove erroneous call of rtems_disk_release()
The function rtems_rfs_buffer_sync() erroneously calls
rtems_disk_release(). This screws up the reference counting of the disk.

Close #3495.
2018-08-10 06:58:56 +02:00
Sebastian Huber
680d765089 sptests/sp36: Remove obsolete test program
It tests the (never really working) strict order mutex option.

Close #3406.
2018-06-19 07:59:57 +02:00
Gedare Bloom
b50468c6bf score: add Inherited_priorities priority queue and functions
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-23 11:33:59 -04:00
Gedare Bloom
78b867e26d score: replace current and real priority with priority node
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-23 11:33:59 -04:00
Gedare Bloom
776caaed01 sptests: Add spmutex01 to build 2018-03-23 11:33:59 -04:00
Sebastian Huber
83e6cefaaf sptests/spmutex01: test flush with inherit prio 2018-03-23 11:33:59 -04:00
Gedare Bloom
95d5a0a9c9 sptests/spmutex01: strip out deadlock, c11, posix 2018-03-23 11:33:59 -04:00
Sebastian Huber
f9126f6629 sptests/spmutex01: add tests for lock nesting 2018-03-23 11:33:59 -04:00
Sebastian Huber
fc027be4f9 sptests/spmutex01: refactor and add deadlock test 2018-03-23 11:33:59 -04:00
Sebastian Huber
a5c1b2be0c score: Test thread priority queue disciplines
Add test sptests/spmutex01, since no existing uni-processor test covered
the thread priority queueing discipline for CORE mutexes.
2018-03-23 11:33:59 -04:00
Gedare Bloom
9f011b97d9 sptests/spsem05: another test of prio stepdown on sem release 2018-03-23 11:33:59 -04:00
Gedare Bloom
8e1421f6e3 sptests/spsem04: test prio stepdown on sem release
Closes #3263.
2018-03-23 11:33:59 -04:00
Gedare Bloom
79cf35de9b sptests: back-port spsem01, spsem02, and spsem03 from 4.11 2018-03-23 11:33:59 -04:00
Sebastian Huber
d1d4e0172a bsps: Fix rtems_interrupt_server_handler_remove() 2018-01-11 13:07:35 -05:00
Ralf Kirchner
95f3656ae9 dosfs: Fix msdos_format()
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-11 13:00:15 -05:00
Sebastian Huber
45f9cd01f5 libnetworking: Disconnect after mbuf shortage
The missing disconnect left the socket in an unusable state.  Each send
request resulted in an EISCONN error.
2018-01-11 12:43:25 -05:00
Sebastian Huber
0e75aae563 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.
2018-01-11 12:37:45 -05:00
Sebastian Huber
b6b8cd7fb1 rtems: PR1844: Fix MP process packet size 2018-01-11 12:27:26 -05:00
Sebastian Huber
17fa7d6160 librpc: PR2066: Fix for short enums
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-11 12:13:32 -05:00
Sebastien Bourdeauducq
a078d6f0ab network/bootp: PR2031: Add and use header file 2018-01-11 12:13:21 -05:00
Sebastian Huber
89dd2ec437 dosfs: Fix for no space left on device condition
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-11 12:12:53 -05:00
Sebastien Bourdeauducq
0d653397a9 network/dhcp: PR1841: Fix DNS processing in DHCP 2018-01-11 12:08:24 -05:00
Gedare Bloom
991e1b8594 score/chain: Fix _Chain_Is_first and _Chain_Is_last
Updates #1964.
2018-01-10 09:42:02 -05:00
Michael Davidsaver
aecb508673 tftpDriver: don't free directory node's path string
Update #2375.
2017-01-26 07:41:42 +01:00
Michael Davidsaver
05d84959f7 tftpDriver: backport fixes
ensure that node_access is comparable in unmount()

Update #2375.
2017-01-26 07:41:38 +01:00
Michael Davidsaver
4bcbd8d6f0 tftpDriver: apply changes through master
from 4.10.2-15-g5b21eb6
to eb7753437f

Update #2375.
2017-01-26 07:41:24 +01:00
Joel Sherrill
e2f7059d7e m32csim-testsuite.tcfg: m32csim now completes build 2016-09-06 18:34:52 -05:00
Joel Sherrill
85910040d8 Backport capability to exclude tests from building
Backported build infrastructure and .tcfg files from master.
2016-09-06 10:31:16 +10:00
Joel Sherrill
7dc65fa6a6 Add autotools generated files 2016-09-04 19:48:45 -05:00
Chris Johns
b9d871f9e1 rtems-test-check: Ignore tests which require real ISR based clock tick
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-04 19:38:15 -05:00
Chris Johns
c1d7c5fa6e Change version to 4.10 to the rtems-bsps. 2016-09-04 12:29:40 +10:00
Chris Johns
f2aef52881 Back port rtems-bsps for use in the release procedure. 2016-09-02 13:37:42 +10:00
Sebastian Huber
6adad1e70a fat: Fix for invalid cluster sizes
A cluster size > 32KiB resulted in an infinite loop in
fat_init_volume_info() due to an integer overflow.

Update #2717.
2016-05-20 08:15:24 +02:00
Sebastian Huber
d346f705e2 posix: Fix return states of pthread_kill()
POSIX mandates that an error code is returned and not -1 plus errno.

Update #2715.
2016-05-17 13:48:08 +02:00
Sebastian Huber
e34b7a8d40 posix: Fix return status of pthread_cancel()
POSIX recommends ESRCH in case no thread exists for the specified
identifier.

Update #2713.
2016-05-17 08:42:10 +02:00
Sebastian Huber
90b51b5a44 RFS: Fix resource leak
Update #2433.
2015-10-21 10:05:47 +02:00
Nick Withers
3699161a36 Fixes breakage on at least FreeBSD.
closes #2379.
2015-08-01 10:15:43 -07:00
Michael Davidsaver
a4e052b53f tftpDriver: close() false error
closes #2376.
2015-07-29 11:04:18 -05:00
Jeffrey Hill
0f3388d1f3 rpc: misaligned pointer dereference in clnt_udp.c line 363
see #2248
2015-02-23 12:27:05 -05:00
Jeffrey Hill
2fc3deae2e rpc: misaligned address exception in get_myaddress.c
updates #2249 see #1401
2015-02-23 12:07:37 -05:00
Till Straumann
70148eef28 networking: alignment exception in ioctl(SIOCGIFCONF)
Access memory using a byte stream when copying to avoid unaligned
access. update #1401
2015-02-23 10:48:56 -05:00
Till Strauman
0863e8e390 pc386: scan all functions of multi-function PCI devices
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-12-23 22:29:08 -05:00
Sebastian Huber
f0f2a3dc19 bdbuf: Fix race condition with sync active flag
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-28 11:15:18 +01:00
Pavel Pisa
7d015db0c6 SPI SD-Card: adapt common driver code to block devices core API changes.
close #1558
2014-11-27 11:00:48 +01:00
Sebastian Huber
0444c03180 Avoid buffer overflow and misaligned memory access 2014-11-24 08:58:24 +01:00
Sebastian Huber
d1d31a5f61 ppp: PR1943: Avoid NULL pointer access
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-22 09:33:12 -05:00
Nickolay Semyonov
b47dffc510 capture: back-port conversion from task_name to task_id (see #1361) 2014-11-22 09:05:07 -05:00
Sebastian Huber
a62a3c32b1 score: PR2179: Fix initially locked PI mutex 2014-08-20 07:24:16 +02:00
Sebastian Huber
f8811e4364 ramdisk: Fix device name generation 2014-06-27 16:34:32 +02:00
Sebastian Huber
272a80b776 score: PR2179: Fix initially locked PCP mutexes
Elevate the priority of the creating task to the ceiling priority in
case a semaphore is created as initially locked.
2014-05-23 09:04:17 +02:00
Till Strauman
907cfb1e2f posix: fix race condition between pthread_create and capture engine
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.
2014-04-11 15:40:16 -04:00
Aleksandr Platonov
fc48ad84c7 rtems_cache_invalidate_multiple_instruction_lines
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.
2014-01-14 14:46:07 +01:00
Joel Sherrill
387c90b9a8 sparc.t: Correct for V8/V9 2013-11-20 15:53:27 -06:00
Pavel Pisa
df29cfeb0c SPI SD-Card: setup valid CRC-7 for STOP_TRANSMISSION command.
STOP_TRANSMISSION command is used to finish READ_MULTIPLE_BLOCK
command and its format is regular command format.
It requires valid CRC-7 to have effect at least on
same cards types else it is ignored and attempt
to issue next READ or WRITE commands results in
illegal command condition (0x04) preceded by strange
(0x3f) for tested card.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
2013-10-08 11:16:15 +02:00
Pavel Pisa
7c709c05e9 Backport of development SPI SD-card patches to RTEMS 4.10.
Arnout Vandecappelle:

        PR 1569/misc
        * libchip/i2c/spi-sd-card.c: Added CRC checks.

        PR 1576/misc
        * libchip/i2c/spi-sd-card.c: Enable CRC checks.

        PR 1567/misc
        * libchip/i2c/spi-sd-card.h, libchip/i2c/spi-sd-card.c: Fixed
        timeouts.

        PR 1579/misc
        * libchip/i2c/spi-sd-card.c: Gradually increasing sleep times when
        waiting for write to finish.

        PR 1580/misc
        * libchip/i2c/spi-sd-card.c: Use bigger chunks and yield processor
        while waiting for read data.

        PR 1586/misc
        * libchip/i2c/spi-sd-card.h, libchip/i2c/spi-sd-card.c: Add retries to
        SD card accesses.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
2013-10-08 11:14:42 +02:00
Sebastian Huber
ab0da63e3c score: PR2140: Fix _Thread_queue_Process_timeout()
The _Thread_queue_Process_timeout() operation had several race
conditions in the event of nested interrupts.  Protect the critical
sections via disabled interrupts.
2013-08-26 10:22:36 +02:00
Sebastian Huber
2077ae4cc8 score: PR2140: _Thread_queue_Extract()
Return if the executing context performed the extract operation since
interrupts may interfere.
2013-08-26 10:22:18 +02:00
Sebastian Huber
db99ce7ced libblock: PR2040: Avoid NULL pointer access
This partly reverts commit 08b9d53460.

Avoid a NULL pointer access and perform the source segment erase if
necessary.
2013-08-23 09:34:13 +02:00
Pavel Pisa
356b8c7baa bsp/csb336: Memory map update to support i.MX1 based PiMX1 as well.
CSB336 i.MX1/i.MXS memory map organization

 - SDRAM starts at address 0x08000000 but 2 MB are reserved
   for boot-block/loader (or other use) before RTEMS image
   origin/load address (that is kept from previous setup)

 - Caching of 30 MB of SDRAM used for RTEMS (start at 0x08200000)
   is changed to writeback mode which provides higher throughput.

 - The first 1 MB of RTEMS dedicated SDRAM is remapped to address 0
   to provide area for ARM CPU exceptions table.

 - Internal registers and rest of the Flash (above 1 MB) are mapped
   one to one. Registers region is extended to 2 MB to cover
   eSRAM found on i.MX1 chip variant.

 - The first two megabytes of SDRAM unused by RTEMS are mapped
   with attributes to allow specific purposes.

   - the first MB (at address 0x08000000) is nocached to allow
     directly set some values read by booot-block after warm reset

   - the second MB (at address 0x08100000) is set for write-through
     caching.  That allows to use memory for LCD frame-buffer without
     need to flush cache after each redraw.

Signed-off-by: Pavel Pisa <pi@baree.pikron.com>
2013-08-19 14:25:22 +02:00
Pavel Pisa
a791d39818 bsp/csb336: implement bsp_interrupt_vector_enable/disable.
Signed-off-by: Pavel Pisa <ppisa@pikron.com>
2013-08-19 14:25:18 +02:00
Pavel Pisa
4eeddefb22 bsp/csb336: mc9328mxl correct AITC access in bsp_interrupt_dispatch.
The original version is missing void and result is that (*x >> 16) is
optimized to ldh rX,[rY]. But it is not allowed/supported to access
bus/address range used by AITC by other than 32 bit wide accesses
and 16-bit access results in the data abort exception.
The corrected version works on real hardware and is even
more readable.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
2013-08-19 10:54:02 +02:00
Daron Chabot
833eeae358 Add c++ guard to header. 2013-05-16 11:47:09 +02:00
Sebastian Huber
8949e5b1a1 score: Fix _Objects_Shrink_information()
The chain iteration was wrong.  The chain tail is not an object.
2013-01-07 16:34:18 +01:00
Sebastian Huber
39691cd1b1 rtems: Critical fix for events
Commit 4b45c1393c marked a test in
_Event_Timeout() as debug only.  This test is required also in non-debug
configurations since otherwise state corruption can happen.  A revised
test sptests/spintrcritical10 checks the relevant sequences.
2013-01-07 15:21:40 +01:00
Sebastian Huber
073e3e106b score: Critical fix for timer server
Under certain conditions it is possible that a call to
_Watchdog_Adjust_to_chain() happens with a unit parameter value of zero
(for example sptests/spintrcritical17).  Remove superfluous checks that
prevent an adjust to a chain of a watchdog chain which first element has
a delta zero value.
2012-12-06 10:01:24 +01:00
Dylan Maxwell
d29f206209 tftpfs: PR1624: Fix parsing of hostnames and paths 2012-12-06 09:50:20 +01:00
Ralf Corsépius
c160bc2e97 Remove stray '/'. 2012-10-10 14:49:19 +02:00
Gedare Bloom
d692342a01 Delete lingering bspopts.h.in file 2012-08-09 10:26:07 -04:00
Ralf Corsépius
67aeb83f27 Use http://www.rtems.org/bugzilla as bug-URL. 2012-08-09 09:49:13 -04:00
Sebastian Huber
811e4b98ff libblock: Fix purge device tree traversal 2012-08-09 09:49:13 -04:00
Sebastian Huber
57d29cd5a9 bsp/genmcf548x: Enable FPU in BSP startup code 2012-05-02 10:27:08 +02:00
Sebastian Huber
eeb965b325 bsp/genmcf548x: Fix BSP options 2012-05-02 10:26:45 +02:00
Sebastian Huber
29c8aa6494 libblock: PR2040: Fix recycle destination update
Check the availablity of a recycle destination segment only when it is
necessary to avoid missing resycle source segment erasures.
2012-04-16 11:08:50 +02:00
Sebastian Huber
4abb14e5ca libblock: PR2040: Add starvation threshold
Do not use the unavailable block count as the erased blocks starvation
threshold.  Use instead the block count of the largest segment.  This
improves the starvation resolution gain of available blocks.
2012-04-16 11:08:38 +02:00
Sebastian Huber
108d6de7be PR2040: libtests/flashdisk01: New test 2012-03-14 11:27:15 +01:00
Sebastian Huber
941d470db4 PR2040: libblock: Flash disk starvations statistic 2012-03-14 11:27:14 +01:00
Sebastian Huber
1c47c470b3 PR2040: libblock: Flash disk documentation 2012-03-14 11:27:14 +01:00
Sebastian Huber
7b646be2bb PR2040: libblock: Fix return status 2012-03-14 11:26:17 +01:00
Sebastian Huber
b3142bdc50 PR2040: libblock: Avoid erased blocks starvation
The compaction process needs erased blocks.  It is only possible to
erase an entire segment.  Thus in order to make a progress we always
need enough erased blocks to empty a used or available segment which can
be erased in turn.  A (possibly the worst case) lower bound of erased
blocks is the block count of the largest segment.  The number of
unavailable blocks specified by the configuration will be used to
determine the erase blocks starvation situation.  The number of
unavailable blocks must be greater than or equal to the number of blocks
in the largest segment.
2012-03-14 11:26:17 +01:00
Sebastian Huber
d22a91e8f2 PR2040: libblock: Track number of erased blocks 2012-03-14 11:26:17 +01:00
Sebastian Huber
55e4783372 PR2040: libblock: Use segment control as parameter 2012-03-14 11:26:17 +01:00
Sebastian Huber
f38caffa62 PR2039: Fix NULL pointer access
In case rtems_bdbuf_read() returns an error status, the block device
buffer pointer will be set to NULL.  In RFS the chain node of the block
device buffer will be used for RFS purposes.  We must not do this after
an erroneous read.
2012-03-14 09:04:40 +01:00
Sebastian Huber
cb648b75ff PR 2026/filesystem - Fix semaphore attributes
Semaphores of type RTEMS_SIMPLE_BINARY_SEMAPHORE are not suitable for a
mutex.  Use RTEMS_BINARY_SEMAPHORE with RTEMS_INHERIT_PRIORITY instead.
2012-02-23 11:42:32 +01:00
Joel Sherrill
3f85deb858 PR 2015 - LEON3: make SHM driver configurable using weak symbols
PR 2015/bsps

Since the configuration struct is always present one can let
DATA initialize it to reduce footprint, at the same time it
is made weak to let the user able to configure the SHM driver
without editing the driver code.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-02-17 14:25:13 -06:00
Ralf Corsépius
b0e718521f Remove (Moved to git.rtems.org/data/git/rtems-crossrpms.git). 2012-02-17 15:56:24 +01:00
Joel Sherrill
7f0ad21d15 PR 2001/shell - medit command argument parsing correction
"medit" overran the argument list, choking on the NULL pointer
following the last argument.

Note that "medit" still only does byte-sized accesses, which limits
its usefulness on most systems.

Author: Werner Almesberger <werner@almesberger.net>
Signed-off-by: Sebastien Bourdeauducq <sebastien@milkymist.org>
2012-02-03 16:04:13 -06:00
Joel Sherrill
bcd065cc16 PR 2012 - mdump/wdump shell cmds handle length arg incorrectly; add ldump cmd
* libmisc/shell/main_mdump.c: Reworked to fix bugs in handling of the
	length argument and to provide an "ldump" command.  This file now also
	supports the "wdump" command.  In addition, an RTEMS API function called
	rtems_mdump() is provided to allow easy dumping from application code.
	* libmisc/shell/main_mwdump.c: Obsolete file.
	* libmisc/Makefile.am: Removed main_mwdump.c
	* libmisc/shell/shellconfig.h: Added "ldump" command.
	* shell/memory.t: Added documentation for the "ldump" command

Signed-off-by: Ric Claus <claus@SLAC.Stanford.edu>
2012-02-02 14:59:15 -06:00
Joel Sherrill
5de3d254e9 PR 2012 - mdump/wdump shell cmds handle length arg incorrectly; add ldump cmd
* libmisc/shell/main_mdump.c: Reworked to fix bugs in handling of the
	length argument and to provide an "ldump" command.  This file now also
	supports the "wdump" command.  In addition, an RTEMS API function called
	rtems_mdump() is provided to allow easy dumping from application code.
	* libmisc/shell/main_mwdump.c: Obsolete file.
	* libmisc/Makefile.am: Removed main_mwdump.c
	* libmisc/shell/shellconfig.h: Added "ldump" command.
	* shell/memory.t: Added documentation for the "ldump" command

Signed-off-by: Ric Claus <claus@SLAC.Stanford.edu>
2012-02-02 14:58:33 -06:00
Joel Sherrill
43a26e8a02 PR 1962/bsps - MVME162 Console Corrections and Improvements
* console/console.c: char_ready() was never returning true so console
	never processed input data
	* console/console.c: added printk() support to default device
	* include/bsp.h: Added #define for MOT_162BUG_VEC_ADDRESS
	* startup/bspclean.c: Modified to use MOT_162BUG_VEC_ADDRESS
	* startup/bspstart.c: Modified to use MOT_162BUG_VEC_ADDRESS
	* make/custom/mvme162.cfg: Modified to use "RTEMS_CPU_MODEL=68lc040"
	and "CPU_CFLAGS = -mcpu=68040 -msoft-float" so BSP will always
	work with all board variations.
	* README: Added notes on user required configuration changes and
	information about board models and variants
	* README.models: New file that contains a detailed list of MVME162
	models and variants.

Signed-off-by: Vic Hoover <victor.hoover.ctr@navy.mil>
2012-02-02 14:08:36 -06:00
Joel Sherrill
c5ee080497 PR 1998/networking - Move ftpd root initialization
From: Xiangfu <xiangfu@sharism.cc>
Signed-off-by: Xiangfu <xiangfu@sharism.cc>
2012-02-02 13:31:29 -06:00
Joel Sherrill
b5902b8ff7 PR 2011/networking - GRETH: performance improvements and one bugfix
GRETH driver updated, 10-15% performance improvements for GBIT MAC,
unnecessary RX interrupts not taken which under heavy load saves approx.
1500 interrupts/s, one task removed saving about 5kb memory and 1 bug
solved.

BUG: RX interrupt was enabled before the RX-daemon was created which could
result in a faulty call to rtems_event_send.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-02-02 13:06:51 -06:00
Joel Sherrill
1fe02576f0 PR 2011/networking GRETH: Moved print to remove potential deadlock
Deadlock may arise when the EDCL bug link is used to tunnel
console output over Ethernet, when Ethernet is down one should
avoid using console (only during debugging of LEON targets)

Author: Marko Isomaki <marko@gaisler.com>
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-02-02 13:04:49 -06:00
Daniel Hellstrom
9591970856 LEON3: change d-cache snoop detect implementation
PR 2010/bsps

The previous code only checked if d-cache snooping was implemented,
however snooping may be available but not enabled which may lead
to driver bugs.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-02-02 12:08:01 -06:00
Joel Sherrill
45eaf8ccb4 LEON3: CPU index intialization moved to bspstart.c
2009/bsps

All LEON3/4 systems have a CPU-id, if on a single-CPU system the
ID is always zero. On a multicore system it ranges from 0 to 15.

The CPU index should always by updated even in a non-MP RTEMS OS
since the CPU running RTEMS may not always be CPU0. For example
when RTEMS runs on CPU1 and Linux on CPU0 in a mixed ASMP system.

The old code executed within the IRQ controller initialization code
makes no sense since the ASR register is a CPU register, it has
nothing to do with AMBA initialization either.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-02-02 11:22:19 -06:00
Daniel Hellstrom
954099e462 LEON3: fix compiler warning in SHM driver
PR 2008/bsps

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-02-02 10:33:23 -06:00
Joel Sherrill
6698f2714f Add .git ignore. Remove .cvsignore 2012-02-02 10:17:12 -06:00
Joel Sherrill
3c5c7dd963 Add .git ignore. Remove .cvsignore 2012-02-02 10:16:26 -06:00
Daniel Hellstrom
9530716cd4 LEON3BSP MP: may wake one more CPU than expected
The SHM code always wakes one CPU more that configured, however
this has never been a problem since RTEMS will be running on all CPUs
or only two cores were available.

PR 2006/bsps

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-02-02 10:09:46 -06:00
Joel Sherrill
0ae9ee1da4 Upgrade to 4.10.2 2011-12-13 14:34:19 +00:00
Joel Sherrill
a9069337a5 2011-12-09 Joel Sherrill <joel.sherrilL@OARcorp.com>
* math/init.c, mathf/init.c: Use DEVFS since we do have devices.
2011-12-09 19:19:28 +00:00
Chris Johns
afaa753b5a 2011-12-09 Chris Johns <chrisj@rtems.org>
PR 1968/filesystem
        * libfs/src/rfs/rtems-rfs-file.c: Fix to the seek bug where a seek
        to 0 after reading the end of the file did not point to the
        correct block.
        * libfs/src/rfs/rtems-rfs-rtems.h,
        libfs/src/rfs/rtems-rfs-trace.c: Fix the trace flags. Used to fix
        the bug.
2011-12-09 07:12:27 +00:00
Joel Sherrill
10fa27d64d 2011-12-07 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1984/doc
	* user/conf.t: Change CONFIGURE_MINIMUM_STACK_SIZE to
	CONFIGURE_MINIMUM_TASK_STACK_SIZE.
2011-12-07 20:08:49 +00:00
Ralf Corsepius
d1cbfaa89e 2011-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
PR 1983/networking
	* libnetworking/libc/gethostbyht.c (gethostent_r):
	Abort if (!hostf).
2011-12-07 06:51:43 +00:00
Ralf Corsepius
2fc9706a56 2011-11-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* librpc/src/rpc/clnt_udp.c (struct cu_data):
	Introduce unions _cu_inbuf, _cu_outbuf to avoid aliasing.
2011-11-30 07:00:47 +00:00
Joel Sherrill
3d83ae583c 2011-11-28 Werner Almesberger <werner@almesberger.net>
PR 1961/cpukit
	* score/src/coremsgsubmit.c: Close window caused by using message
	pending count rather than directly obtaining unused buffer.
2011-11-28 16:36:31 +00:00
Ralf Corsepius
9981ef0e6b Housekeeping. 2011-11-16 03:22:10 +00:00
Ralf Corsepius
5c872dee16 Regenerate. 2011-11-16 03:20:24 +00:00
Ralf Corsepius
e2292101d8 Bump GCC_RPMREL. 2011-11-16 03:19:29 +00:00
Ralf Corsepius
09b41d2262 Back port from CVS-HEAD. 2011-11-16 03:18:43 +00:00
Joel Sherrill
5b6f5447c5 2011-11-09 Jennifer Averett <jennifer.averett@oarcorp.com>
PR 1934/bsps
	* libchip/serial/ns16550.c: Change to unsigned variable.
2011-11-09 20:51:08 +00:00
Joel Sherrill
8d4d978d67 Move entries to correct file. 2011-11-09 18:52:25 +00:00
Joel Sherrill
294a609e9f 2011-11-09 Werner Almesberger <werner@almesberger.net>
PR 1954/cpukit
	* rtems/score/lm32.h: Protect against macro expansion.
2011-11-09 18:51:29 +00:00
Joel Sherrill
e3fbffb712 2011-11-09 Werner Almesberger <werner@almesberger.net>
PR 1957/cpukit
	* score/include/rtems/score/coremutex.h,
	score/inline/rtems/score/threadmp.inl: Add parentheses to protect
	macro arguments.
2011-11-09 18:44:01 +00:00
Joel Sherrill
c937e8fc18 2011-11-09 Werner Almesberger <werner@almesberger.net>
PR 1955/cpukit
	* rtems/score/cpu.h: Convert CPU_swap_u16 into a static inline.
2011-11-09 15:15:40 +00:00
Joel Sherrill
41fb7c43f3 2011-11-07 Ralf Corsepius <ralf.corsepius@rtems.org>
PR 1952/cpukit
	* libmisc/untar/untar.c: Add return code for failure when unable to
	write file.
2011-11-07 21:42:37 +00:00
Chris Johns
4c5e2fcf7e 2011-11-03 Chris Johns <chrisj@rtems.org>
PR 1948/filesystem
        * libfs/src/rfs/rtems-rfs-file-system.c,
        libfs/src/rfs/rtems-rfs-file-system.h,
        libfs/src/rfs/rtems-rfs-format.c, libfs/src/rfs/rtems-rfs-rtems.c:
        Add support for mount passing an ASCIIZ string containing
        configuration options.
        * libblock/src/bdbuf.c: Fix state labels in trace output.
2011-11-03 04:23:07 +00:00
Ralf Corsepius
478fb7eb99 GDB_RPMREL = 2. 2011-10-31 08:08:47 +00:00
Ralf Corsepius
424b1bddeb 2011-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* libmisc/serdbg/serdbg.h (putDebugChar, getDebugChar):
	Remove duplicate decls.
2011-10-09 04:48:19 +00:00
Ralf Corsepius
981a831e72 Regenerate. 2011-09-19 22:45:55 +00:00
Ralf Corsepius
9b0be4d6d7 Bump GDB_RPMREL. 2011-09-19 22:45:24 +00:00
Ralf Corsepius
234e280605 Renamer from CVS-HEAD. 2011-09-19 22:44:36 +00:00
Ralf Corsepius
224463dd16 Upgrade to gdb-7.3.1 2011-09-19 22:43:38 +00:00
Ralf Corsepius
84019c592b Sync with CVS-HEAD. 2011-09-19 22:42:33 +00:00
Joel Sherrill
a1bfb335c0 2011-09-01 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1895/cpukit
	* posix/src/mqueuerecvsupp.c, posix/src/pthreadjoin.c,
	score/src/coretodmsecstoticks.c, score/src/coretodusectoticks.c,
	score/src/timespectoticks.c: Ensure time conversions to ticks do not
	ignore partial tick and return 1 less than desired.
2011-09-01 18:24:57 +00:00
Ralf Corsepius
bebd101268 Remove. 2011-08-29 09:49:06 +00:00
Ralf Corsepius
1d204aed83 Cleanup. 2011-08-29 07:28:29 +00:00
Ralf Corsepius
1ea6e6ecc5 Regenerate. 2011-08-29 05:40:15 +00:00
Ralf Corsepius
b1e0b6a787 GCC_RPMREL = 3. 2011-08-29 05:38:47 +00:00
Ralf Corsepius
1b818282a9 Abandon gcc-4.4.5.
gcc-core-4.4.6-rtems4.10-20110829.diff.
gcc-g++-4.4.6-rtems4.10-20110829.diff.
2011-08-29 05:36:02 +00:00
Ralf Corsepius
089ab39484 New (Address OS X 10.7.1 build breakdowns). 2011-08-29 05:32:49 +00:00
Joel Sherrill
0b10f44e2d 2011-08-21 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1890/cpukit
	* psxmsgq01/init.c: POSIX says msg_prio is allowed to be NULL.
2011-08-21 19:59:56 +00:00
Sebastian Huber
391f35c8ff 2011-08-15 Julien Delange <julien.delange@gmail.com>
* irq/irq.c: Removed printk() before the interrupt initialization
	because it somehow destroys the interrupt context.
	* make/custom/nds.cfg: Enable Thumb interwork.
	* startup/bspstart.c: Set default exception handler.
2011-08-15 08:14:31 +00:00
Ralf Corsepius
ded0bfa42b Abandon fedora-13. 2011-08-04 04:57:46 +00:00
Joel Sherrill
eaad7ce078 2011-07-31 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1855/cpukit
	* Makefile.am, configure.ac: Correct signal processing during
	pthread_join. We are supposed to unblock the thread waiting on a
	pthread_join(), dispatch the signal handler, account for it
	potentially overwriting errno, and then have the thread return to
	blocking within pthread_join().
	* psxeintr_join/.cvsignore, psxeintr_join/Makefile.am,
	psxeintr_join/init.c, psxeintr_join/psxeintr_join.doc,
	psxeintr_join/psxeintr_join.scn: New files.
2011-07-31 22:40:53 +00:00
Joel Sherrill
426eb35f03 2011-07-31 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1855/cpukit
	* posix/src/psignal.c, posix/src/psignalunblockthread.c,
	posix/src/pthread.c, posix/src/pthreadjoin.c: Correct signal
	processing during pthread_join. We are supposed to unblock the thread
	waiting on a pthread_join(), dispatch the signal handler, account for
	it potentially overwriting errno, and then have the thread return to
	blocking within pthread_join().
2011-07-31 22:40:43 +00:00
Joel Sherrill
0126591e0a 2011-07-31 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1867/cpukit
	* Makefile.am, configure.ac, psx12/task.c, psxkey03/init.c,
	psxrwlock01/test.c: Correct implementation of pthread_exit() and
	pthread_join() to support the case where a thread is joinable but
	calls pthread_exit() before a thread has attempted to join.
	* psx16/.cvsignore, psx16/Makefile.am, psx16/init.c, psx16/psx16.doc,
	psx16/psx16.scn: New files.
2011-07-31 16:16:43 +00:00
Joel Sherrill
1389334318 2011-07-31 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1867/cpukit
	* posix/src/pthreadexit.c, posix/src/pthreadjoin.c: Correct
	implementation of pthread_exit() and pthread_join() to support the
	case where a thread is joinable but calls pthread_exit() before a
	thread has attempted to join.
2011-07-31 16:16:30 +00:00
Joel Sherrill
a9ed9230c6 2011-07-31 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1839/filesystem
	* libcsupport/include/rtems/libio_.h, libcsupport/src/fchdir.c,
	libcsupport/src/fdatasync.c, libcsupport/src/fpathconf.c,
	libcsupport/src/fsync.c, libcsupport/src/ftruncate.c,
	libcsupport/src/read.c, libcsupport/src/readv.c,
	libcsupport/src/write.c, libcsupport/src/writev.c: Some calls did not
	return proper status for permission errors or incorrectly permissions
	at all.
2011-07-31 14:12:29 +00:00
Joel Sherrill
5691dc6d5d 2011-07-29 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1864/doc
	* user/conf.t: Add missing documentation for
	CONFIGURE_MAXIMUM_POSIX_MESSAGE_QUEUE_DESCRIPTORS,
	CONFIGURE_MAXIMUM_POSIX_BARRIERS , CONFIGURE_MAXIMUM_POSIX_SPINLOCKS,
	CONFIGURE_MAXIMUM_POSIX_RWLOCKS.
2011-07-29 19:50:32 +00:00
Joel Sherrill
c2f26f0d5e 2011-07-26 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1851/doc
	* user/conf.t: Fix typo in CONFIGURE_MESSAGE_BUFFER_MEMORY example.
2011-07-26 14:13:33 +00:00
Joel Sherrill
ca356b5d3a 2011-07-22 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1845/bsps
	* make/custom/rtl22xx_t.cfg: Remove unused line with what is now
	invalid syntax.
2011-07-22 13:12:26 +00:00
Joel Sherrill
395fd11d2e 2011-07-21 Jorge Lopez <jorge.lopez.trescastro@esa.int>
PR 1766/bsps
	* clock/ckinit.c: Add missing read of Timer_Counter_1.
2011-07-21 20:52:27 +00:00
1171 changed files with 18918 additions and 66778 deletions

View File

@@ -1,17 +0,0 @@
aclocal.m4
autom4te*.cache
compile
config.cache
config.guess
config.log
config.status
config.sub
configure
depcomp
install-sh
install.sh
Makefile
Makefile.in
mdate-sh
missing
texinfo.tex

View File

@@ -1,12 +1,9 @@
INSTALL
Makefile
Makefile.in
aclocal.m4
autom4te.cache
configure
config.h.in
config.guess
config.status
config.sub
config.log
autom4te*
missing
install-sh
Makefile.in
missing

View File

@@ -4,4 +4,4 @@
# $Id$
#
RTEMS Version 4.10.1
RTEMS Version 4.10.2

View File

@@ -1,4 +1,4 @@
AC_DEFUN([RTEMS_VERSIONING],
m4_define([_RTEMS_VERSION],[4.10.1]))
m4_define([_RTEMS_VERSION],[4.10.2]))
m4_define([RTEMS_API],[4.10])

View File

@@ -1,4 +1,4 @@
#! /usr/bin/perl -w
#! /usr/bin/env perl
# $Id$

View File

@@ -1,8 +0,0 @@
aclocal.m4
autom4te*.cache
config.cache
config.log
config.status
configure
Makefile
Makefile.in

View File

@@ -1,14 +0,0 @@
aclocal.m4
autom4te*.cache
config.cache
config.guess
config.log
config.status
config.sub
configure
depcomp
install-sh
Makefile
Makefile.in
missing
mkinstalldirs

View File

@@ -1,3 +1,8 @@
2011-11-09 Jennifer Averett <jennifer.averett@oarcorp.com>
PR 1934/bsps
* libchip/serial/ns16550.c: Change to unsigned variable.
2011-02-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Require autoconf-2.68, automake-1.11.1.

View File

@@ -1,4 +1,4 @@
AC_DEFUN([RTEMS_VERSIONING],
m4_define([_RTEMS_VERSION],[4.10.1]))
m4_define([_RTEMS_VERSION],[4.10.2]))
m4_define([RTEMS_API],[4.10])

View File

@@ -1,12 +0,0 @@
Makefile
Makefile.in
aclocal*
aclocal.m4
autom4te*.cache
autom4te.*
autom4te.cache
config.*
config.cache
config.log
config.status
configure

View File

@@ -12,4 +12,4 @@ DIST_SUBDIRS = support samples sptests tmtests mptests
EXTRA_DIST = ada.am
include $(top_srcdir)/../../../testsuites/automake/subdirs.am
include $(top_srcdir)/../../../testsuites//automake/local.am
include $(top_srcdir)/../../../testsuites/automake/local.am

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

View File

@@ -1,2 +0,0 @@
Makefile
Makefile.in

Some files were not shown because too many files have changed in this diff Show More