Commit Graph

23655 Commits

Author SHA1 Message Date
Joel Sherrill
39e8aa9603 PR 2015 - LEON3: make SHM driver configurable using weak
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:28:19 -06:00
Sebastian Huber
77998753b5 Use alternative API
Replaced Allocate_majority_of_workspace() with
rtems_workspace_allocate().  Replaced Allocate_majority_of_heap() with
rtems_heap_greedy_allocate().
2012-02-17 16:56:17 +01:00
Sebastian Huber
622d6703d3 Add functions for greedy workspace allocation
Various tests must check program paths that result due to failed memory
allocations from the workspace.  To avoid tinkering with internal
workspace structures throughout the test code these functions should be
used.
2012-02-17 16:10:17 +01:00
Ralf Corsépius
d6f6dfaa3d Remove (Moved to git.rtems.org/data/git/rtems-crossrpms.git). 2012-02-17 15:52:53 +01:00
Sebastian Huber
f14327a24d Fixed incorrect error path
The inet_aton() function returns non-zero in case of success.
2012-02-15 10:02:50 +01:00
Sebastian Huber
8c85ca3f30 Avoid buffer overflow and misaligned memory access 2012-02-14 16:46:53 +01:00
Sebastian Huber
002affcfbe Avoid NULL pointer access 2012-02-13 16:42:08 +01:00
Sebastian Huber
e1ebfebf1b Patches for Qemu 1.0.50 2012-02-11 21:15:06 +01:00
Sebastian Huber
14ee5a1e22 Support for NXP LPC1700 family 2012-02-11 21:11:30 +01:00
Sebastian Huber
1f8771d23a Use proper ARMv7-M compiler flags. 2012-02-11 21:09:56 +01:00
Sebastian Huber
701f0782e6 Support Thumb 2. 2012-02-11 21:09:44 +01:00
Sebastian Huber
6091f1a6aa ARMv7-M NVIC and MPU API changes. 2012-02-11 21:09:40 +01:00
Sebastian Huber
d6f947ebc3 ARMv7-M Systick API change 2012-02-11 21:09:36 +01:00
Sebastian Huber
034b04163c Fixed bug intoduced due to API changes. 2012-02-11 21:09:01 +01:00
Wendell Silva
3b18c263e3 PR 2017/bsps - Update due to API changes 2012-02-11 20:35:53 +01:00
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