Commit Graph
24290 Commits
Author SHA1 Message Date
Sebastian Huber e4bda0469b bsp/lpc24xx: Simplify EMCDLYCTL handling 2012-06-15 15:59:33 +02:00
Sebastian Huber f7deb58df0 bsp/lpc24xx: Simplify EMC configuration 2012-06-15 15:59:33 +02:00
Sebastian Huber d40b09d7e8 bsp/lpc24xx: New BSP variants (PLX800 on LPC1778) 2012-06-15 15:59:33 +02:00
Sebastian Huber 7329f55d8f bsps/arm: Rename linkcmds.armv7 to linkcmds.armv7m 2012-06-15 15:59:32 +02:00
Sebastian Huber c39148d62f libchip: Add support for NS16550 with FDR 2012-06-15 15:59:32 +02:00
Sebastian Huber c34bb0dcfa score: Fix performance issue for 64-bit timestamps
The 64-bit timestamps were introduced to simplify the timestamp
calculations.  This works well since nearly all operations are
additions.  The previous _TOD_Tickle_ticks() implementation had a
serious performance regression in case of 64-bit timestamps due to the
usage of two 64-bit divisions which are quite expensive on some
architectures.

A new field seconds_trigger in TOD_Control is introduced to trigger the
_Watchdog_Tickle_seconds() in _TOD_Tickle_ticks().  This avoids the
64-bit divisions completely and only 32-bit additions are used.
2012-06-14 14:20:30 +02:00
Sebastian Huber 3246b0f8fc score: New structure TOD_Control
Group the global TOD variables (_TOD_Now, _TOD_Uptime, and _TOD_Is_set)
in a structure to reduce address loads in _TOD_Tickle_ticks().
2012-06-14 14:20:30 +02:00
Sebastian Huber 50fc8f65a6 sapi: Add nanoseconds_per_tick to configuration
Add nanoseconds_per_tick to rtems_configuration_table.  This value will
be derived from the microseconds_per_tick value.  This avoids some
calculations at run-time.
2012-06-14 14:20:30 +02:00
Joel Sherrill 15621db1dd Merge branch 'master' of ssh://git.rtems.org/data/git/rtems 2012-06-12 17:58:55 -05:00
Joel Sherrill 918dbb6d53 v850 port: byte swap instructions not available on all multilibs 2012-06-12 17:58:33 -05:00
Joel Sherrill 1364eb9935 v850 - byte swap instructions not available on all multilibs 2012-06-12 17:58:01 -05:00
Sebastian Huber fd153c73bd bsps: Replace NIRVANA region
Replace the "NIRVANA" region with the more verbose "UNEXPECTED_SECTIONS"
region.  Move the region definition into the "linkcmds.base" files.
2012-06-12 15:31:37 +02:00
Sebastian Huber 51c85da2ce libchip/ata: Fix pre-processor symbol evaluation 2012-06-12 15:31:37 +02:00
Sebastian Huber 9f527308d7 libblock: Add block device statistics 2012-06-12 10:12:40 +02:00
Sebastian Huber 7d4a859441 libblock: Remove const qualifier
This allows addtion of per disk statistics for example.
2012-06-12 10:12:40 +02:00
Joel Sherrill 2d7ae960bb v850 port: Initial addition with BSP for simulator in GDB
Port
  + v850 does not have appear to have any optimized bit scan instructions
  + v850 does have single instructions for wap u16 and u32
  + Code path optimization preferences set
  + Add BSP variants for each GCC CPU model flag and a README
    - v850e1 variant does not work (fails during BSP initialization)
BSP for GDB v850 Simulator
  + linkcmds matches defaults in GDB simulator with RTEMS mods
  + crt1.c added from v850 newlib port for __main()
  + BSP exits cleanly
  + printk and console I/O work
  + uses clock tick from IDLE task
  + Tests not requiring real clock ISR work
Documentation
  + CPU Supplment chapter for v850 added
