Commit Graph

11370 Commits

Author SHA1 Message Date
Daniel Hellstrom
39671330dc GRETH: added support for non-snooping GRETH 10/100 systems
When data cache snooping is not present the cache needs
flushing, the SPARC LEON CPUs does not have to ability
to flush individual cache rows and flushing all cache is
expensive. Instead the LDA instruction is used to force
cache miss on individual loads during the IP-align copy
operation required anyway.

GRETH GBIT non-snooping systems are still unsupported,
since it use zero-copy (can deal with unaligned DMA).

Let the bsp.h select if the GRETH driver is supported.
Currently only the LEON2/LEON3 platforms BSPs builds the
driver.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-03-27 16:29:22 -04:00
Sebastian Huber
a73884e9a5 bsp/lm3s69xx: Reflect new Qemu patch 2012-03-24 23:00:18 +01:00
Sebastian Huber
bd0fb473c3 bsps: Shared ARMv7-M interrupt support 2012-03-24 23:00:08 +01:00
Sebastian Huber
0f31fddcac bsps: Add shared default IRQ handler 2012-03-24 23:00:00 +01:00
Sebastian Huber
b2ee4d5fef bsp/lm3s69xx: Format 2012-03-24 22:59:48 +01:00
Sebastian Huber
954393caec bsp/lm3s69xx: Use shared timer stub driver 2012-03-24 22:59:39 +01:00
Sebastian Huber
1ed238ec43 bsp/lm3s69xx: Use shared start.S 2012-03-24 22:59:27 +01:00
Sebastian Huber
34c6151754 bsps: Shared ARMv7-M clock driver 2012-03-24 20:31:22 +01:00
Sebastian Huber
3c0e7f9b4a bsp/lm3s69xx: New Qemu patch 2012-03-24 20:30:55 +01:00
Sebastian Huber
5cc813f2b5 bsps: Provide optional prototype 2012-03-24 17:33:22 +01:00
Sebastian Huber
e8adc8e355 bsp/lpc24xx: Use proper clock value 2012-03-24 17:03:59 +01:00
Sebastian Huber
f3cdf27975 bsp/lpc24xx: More CAN pin definitions 2012-03-24 17:03:45 +01:00
Daniel Hellstrom
67b1ce4a69 SMC91111: ERC32 was never supported by driver
Moved the intelligence whether the driver is supported or not
completely to the BSP, now that bsp.h is included (even though it
is a driver... hmm). The ERC32 was never supported, so HAS_SMC91111
is not added to erc32/include/bsp.h.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-03-21 12:36:02 -04:00
Daniel Hellstrom
f636ba640e shared-irq: add support for custom BSP vector verification
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-03-21 12:36:00 -04:00
Daniel Hellstrom
b4dfce9b7a LEON3: spurious trap handler print out trap in hex instead
Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-03-21 12:35:56 -04:00
Daniel Hellstrom
80d01b3cf8 SPARC: added libcpu lowlevel access and byteorder routines/definitions
The low level routines can be used in different occasions, it will be
required when accessing PCI.

