Commit Graph

25872 Commits

Author SHA1 Message Date
Mandar Juvekar
1464599482 psxtests/psxfatal01: add doc file 2013-12-20 11:37:59 -05:00
Sebastian Huber
c1d8ee4cdc libcsupport: Accept NULL for zero-length entries 2013-12-20 10:31:53 +01:00
Sebastian Huber
56bea4339f Filesystem: Use default kqfilter and poll handler 2013-12-20 10:31:53 +01:00
Sebastian Huber
2f68778f08 Filesystem: Add readv/writev handlers
The readv() and writev() support was implemented in terms of multiple
calls to the read and write handlers.  This imposes a problem on device
files which use an IO vector as single request entity.  For example a
low-level network device (e.g. BPF(4)) may use an IO vector to create
one frame from multiple protocol layers each with its own IO vector
entry.
2013-12-20 10:31:53 +01:00
Sebastian Huber
95a57280eb libcsupport: Add and use rtems_libio_iovec_eval() 2013-12-20 10:31:53 +01:00
Toma
7b10f130e6 arm/gba: doxygen improvement
Add doxygen to the header files in the arm/gba include,
irq, and console directories.
2013-12-19 19:57:41 -05:00
Jennifer Averett
fe011a59a4 sptests/spcpuset*: Add tests for fixed size cpu_set_t operations.
This adds five tests for <sys/cpuset.h>. It does not include
tests for CPU_XXX_S methods. The autotools should be able to
avoid enabling the tests unless the toolset has <sys/cpuset.h>.
2013-12-19 14:11:09 -06:00
Chris Johns
db8a89e212 cpukit/capture: Update the capture engine.
The capture did not work due to changes in the workspace allocator.
The engine now scans all existing tasks when enabled and does any
allocations then.

Fixed a bug in the ctset commandi in the CLI.

Updated the capture engine to use 64bit nanosec timestamps.

Fixed the CLI showing the stack usage.
2013-12-19 19:01:23 +11:00
Chris Johns
f466e567a1 arm/a9mpcore: Add support to get the clock via a weak linkage function.
This allows an application to provide a localised clock freq with
needing to go down the BSP opts path. This is important with the
Zynq where the Xilinx tools generate the frequency.
2013-12-19 14:49:11 +11:00
Chris Johns
6c1e53014e arm/zynq: Add support for application supplied MMU tables.
Users can provide a zynq_setup_mmu_and_cache function that sets
up the MMU. The Zynq's PL logic means users can vary the MMU.
2013-12-19 14:44:29 +11:00
Chris Johns
4a9e52eefc Fix the broken conflict from the revert. 2013-12-19 11:45:19 +11:00
Chris Johns
1ab4f76900 Revert "bsps/arm: Use ALIGN_WITH_INPUT"
This reverts commit 287bbb65af.

Conflicts:
	c/src/lib/libbsp/arm/shared/startup/linkcmds.base
2013-12-19 11:35:22 +11:00
Alan Cudmore
a9619f3cb6 For PR 2164 - RFS File System - fix bitmap_create_search loop bug
This is for the RFS file system. There is a bug in the
rtems_rfs_bitmap_create_search loop. It is supposed to iterate
over the range of bits in a search element ( usually 32 bits ),
so it should loop through bits 0 through 31. Instead it loops
through 0 - 32, causing some blocks not to be allocated. As in
PR 2163, this depends on the block size and number of blocks in
a file system. Block sizes and group sizes that are powers of 2
seem to work fine ( 512 byte blocks, 4096 block groups, etc ).
When the block sizes are not powers of 2, then this loop error
causes some of the blocks at the end of a group to be skipped,
preventing 100% of the blocks from being used. A simple test
for this and PR2163 is to create a RAM disk with block size
3900 and at least 1 full group ( 31200 blocks ). A file system
with these sizes will not be able to allocate 100% of the blocks.
2013-12-19 11:07:47 +11:00
Alan Cudmore
9b48dc67ed For PR 2162 - RFS File System - statvfs reports 1 block free
This is for the RFS file system. The statvfs call reports 1 block free
when the file system is full because it does not account for the superblock
in its calculation of free blocks.
This is a simple fix that adjusts the number of blocks reported to account
for the superblock. We may want to wait for a more complete solution such
as locating the superblock in each group.
2013-12-19 11:07:41 +11:00
Alan Cudmore
e60b7b1b4f For PR 2163 - RFS File System - fix group search algorithm bug
This is for the RFS file system. There is a bug in the group search
algorithm where it will skip groups, causing blocks to remain
unallocated. This is dependant on the size of the blocks and number
of blocks in a group, so it does not always show up. The fix corrects
the skipping of groups during the search, allowing all of the blocks
to be found.
2013-12-19 11:03:27 +11:00
Anukul Sangwan
540a63536c psxtests: add psxcleanup/psxcleanup.doc 2013-12-18 15:01:20 -05:00
Toma Radu
d970738c56 arm_lm3s69xx: improve doxygen
Add doxygen to the header files in the arm/lm3s69xx/include directory.
2013-12-17 20:54:01 -05:00
Sebastian Huber
f859d20ccf arm: Fix set by but not used warning 2013-12-16 15:15:42 +01:00
Sebastian Huber
14e1c677fd bsp/genmcf548x: Increase network TX FIFO watermark
This prevents frequent transmit FIFO errors.
2013-12-16 15:15:42 +01:00
Sebastian Huber
a19b9157e9 bsp/genmcf548x: Fix network FIFO error handling
Use a buffer handling similar to the MPC5200B FEC driver to cope with
FIFO errors.
2013-12-16 15:15:42 +01:00
Sebastian Huber
6eb17335ed bsp/genmcf548x: Use bsp_interrupt_vector_enable() 2013-12-16 15:15:42 +01:00
Sebastian Huber
8d2920119b bsp/genmcf548x: Add initial values for INTC_ICRn
According to the manual the application must use unique and
non-overlapping level and priority definitions for enabled interrupts.
2013-12-16 15:15:42 +01:00
Sebastian Huber
5df9bf6e8a bsp/genmcf548x: Add interrupt extension support 2013-12-16 15:15:41 +01:00
Sebastian Huber
6440903c48 bsps/m68k: Add and use linkcmds.base 2013-12-16 15:15:41 +01:00
Sebastian Huber
e4927eceff bsps: Simplify FreeBSD linker sets 2013-12-16 15:15:39 +01:00
Sebastian Huber
287bbb65af bsps/arm: Use ALIGN_WITH_INPUT
This requires at least Binutils 2.24.
2013-12-16 15:15:00 +01:00
Sebastian Huber
43c6268509 bsps/powerpc: Use ALIGN_WITH_INPUT
This requires at least Binutils 2.24.
2013-12-16 15:15:00 +01:00
Sebastian Huber
fb664a21c2 nfsclient: Move defines to cover all header files 2013-12-16 14:30:25 +01:00
Sebastian Huber
99c2323d4f JFFS2: Do not re-define struct iovec 2013-12-16 14:30:25 +01:00
Chris Johns
259328a78d cpukit/shell: Control help break with SHELL_LINES env variable.
Control the help command break with the SHELL_LINES evironment variable
where the numeric value is the number of lines to break on. If the
value is 0 the output is not broken. The default is 16 lines.

