21396 Commits

Author SHA1 Message Date
afpr
236e375111 Fixed the linkcmds file for the Pasim BSP and included a base linkcmds file for the Patmos CPU.
Added (1) zeroing out the uninitialized data section .bss and (2) copy the initialized data from ROM to RAM to the hard_reset function in start.S.
2013-06-26 19:28:55 +01:00
afpr
bdcc366d63 Updated configuration files to leave deleted files out of the build process (pci, shmm, spurious, bspidle, ...). 2013-06-25 18:52:50 +01:00
afpr
7a34a658b1 Removed spurious trap handler from the Patmos CPU.
Substituted the whole timer.c with the content retrieved from the no_cpu/no_bsp folder.

Removed the timing test suite (times file) from the Pasim BSP.

Added bsp_specs to the Pasim BSP.
2013-06-25 18:30:09 +01:00
afpr
84591aa5f9 Substituted the whole ckinit.c with the content retrieved from the no_cpu/no_bsp folder.
Fixed the storage of the hard_reset function in register r30 in the hard_reset function.

Removed function bspidle.S that defines the idle thread from the Pasim BSP.

Removed snooping function from bspstart.c in Pasim.
2013-06-25 18:29:08 +01:00
afpr
1151b96bc9 Fixed the start.S file for the Patmos CPU, namely hard_reset and exit functions, as well as the starting addresses present in pasim.h 2013-06-24 18:50:54 +01:00
afpr
b1ef2d75f0 Changed debugputs.c, console.c and pasim.h in libbsp/patmos/pasim to add TTY driver support for the Pasim bsp 2013-06-24 17:01:20 +01:00
afpr
8af38bc5b3 Removed pci and shared memory management from the Patmos CPU 2013-06-18 18:18:34 +01:00
afpr
bb0f6beb9e Initial support for the Patmos BSP 2013-06-18 10:49:50 +01: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