Note the difference between byteorder.h (inlined functions) and access.S
where the functions will be declared in the library archive librtemscpu.a.
Function names starting with _ are in library and can be referenced by
function pointers.

Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
2012-03-21 12:35:47 -04:00
Gedare Bloom
67baf6071d PR2041: sparc64: vector number not included in CPU_Interrupt_frame
Add the trap vector to the interrupt frame. Also rename the assembly
macro that accesses the field to be consistent with similar macros.
2012-03-14 13:06:13 -04:00
Sebastian Huber
4868c7718f bsp/lpc24xx: New BSP variant 2012-03-14 16:45:26 +01:00
Sebastian Huber
2563410019 Filesystem: Rename defines
o Removed RTEMS_LIBIO_PERMS_SEARCH.
 o Renamed RTEMS_LIBIO_PERMS_READ in RTEMS_FS_PERMS_READ.
 o Renamed RTEMS_LIBIO_PERMS_WRITE in RTEMS_FS_PERMS_WRITE.
 o Renamed RTEMS_LIBIO_PERMS_EXEC in RTEMS_FS_PERMS_EXEC.
 o Renamed RTEMS_LIBIO_FOLLOW_HARD_LINK in RTEMS_FS_FOLLOW_HARD_LINK.
 o Renamed RTEMS_LIBIO_FOLLOW_SYM_LINK in RTEMS_FS_FOLLOW_SYM_LINK.
 o Renamed RTEMS_LIBIO_MAKE in RTEMS_FS_MAKE.
 o Renamed RTEMS_LIBIO_EXCLUSIVE in RTEMS_FS_EXCLUSIVE.
 o Renamed RTEMS_LIBIO_ACCEPT_RESIDUAL_DELIMITERS in
   RTEMS_FS_ACCEPT_RESIDUAL_DELIMITERS.
 o Renamed RTEMS_LIBIO_REJECT_TERMINAL_DOT in
 RTEMS_FS_REJECT_TERMINAL_DOT.
2012-03-13 12:24:10 +01:00
Sebastian Huber
4116fce629 Filesystem: New defaults fsync_h and fdatasync_h
New defaults rtems_filesystem_default_fsync_or_fdatasync() and
rtems_filesystem_default_fsync_or_fdatasync_success() for fsync_h and
fdatasync_h.  The rtems_filesystem_default_fsync_or_fdatasync() sets now
errno to EINVAL according to POSIX.
2012-03-13 12:23:45 +01:00
Sebastian Huber
3b7c123c8d Filesystem: Reference counting for locations
o A new data structure rtems_filesystem_global_location_t was
   introduced to be used for
    o the mount point location in the mount table entry,
    o the file system root location in the mount table entry,
    o the root directory location in the user environment, and
    o the current directory location in the user environment.
   During the path evaluation global start locations are obtained to
   ensure that the current file system instance will be not unmounted in
   the meantime.
 o The user environment uses now reference counting and is protected
   from concurrent access.
 o The path evaluation process was completely rewritten and simplified.
   The IMFS, RFS, NFS, and DOSFS use now a generic path evaluation
   method.  Recursive calls in the path evaluation have been replaced
   with iteration to avoid stack overflows.  Only the evaluation of
   symbolic links is recursive.  No dynamic memory allocations and
   intermediate buffers are used in the high level path evaluation.  No
   global locks are held during the file system instance specific path
   evaluation process.
 o Recursive symbolic link evaluation is now limited by
   RTEMS_FILESYSTEM_SYMLOOP_MAX.  Applications can retrieve this value
   via sysconf().
 o The device file system (devFS) uses now no global variables and
   allocation from the workspace.  Node names are allocated from the
   heap.
 o The upper layer lseek() performs now some parameter checks.
 o The upper layer ftruncate() performs now some parameter checks.
 o unmask() is now restricted to the RWX flags and protected from
   concurrent access.
 o The fchmod_h and rmnod_h file system node handlers are now a file
   system operation.
 o The unlink_h operation has been removed.  All nodes are now destroyed
   with the rmnod_h operation.
 o New lock_h, unlock_h, clonenod_h, and are_nodes_equal_h file system
   operations.
 o The path evaluation and file system operations are now protected by
   per file system instance lock and unlock operations.
 o Fix and test file descriptor duplicate in fcntl().
 o New test fstests/fsnofs01.
2012-03-13 12:23:37 +01:00
Joel Sherrill
0bda8b47a6 Add missing BSD sections. 2012-03-09 10:33:09 -06:00
Sebastian Huber
c5a6e617a5 bsp/gen5200: Fix FPU initialization
The change of the MSR[FP] status requires a context-synchronizing
instruction.
2012-03-09 15:55:32 +01:00
Sebastian Huber
3bd4656fc4 bsp/gen5200: Reflect clocks of new BRS5L hardware 2012-03-09 15:55:31 +01:00
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
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
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