Commit Graph
24290 Commits
Author SHA1 Message Date
Sebastian Huber 28a08877ea Added support functions for greedy heap allocation
Various tests must check program paths that result due to failed memory
allocations from the heap.  To avoid tinkering with internal heap
structures throughout the test code these functions should be used.
2012-02-10 10:42:58 +01:00
Sebastian Huber 6491f67d3e Moved empty test in front of busy tests 2012-02-10 10:42:45 +01:00
Sebastian Huber 23c6f93aa1 Increase stack size for symbolic link loop test 2012-02-09 11:05:44 +01:00
Sebastian Huber e303adf444 Check that the file offset is valid after a seek 2012-02-09 11:05:18 +01:00
Sebastian Huber 28860ec03c Fixed warnings and minor bugs
o Due to the usual integer propagation rules care must be taken in case
   off_t is involved.
 o Use the effective UID and GID consistently.
2012-02-08 15:57:04 +01:00
Sebastian Huber 62d8a5452c POSIX conformance
For symbolic links, the length in bytes of the pathname contained in the
symbolic link should be returned in st_size.
2012-02-08 15:54:54 +01:00
Sebastian Huber b9d56ea7cb Fixed typo (setegid.c was missing) 2012-02-08 15:52:38 +01:00
Ralf Corsépius 105c8a50a2 Remove (Obsolete). 2012-02-08 15:24:05 +01:00
Joel Sherrill fdcf6c11b1 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:05:50 -06:00
Joel Sherrill 935ae4acee Update copyright year on manuals to 2012. 2012-02-03 15:49:44 -06:00
Joel Sherrill 5d44355937 PR 1991/cpukit - attr.c (really mode code) warning rework
This PR was about a warning for no previous prototype for
rtems_interrupt_level_attribute. This method exists (like
a few others) to have real bodies for Classic API services
implemented as macros. These macros are not available from
anything but C and C++. The most explicit use was in the Ada
binding but these would be needed from assembly language
or any other non-C based language.