Add shell documentation for the help command.
2013-12-16 11:59:51 +11:00
Szkocsovszki Zsolt
24d09194b7 bsp: Move bspstart.c to sh/shared/startup/ 2013-12-14 12:13:08 -06:00
Chirayu Desai
78c4a2f4cf arm: Enhance Doxygen for csb336,csb337 and gdbarmsim 2013-12-14 12:08:15 -06:00
Joel Sherrill
4402308bfc no_cpu/cpusmplock.h: Clean up to be compilable 2013-12-14 11:56:33 -06:00
Chirayu Desai
98239f382a arm: realview-pbx-a9: Add doxygen 2013-12-13 21:39:04 -05:00
Joel Sherrill
801a1fc6b2 cpukit/configure.ac: Probe for SMP affinity methods 2013-12-13 08:35:52 -06:00
Joel Sherrill
7318449947 psxtests/configure.ac: Probe for SMP affinity methods 2013-12-13 08:35:52 -06:00
Daniel Ramirez
07f4edc14b sptests: refactored sp09/screen14.c into two new tests 2013-12-11 20:11:08 -05:00
Helder Silva
bde2237020 PR1960: ERC32_Is_interrupt_masked for ERC32 in erc32.h
The function-like macro ERC32_Is_interrupt_masked defined as:

  (ERC32_MEC.Interrupt_Masked & (1 << (_source)))

The ERC32_MEC is of type ERC32_Register_Map structure and Interrupt_Masked does
not exist in structure, instead Interrupt_Mask exists.
Update the macro accordingly.
2013-12-11 11:26:04 -05:00
Sebastian Huber
ce8363d363 sptests/spfifo01: Add test case for mknod() 2013-12-11 10:23:44 +01:00
Sebastian Huber
98e5c954bd PR2160: imfs: Use ENOSYS for unsupported nodes
Return an error status with errno set to ENOSYS during node creation for
nodes not available in the current configuration.
2013-12-11 09:39:09 +01:00
Joel Sherrill
0b59942156 psxsignal06: Fix bug where mutex not locked and add EPERM error check
This test formerly had a bug in that it attempted to wait on a
    condition variable with a Mutex that was not locked. This is
    undefined by POSIX. But a recent change to match GNU/Linux behavior
    resulted in finding a bug in the test.
2013-12-10 19:48:28 -06:00
Joel Sherrill
74c15fe696 psxtmcond01: Fix bug where mutex not locked and add EPERM error check
This test formerly had a bug in that it attempted to wait on a
condition variable with a Mutex that was not locked. This is
undefined by POSIX. But a recent change to match GNU/Linux behavior
resulted in finding a bug in the test.
2013-12-10 17:56:22 -06:00
Joel Sherrill
0f01de2b96 alarm.c: Use _Assert() not assert() 2013-12-10 09:08:16 -06:00
Daniel Ramirez
218b0e6905 psxtmtests: added psxtmcond07 test 2013-12-09 23:26:48 -06:00
Chris Johns
c59f668c42 PR2138: rtems_rfs_rtems_initialize() can erroneously set errno.
Patch from Nick for this. Thanks.
2013-12-10 15:00:27 +11:00
Chris Johns
6e4255d9a5 arm/xilinx__zynq: Support application based clock freq.
Provide a weak call to a clock freq routine to allow the application
to supply the freq defined in the Xilinx generated source.

Add code to calculate the baud rate.
2013-12-10 13:41:16 +11:00
Chris Johns
37df715080 arm/xilinx_zynq: Add bsp_translation_table_end to the linker script. 2013-12-10 13:24:06 +11:00
Daniel Ramirez
371f32f48e tmtests: refactored timesys.h, removed declarations 2013-12-09 19:55:35 -06:00
Joel Sherrill
798b8da7ef Merge branch 'master' into am 2013-12-09 19:53:13 -06:00
Joel Sherrill
967c14385b alarm.c: Per comment add debug code for kill() failing
This is highly unlikely and would indicate a serious bug
in the system or corruption. But it is better to be cautious.
2013-12-09 19:50:55 -06:00