summaryrefslogtreecommitdiffstats
path: root/c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Filesystem: Reference counting for locationsSebastian Huber2012-03-131-198/+141
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Add missing BSD sections.Joel Sherrill2012-03-091-10/+16
|
* bsp/gen5200: Fix FPU initializationSebastian Huber2012-03-091-0/+1
| | | | | The change of the MSR[FP] status requires a context-synchronizing instruction.
* bsp/gen5200: Reflect clocks of new BRS5L hardwareSebastian Huber2012-03-091-0/+4
|
* Merge branch 'master' of ssh://git.rtems.org/data/git/rtemsJoel Sherrill2012-03-065-359/+78
|\
| * PR 2032: Milkymist USB: Ioctl interface for loading USB firmwareSebastien Bourdeauducq2012-03-033-350/+57
| | | | | | | | | | | | | | 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>
| * PR2029: Milkymist VGA: adjust video timingsXiangfu Liu2012-03-031-9/+9
| | | | | | | | | | | | 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>
| * PR2028: Milkymist USB: forward MIDI messages.Werner Almesberger2012-02-292-0/+12
| | | | | | | | | | | | Forward MIDI messages from the softusb controller to the application. Signed-off-by: Gedare Bloom <gedare@rtems.org>
* | Milkymist - Increase SOFTUSB_PMEM_SIZE to 8 KBWerner Almesberger2012-03-061-1/+1
|/ | | | | | | | | | | | | 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>
* Fix typo in comment.Joel Sherrill2012-02-231-1/+1
|
* Merge remote-tracking branch 'upstream/master'Jennifer Averett2012-02-231-1/+1
|\
| * LPC32XX: TypoSebastian Huber2012-02-231-1/+1
| |
* | Avoid NULL dereference in printk() before libchip console initializedJennifer Averett2012-02-234-63/+129
|/ | | | | | | | 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.
* PR 2015 - LEON3: make SHM driver configurable using weakJoel Sherrill2012-02-172-5/+22
| | | | | | | | | | | 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>
* Patches for Qemu 1.0.50Sebastian Huber2012-02-119-152/+122
|
* Support for NXP LPC1700 familySebastian Huber2012-02-1122-30/+676
|
* Use proper ARMv7-M compiler flags.Sebastian Huber2012-02-111-2/+1
|
* ARMv7-M Systick API changeSebastian Huber2012-02-111-1/+1
|
* Fixed bug intoduced due to API changes.Sebastian Huber2012-02-111-2/+1
|
* PR 2017/bsps - Update due to API changesWendell Silva2012-02-111-1/+0
|
* PR 1991/cpukit - attr.c (really mode code) warning reworkJoel Sherrill2012-02-021-2/+2
| | | | | | | | | | | | | | 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.
* PR 1962/bsps - MVME162 Console Corrections and ImprovementsJoel Sherrill2012-02-026-23/+103
| | | | | | | | | | | | | | | | | | * 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>
* PR 1962/bsps - MVME162 Console Corrections and ImprovementsJoel Sherrill2012-02-021-0/+233
| | | | | | | | | | | | | | | | | | * 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>
* PR 2011/networking - GRETH: performance improvements and one bugfixJoel Sherrill2012-02-021-179/+316
| | | | | | | | | | | | 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>
* PR 2011/networking GRETH: Moved print to remove potential deadlockJoel Sherrill2012-02-021-2/+11
| | | | | | | | | 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>
* LEON3: change d-cache snoop detect implementationDaniel Hellstrom2012-02-021-5/+5
| | | | | | | | | | 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>
* White space correction.Joel Sherrill2012-02-021-1/+1
|
* LEON3: CPU index intialization moved to bspstart.cDaniel Hellstrom2012-02-022-18/+18
| | | | | | | | | | | | | | | | | 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>
* LEON3: fix compiler warning in SHM driverDaniel Hellstrom2012-02-021-1/+1
| | | | | | PR 2008/bsps Signed-off-by: Daniel Hellstrom <daniel@gaisler.com>
* LEON3BSP MP: may wake one more CPU than expectedDaniel Hellstrom2012-02-021-1/+1
| | | | | | | | | | 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>
* Merge remote branch 'remotes/origin/gitignore'Joel Sherrill2012-02-02328-1652/+0
|\
| * Remove all .cvsignore files.Joel Sherrill2012-02-01328-1653/+0
| |
| * Add minimal .gitignore files.Joel Sherrill2012-02-011-0/+1
| |
* | Improve comments on console select patch.Joel Sherrill2012-02-011-9/+4
| |
* | Improve comments on console select patch.Joel Sherrill2012-02-013-10/+8
| |
* | Correct run-time selection of console port.Jennifer Averett2012-02-016-561/+190
|/ | | | This was broken by conversion of console driver to libchip style.
* Fix spelling error and improve comment.Joel Sherrill2012-01-311-1/+1
|
* Fixed race condition during startup.Sebastian Huber2012-01-311-12/+14
|
* Revert "Support custom Makefiles."Sebastian Huber2012-01-263-61/+1
| | | | This reverts commit 621e1c9b74272ff94efec749c6c4a673a7c315e8.
* Revert "Disable optimization."Sebastian Huber2012-01-261-1/+1
| | | | This reverts commit 8ae88d7f9644ad39d88aaa86c7558ec45450e8c9.
* Support for MPC5643L.Sebastian Huber2012-01-2354-1089/+23519
| | | | | Rework of the start sequence to reduce the amount assembler code and to support configuration tables which may be provided by the application.
* Support custom Makefiles.Sebastian Huber2012-01-233-1/+61
|
* Disable optimization.Sebastian Huber2012-01-231-1/+1
|
* 2011-12-14 Joel Sherrill <joel.sherrilL@OARcorp.com>Joel Sherrill2011-12-148-67/+101
| | | | * Makefile.am: Change to one file per line. Clean up.
* 2011-12-13 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-132-2/+5
| | | | * make/custom/qoriq.inc: Remove -W* flags.
* 2011-12-13 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-133-4/+11
| | | | | | | * 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-12 Gedare Bloom <gedare@rtems.org>Gedare Bloom2011-12-123-32/+19
| | | | | | PR bsps/1989 * shared/start/start.S, shared/startup/linkcmds: Boot stack and heap space improvements.
* 2011-12-12 Gedare Bloom <gedare@rtems.org>Gedare Bloom2011-12-122-4/+13
| | | | | PR bsps/1988 * shared/start/start.S: Add _init and _fini to .init and .fini sections
* 2011-12-12 Gedare Bloom <gedare@rtems.org>Gedare Bloom2011-12-122-6/+10
| | | | | | PR bsps/1988 * shared/startup/linkcmds: Relocate .init and .fini sections closer to .text.
* 2011-12-10 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2011-12-102-1/+5
| | | | * configure.ac (CFLAGS): Add -Wmissing-prototypes.