On top of needing a prototype, the methods were misnamed.
They were related to modes.  This renames them, moves the
file, fixes test code, etc.
2012-02-02 16:57:42 -06:00
Joel Sherrill 1e1d018965 Merge remote branch 'upstream/master' 2012-02-02 15:02:56 -06:00
Joel Sherrill 6d1a1d3ebb 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 15:02:16 -06:00
Joel Sherrill c75430cd41 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:19:11 -06:00
Joel Sherrill b3decdb68c 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:08 -06:00
Joel Sherrill ce3caf87f8 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:07:09 -06:00
Joel Sherrill 796bb3f51c PR 1998/networking - Move ftpd root initialization
From: Xiangfu <xiangfu@sharism.cc>
Signed-off-by: Xiangfu <xiangfu@sharism.cc>
2012-02-02 13:33:09 -06:00
Joel Sherrill 0f700ffc21 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:26 -06:00
Joel Sherrill 600bd1bb59 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:05:24 -06:00
Daniel Hellstrom 2b2e409d8d 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:15 -06:00
Joel Sherrill 735b0ca5f4 White space correction. 2012-02-02 11:00:49 -06:00
Daniel Hellstrom 54a169db92 LEON3: CPU index intialization moved to bspstart.c
PR 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 10:55:06 -06:00
Daniel Hellstrom 6d79be5112 LEON3: fix compiler warning in SHM driver
PR 2008/bsps

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-02-02 10:33:41 -06:00
Daniel Hellstrom 2a68f53afa 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:15:50 -06:00
Sebastian Huber 1052242d23 Removed fpathconf file system node handler.
There existed no calling function for this handler.
2012-02-02 15:55:33 +01:00
Joel Sherrill 184a612ebe Merge remote branch 'remotes/origin/gitignore' 2012-02-02 08:17:25 -06:00
Sebastian Huber 72a3af3e42 Extended API to support iteration of const chains. 2012-02-02 11:09:30 +01:00
Joel Sherrill 52694844ce Improve comments on console select patch. 2012-02-01 15:03:18 -06:00
Joel Sherrill d1887bafc0 Improve comments on console select patch. 2012-02-01 15:02:03 -06:00
Jennifer Averett 441b90e6c9 Correct run-time selection of console port.
This was broken by conversion of console driver to libchip style.
2012-02-01 14:32:28 -06:00
Joel Sherrill 61250b4ce9 Remove all .cvsignore files. 2012-02-01 10:59:44 -06:00
Joel Sherrill 34ce24e222 Add minimal .gitignore files. 2012-02-01 10:49:55 -06:00
Joel Sherrill 41572c40c3 Fix spelling error and improve comment. 2012-01-31 15:15:20 -06:00
Sebastian Huber 77c2178501 Fixed race condition during startup. 2012-01-31 11:25:15 +01:00
Sebastian Huber be42aa1aef Revert "Google C++ Testing Framework 1.6.0."
This reverts commit 9bf3a86865.
2012-01-26 09:58:10 +01:00
Sebastian Huber 78384114f2 Revert "Support custom Makefiles."
This reverts commit 621e1c9b74.
2012-01-26 09:57:57 +01:00
Sebastian Huber f4491f945e Revert "Disable optimization."
This reverts commit 8ae88d7f96.
2012-01-26 09:57:19 +01:00
Sebastian Huber a762dc2a49 Support for MPC5643L.
Rework of the start sequence to reduce the amount assembler code and to
support configuration tables which may be provided by the application.
2012-01-23 11:19:22 +01:00
Sebastian Huber 9bf3a86865 Google C++ Testing Framework 1.6.0. 2012-01-23 10:50:19 +01:00
Sebastian Huber 621e1c9b74 Support custom Makefiles. 2012-01-23 10:50:15 +01:00
Sebastian Huber 8ae88d7f96 Disable optimization. 2012-01-23 10:50:11 +01:00
Sebastian Huber 0180806481 Update due to API changes. 2012-01-23 10:50:07 +01:00
Chris Johns 6dde1121f3 Change the email address for Chris Johns. 2012-01-20 12:53:09 +11:00
Joel Sherrill 70fff65ff6 2011-12-14 Joel Sherrill <joel.sherrilL@OARcorp.com>
* Makefile.am: Change to one file per line. Clean up.
2011-12-14 19:23:49 +00:00
Sebastian Huber 3b057ea2db Typo. 2011-12-14 13:19:52 +00:00
Sebastian Huber 46231e1330 2011-12-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1924/cpukit
	* spstkalloc02/.cvsignore, spstkalloc02/Makefile.am,
	spstkalloc02/init.c, spstkalloc02/spstkalloc02.doc,
	spstkalloc02/spstkalloc02.scn: New files.
	* Makefile.am, configure.ac: Reflect changes above.
2011-12-14 13:18:01 +00:00
Sebastian Huber 9fa3cf0db8 2011-12-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1924/cpukit
	* sapi/include/rtems/config.h: Added stack_allocate_init_hook to
	rtems_configuration_table.
	* sapi/include/confdefs.h: Added CONFIGURE_TASK_STACK_FROM_ALLOCATOR
	and CONFIGURE_TASK_STACK_ALLOCATOR_INIT defines.  Set default stack
	allocator and free hook to _Workspace_Allocate() and _Workspace_Free()
	respectively.
	* score/src/thread.c, score/src/threadstackallocate.c,
	score/src/threadstackfree.c: Update due to API changes.
2011-12-14 13:17:19 +00:00
Sebastian Huber f55595e489 2011-12-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
* termios01/init.c: Update due to API changes.  Fixed integer types.
	Make functions static.  Added const qualifier.
2011-12-14 12:58:21 +00:00
Sebastian Huber 3538e191ab 2011-12-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/src/termios_setinitialbaud.c: Fixed typo.
2011-12-14 09:22:43 +00:00
Sebastian Huber 40f8b21ef4 2011-12-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
* libcsupport/include/rtems/termiostypes.h,
	libcsupport/src/termios_baud2num.c,
	libcsupport/src/termios_baudtable.c,
	libcsupport/src/termios_num2baud.c,
	libcsupport/src/termios_setinitialbaud.c: Added const qualifier to
	baud associations.  Fixed integer types.
2011-12-14 08:50:49 +00:00