Commit Graph

11542 Commits

Author SHA1 Message Date
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
8d8f363bd5 LPC32XX: Typo 2012-02-23 11:16: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
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
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
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
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
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
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
Joel Sherrill
184a612ebe Merge remote branch 'remotes/origin/gitignore' 2012-02-02 08:17:25 -06: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
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
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
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
Ralf Corsepius
3007610e4e 2011-12-13 Ralf Corsépius <ralf.corsepius@rtems.org>
* make/custom/qoriq.inc: Remove -W* flags.
2011-12-13 12:17:54 +00:00
Ralf Corsepius
fa011f35d5 2011-12-13 Ralf Corsépius <ralf.corsepius@rtems.org>
* libchip/i2c/spi-memdrv.c: Make
	spi_memdrv_minor2param_ptr, spi_memdrv_wait_ms static.
	* libchip/i2c/spi-sd-card.c: Make
	sd_card_compute_crc7, sd_card_compute_crc16 static.
2011-12-13 12:00:13 +00:00
Gedare Bloom
a1a25aeb58 2011-12-12 Gedare Bloom <gedare@rtems.org>
PR bsps/1989
	* shared/start/start.S, shared/startup/linkcmds: Boot stack and heap
	space improvements.
2011-12-12 19:31:48 +00:00
Gedare Bloom
8bc6b663f1 2011-12-12 Gedare Bloom <gedare@rtems.org>
PR bsps/1988
	* shared/start/start.S: Add _init and _fini to .init and .fini sections
2011-12-12 19:00:48 +00:00
Gedare Bloom
e17789bf3d 2011-12-12 Gedare Bloom <gedare@rtems.org>
PR bsps/1988
	* shared/startup/linkcmds: Relocate .init and .fini sections closer to
	.text.
2011-12-12 18:52:18 +00:00
Ralf Corsepius
d71462b4eb 2011-12-10 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac (CFLAGS): Add -Wmissing-prototypes.
2011-12-10 05:53:03 +00:00
Ralf Corsepius
ac4f31c814 2011-12-10 Ralf Corsépius <ralf.corsepius@rtems.org>
* shared/interrupts/vectorexceptions.c: Make
	mips_dump_exception_frame, mips_default_exception_code_handler
	static.
2011-12-10 04:07:46 +00:00
Ralf Corsepius
de5868fe37 2011-12-10 Ralf Corsépius <ralf.corsepius@rtems.org>
PR 1986/libcpu
	* shared/src/cache_aligned_malloc.c:
	Include <rtems/rtems/cache.h>.
2011-12-10 04:03:50 +00:00
Joel Sherrill
2eddd4d61b 2011-12-09 Joel Sherrill <joel.sherrill@oarcorp.com>
* make/custom/gen68360.cfg, make/custom/gen68360_040.cfg,
	make/custom/pgh360.cfg: Simplify and clean up.
2011-12-09 16:12:46 +00:00
Ralf Corsepius
b9c2f07d59 2011-12-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* libchip/network/sonic.c: Activate SONIC_STATIC.
2011-12-09 13:16:25 +00:00
Ralf Corsepius
bf5d715672 2011-12-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* console/vt.c: Make _kd_mksound static.
	* ide/ide.c: Make pc386_ide_probe, pc386_ide_initialize,
	pc386_ide_read_reg, pc386_ide_write_reg, pc386_ide_write_block,
	pc386_ide_control, pc386_ide_config_io_speed static.
2011-12-09 13:12:40 +00:00
Ralf Corsepius
32f2304ac3 2011-12-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* shared/pci/pcibios.c: Make pcib_find_by_devid static.
2011-12-09 13:10:15 +00:00
Ralf Corsepius
ba5df99c89 2011-12-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* console/vgacons.c: Add VGACONS_STATIC.
	* console/vgacons.h: Remove VGACONS_STATIC.
2011-12-09 07:20:28 +00:00
Ralf Corsepius
884a581346 2011-12-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* libchip/network/if_fxp.c: Add missing initializer.
2011-12-09 07:16:48 +00:00