Commit Graph

24377 Commits

Author SHA1 Message Date
Joel Sherrill
314d3272df Merge branch 'master' of ssh://git.rtems.org/data/git/rtems 2012-03-06 08:36:49 -06:00
Werner Almesberger
47a45e5cd8 Milkymist - Increase SOFTUSB_PMEM_SIZE to 8 KB
We increased PMEM to 8 kB but never updated SOFTUSB_PMEM_SIZE.
This didn't have much of an effect because all we used it for was
to zero unused program memory - which we should never touch
anyway.

But now that "usb load" in FN uses SOFTUSB_PMEM_SIZE, this caused
it to silently truncate the firmware, producing rather puzzling
effects.

Signed-off-by: Joel Sherrill <joel.sherrill@oarcorp.com>
2012-03-06 08:25:39 -06:00
Gedare Bloom
41d33b9030 score: Add _RBTree_Opposite_direction.
Add a red-black tree helper method to ease obtaining the direction opposite
to the current direction. Useful for manipulating and traversing an rbtree.
2012-03-04 11:42:08 -05:00
Gedare Bloom
a52be5ec40 PR2034: sprbtree01: predecessor/successor imprecision
The tests for the rtems_rbtree_predecessor/successor check for a
range of values for the target id of the predecessor/successor
when we know the exact expected value. This commit makes the
test more precise.
2012-03-04 08:49:28 -05:00
Sebastien Bourdeauducq
dc1a3b9c6c PR 2032: Milkymist USB: Ioctl interface for loading USB firmware
Leave the task of providing a suitable firmware for the Milkymist softusb
core to the application instead of having an inflexible array in the driver.

Signed-off-by: Gedare Bloom <gedare@rtems.org>
2012-03-03 16:02:33 -05:00
Xiangfu Liu
f0d2261beb PR2029: Milkymist VGA: adjust video timings
Slightly adjust video timing registers since we had problems with a few screens and the previous values.

Signed-off-by: Gedare Bloom <gedare@rtems.org>
2012-03-03 15:50:53 -05:00
Ralf Corsépius
ac165341df 2011-03-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* support/src/spin.c: Include "test_support.h".
2012-03-02 18:16:33 +01:00
Ralf Corsépius
e6a675e6f9 2011-03-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* psxtmmq01/init.c: Make benchmark_mq_open,
	benchmark_mq_open_second, benchmark_mq_close,
	benchmark_mq_close_second, benchmark_mq_unlink, benchmark_mq_notify,
	benchmark_mq_send, benchmark_mq_receive, benchmark_mq_timedsend,
	benchmark_mq_timedreceive static.
	* psxtmmutex01/init.c: Make test_mutex_create, test_mutex_destroy
	static.
	* psxtmsem02/init.c: benchmark_sem_getvalue, benchmark_sem_wait,
	benchmark_sem_post, benchmark_sem_trywait_available,
	benchmark_sem_trywait_not_available static.
2012-03-02 14:51:10 +01:00
Ralf Corsépius
7f2036aa35 2012-03-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* libnetworking/resolv.h: Partial sync with FreeBSD.
	Add decls for res_send_setqhook, res_send_setrhook.
2012-03-02 13:03:35 +01:00
Ralf Corsépius
396b80ebf6 2012-03-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Check for rcmd in unistd.h.
	* libnetworking/libc/rcmd.c: Build iff rcmd is declared in unistd.h.
	Change rcmd's decl to match with Linux/FreeBSD's decl.
2012-03-02 09:40:03 +01:00
Werner Almesberger
f7bb9f922d PR2028: Milkymist USB: forward MIDI messages.
Forward MIDI messages from the softusb controller to the application.

Signed-off-by: Gedare Bloom <gedare@rtems.org>
2012-02-29 11:08:44 -05:00
Joel Sherrill
19d18f2350 Fix typo in comment. 2012-02-23 12:09:55 -06:00
Jennifer Averett
8f7f6caaef Merge remote-tracking branch 'upstream/master' 2012-02-23 10:43:58 -06:00
Jennifer Averett
4f1173bcde Avoid NULL dereference in printk() before libchip console initialized
With the addition of dynamically registered libchip serial devices,
there is the need to be able to use printk() before the console driver
has initialized the indirect pointer table. This lets printk() support
routines call pass a control structure directly without a lookup through
the uninitialized indirect one.
2012-02-23 10:40:33 -06:00
Sebastian Huber
9294f8fe2e psxtests: Fix typo in psxstat 2012-02-23 11:16:10 +01:00
Sebastian Huber
8d8f363bd5 LPC32XX: Typo 2012-02-23 11:16:10 +01:00
Sebastian Huber
a4097fdb2f 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:16:09 +01:00
Ralf Corsépius
6903c7cd9d 2012-02-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* .gitignore: Remove config.guess, config.sub, missing, install-sh.
	* config.guess, config.sub, missing, install-sh: New.
2012-02-22 12:20:57 +01:00
Ralf Corsépius
692aefeb63 2012-02-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/assocnamebad.c:
	Add #define INSIDE_ASSOC.
2012-02-22 10:02:48 +01:00
Ralf Corsépius
5693f2e69b 2012-02-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* sapi/include/confdefs.h:
	Add decl of configuration_mount_table (Fix c++ mangling).
2012-02-22 10:02:42 +01:00
Ralf Corsépius
56f1fbed85 2012-02-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* pppd/system.h: Add pppdapp_initialize.
	* pppd/init.c: Remove pppdapp_initialize.
2012-02-22 09:33:18 +01:00
Ralf Corsépius
99aebcbc86 2012-02-22 Ralf Corsépius <ralf.corsepius@rtems.org>
* nsecs/system.h: New (Split out from nsecs/init.c).
	* nsecs/init.c: Reflect nsecs/system.h having been split out.
	* nsecs/empty.c: Include "system.h".
2012-02-22 09:33:10 +01:00
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