Commit Graph

25761 Commits

Author SHA1 Message Date
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
Joel Sherrill
8ae999c38b pthread.c: Use UINT32_MAX rather than constant value 2013-12-09 19:50:55 -06:00
Joel Sherrill
327fbd6df7 condwaitsupp.c: Return EPERM if waiting and mutex is not locked
This error check was commented out because it is not in the POSIX
specification. However, the GNU/Linux manual page does document
that EPERM is to be returned in this situation.
2013-12-09 19:50:55 -06:00
Joel Sherrill
96281908a2 psignalimpl.h: Remove dead comment 2013-12-09 19:50:55 -06:00
Joel Sherrill
fa820b9e4c pthread.c: Remove XXX and use SIGNAL_ constants 2013-12-09 19:50:55 -06:00
Joel Sherrill
01d43180dd posix/config.h: Comment clean up 2013-12-09 19:50:55 -06:00
Joel Sherrill
2b3a648fe1 signalcatch.c: Remove junk comment 2013-12-09 19:50:55 -06:00
Joel Sherrill
16b1c350f0 timerimpl.h: Comment clean up 2013-12-09 19:50:55 -06:00
Joel Sherrill
610825b1e2 semaphoreimpl.h: Comment clean up 2013-12-09 19:50:55 -06:00
Joel Sherrill
849b98e83f mqueueimpl.h: Comment clean up 2013-12-09 19:50:55 -06:00
Joel Sherrill
07a3aa9d70 condimpl.h: Comment clean up 2013-12-09 19:50:55 -06:00
Joel Sherrill
71f2a83d5d ptimer.h: Comment clean up 2013-12-09 19:50:55 -06:00