Commit Graph

21314 Commits

Author SHA1 Message Date
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 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