2012-06-11 13:37:29 -05:00
Joel Sherrill 9da42fb87a powerpc/cpu.h: Define CPU_SIMPLE_VECTORED_INTERRUPTS and remove _CPU_ISR_Initialize 2012-06-11 13:00:57 -05:00
Joel Sherrill 3e5ff08227 mips/cpu.h: Define CPU_SIMPLE_VECTORED_INTERRUPTS and remove _CPU_ISR_Initialize 2012-06-11 12:40:11 -05:00
Joel Sherrill 562cadfaa5 i386/cpu.h: Define CPU_SIMPLE_VECTORED_INTERRUPTS and remove _CPU_ISR_Initialize 2012-06-11 12:40:10 -05:00
Joel Sherrill dea1050312 arm/cpu.h: Define CPU_SIMPLE_VECTORED_INTERRUPTS and remove _CPU_ISR_Initialize 2012-06-11 12:40:10 -05:00
Joel Sherrill 61baaccef1 isr.c: Do not call _CPU_Initialize_vectors() if PIC Interrupt Model 2012-06-11 12:40:04 -05:00
Joel Sherrill 97bda25c0e threadhandler.c: Fix spelling of __main() in prototype 2012-06-11 12:26:21 -05:00
Sebastian Huber 8250503f21 librpc: PR2066: Fix for short enums
The XDR library has a problem on architectures with short enums like the
default ARM EABI.  Short enums means that the size of the enum type is
variable and the smallest integer type to hold all enum values will be
selected.  For many enums this is char.  The XDR library uses int32_t
for enum_t.  There are several evil casts from an enum type to enum_t
which leads to invalid memory accesses on short enum architectures.  A
workaround is to add appropriate dummy enum values.
2012-06-06 13:57:43 +02:00
Sebastien Bourdeauducq 6c18c97be0 network/bootp: PR2031: Add and use header file 2012-06-06 13:30:14 +02:00
Sebastian Huber eb1951a2d1 powerpc/mpc55xx: BSP variant changes for MPC5643L 2012-06-05 17:45:00 +02:00
Sebastian Huber b2cb8d6fb4 libcsupport: Add rtems_printf_plugin() 2012-06-04 17:30:21 +02:00
Sebastian Huber 1f7b5b0142 libtests/block13: Add const qualifier 2012-06-04 17:30:21 +02:00
Sebastian Huber df84ca249d libblock: Rename structure 2012-06-04 17:30:20 +02:00
Sebastian Huber 5bd7bd5ab1 bsp/t32mppc: Fix Trace32 configuration file 2012-06-04 17:30:20 +02:00
Sebastian Huber b8ed6d8037 libtests/block05: Fix warnings 2012-06-04 09:54:32 +02:00
Sebastian Huber 96b1d7fcfe dosfs: Fix for no space left on device condition
The file size was wrong in the no space left on device condition.  This
resulted in turn in a read of an invalid block which lead to an EIO
error status.
2012-06-04 09:54:32 +02:00
Sebastian Huber 39ee704e75 libblock: Add read-ahead task
Read-ahead requests were previously executed in the context of the
reading task.  This blocks the reading task until the complete read
with read-ahead transfer is finished.  A read-ahead task is introduced
to off-load the read-ahead transfer.  This allows the reading task to
work with the requested block more quickly.  The read-ahead is triggered
after two misses of ascending consecutive blocks or a read hit of a
block read by the most-recent read-ahead transfer.  The read-ahead
feature is configurable and can be disabled.
2012-06-04 09:54:31 +02:00
Sebastian Huber 6273201b14 bsps/powerpc: Add load section for .nocache 2012-06-04 09:54:31 +02:00
Sebastian Huber 105ccdd55e bsp/qoriq: New BSP option
New BSP option BSP_USE_DATA_CACHE_BLOCK_TOUCH.
2012-06-04 09:54:31 +02:00
Sebastian Huber 1869bb7101 powerpc: Simplify context switch
PowerPC cores with the SPE (Signal Processing Extension) have 64-bit
general-purpose registers.  The SPE context switch code has been merged
with the standard context switch code.  The context switch may use cache
operations to increase the performance.  It will be ensured that the
context is 32-byte aligned (PPC_DEFAULT_CACHE_LINE_SIZE).  This
increases the overall memory size of the context area in the thread
control block slightly.  The general-purpose registers GPR2 and GPR13
are no longer part of the context.  The BSP must initialize these
registers during startup (usually initialized by the __eabi() function).

The new BSP option BSP_USE_DATA_CACHE_BLOCK_TOUCH can be used to enable
the dcbt instruction in the context switch.

The new BSP option BSP_USE_SYNC_IN_CONTEXT_SWITCH can be used to enable
sync and isync instructions in the context switch.  This should be not
necessary in most cases.
2012-06-04 09:54:31 +02:00
Joel Sherrill 721fe34aae Fix C files which had two semi-colons at EOL 2012-05-31 15:34:36 -05:00
Joel Sherrill 5f0cd3499c samples - Eliminate missing prototype warnings 2012-05-31 10:06:16 -05:00
Joel Sherrill 3c8eda77b9 sptests - Eliminate missing prototype warnings 2012-05-31 10:06:16 -05:00
Ralf Corsépius 4f16ce03d2 Revert "Revert "libtests/complex: Avoid generated files""
This reverts commit 0c2d8ec48a.
2012-05-31 10:06:15 -05:00
Ralf Corsépius 61d2fb4dba Revert "Revert "libtests/math*: Avoid generated files""
This reverts commit 87c8d8aba6.
2012-05-31 10:06:15 -05:00
Ralf Corsépius 5e707bc75e Revert "libtests/math*: Avoid generated files"
This reverts commit 6a5bd1c65c.
2012-05-31 10:06:14 -05:00
Ralf Corsépius b824fb873b Revert "libtests/complex: Avoid generated files"
This reverts commit a80a108d44.
2012-05-31 10:06:14 -05:00
Sebastian Huber 53f2ca3be6 dosfs: Fix format request with sectors per cluster 2012-05-31 13:50:08 +02:00
Sebastian Huber f164ae751a libblock: Move rtems_bdbuf_get_media_block() call
Move rtems_bdbuf_get_media_block() call inside the bdbuf lock.
2012-05-31 11:05:48 +02:00
Sebastian Huber 73c09b3b8e libblock: Simplify disk management
Add block_count and media_blocks_per_block to rtems_disk_device.  Add
and use rtems_disk_init_phys() and rtems_disk_init_log().
2012-05-31 11:05:48 +02:00
Sebastian Huber 2c6cc3c0de libblock: Remove explicit bds_per_group parameter 2012-05-31 11:05:48 +02:00
Sebastian Huber 40284de844 libblock: Remove const qualifier from bdbuf API
This allows addtion of per disk statistics for example.
2012-05-31 11:05:48 +02:00
Sebastian Huber b6911069d4 libblock: Add task stack size bdbuf configuration
The task stack size for the swap-out and worker tasks is now
configurable.  The bdbuf task resources are now included in the work
space size estimate.
2012-05-31 11:05:48 +02:00
Jennifer Averett bb08c0c8fb pc386: Added sections for rtems-libbsd support. 2012-05-30 13:10:43 -05:00
Sebastian Huber f7f2eb5799 dosfs: Fix print format string 2012-05-29 16:18:44 +02:00