Commit Graph

12379 Commits

Author SHA1 Message Date
Sebastian Huber
ffc862cbf5 bsp/realview-pbx-a9: Add NULL pointer protection
Qemu Git version 8641136c54d216edb5bb8ef723c754039b4c5cf3 or later is
required.
2013-10-31 16:43:25 +01:00
Daniel Hellstrom
b3211b5a63 SPARC BSPs: disable interrupts as early as possible
There is no point having interrupts enabled before reaching
boot_card() that disables interrupt. We better have it off
all the time.

It is required to turn off interrupt on secondary CPUs in an
SMP system.
2013-10-31 15:31:06 +01:00
Daniel Hellstrom
82e11be20c LEON3 SMP: remove compiler warning from __delay() declaration 2013-10-31 15:31:06 +01:00
Daniel Hellstrom
bedfe131bb LEON3 SMP: CPU ack irq on trap vector entry execution 2013-10-31 15:31:06 +01:00
Daniel Hellstrom
e1b53274d0 LEON3_MP ISR: shared-IRQ setup overwrite SMP/MP ISR trap handler
Basically the shared-irq handler overwrite the SMP/MP traphandler
previously initialized with set_vector(). That caused IPIs to enter
BSP spurious handler.
2013-10-31 15:31:06 +01:00
Sebastian Huber
fbed79bdd0 bsps/arm: Add ARMV7_CP15_START_DEFAULT_SECTIONS 2013-10-27 19:39:44 +01:00
Sebastian Huber
f074a4d1bb bsps/arm: ARMV7_MMU_DATA_READ_WRITE_SHAREABLE
Delete ARMV7_MMU_DATA_READ_WRITE_SHAREABLE and move RTEMS_SMP
specific MMU attribute settings to arm-cp15.h.
2013-10-27 19:39:36 +01:00
Sebastian Huber
f619250391 bsps: Add simple console output char 2013-10-27 19:13:47 +01:00
Hesham AL-Matary
7ad725f27d Modify raspberrypi mm_config_table to map GPIO and registers.
Changes include reverting back to setting all page-table section entries
as invalid and modify mm_config_table to apply the correct memory attributes
for raspbberypi memory sections at startup. The newly added entry at mm_config_table
maps raspberrypi GPIO and other registers found at raspberrypi.h
2013-10-27 19:06:05 +01:00
Sebastian Huber
09d0c96b91 bsps/arm: Move some MMU bit settings
The function
arm_cp15_start_setup_translation_table_and_enable_mmu_and_cache() must
only set the MMU and cache enable flags.  Configuration flags must be
set elsewhere.
2013-10-27 18:58:42 +01:00
Sebastian Huber
0f874ee501 bsps/arm: Init trans tbl with invalid entries 2013-10-27 18:54:50 +01:00
Joel Sherrill
24a6943c66 sparc all BSPs: Use function and data sections
This reduces the size of the RTEMS tests on average about 45%.
2013-10-24 18:42:39 -05:00
Christian Mauderer
0255beaf17 bsp/stm32f4: Bugfix for I2C driver. 2013-10-24 16:43:01 +02:00
Christian Mauderer
c918737ed3 bsp/stm32f4: Add a simple I2C-driver. 2013-10-24 16:29:18 +02:00
Christian Mauderer
bb3f3491b5 bsp/stm32f4: Bugfix for io-initialisation. 2013-10-24 16:29:13 +02:00
Christian Mauderer
c6f0efe297 bsp/stm32f4: Header for f10xxx EXTI. 2013-10-24 16:29:05 +02:00
Pavel Pisa
382f714a6e SPI SD-Card: setup valid CRC-7 for STOP_TRANSMISSION command.
STOP_TRANSMISSION command is used to finish READ_MULTIPLE_BLOCK
command and its format is regular command format.
It requires valid CRC-7 to have effect at least on
same cards types else it is ignored and attempt
to issue next READ or WRITE commands results in
illegal command condition (0x04) preceded by strange
(0x3f) for tested card.

Signed-off-by: Pavel Pisa <ppisa@pikron.com>
2013-10-08 11:14:03 +02:00
Hesham AL-Matary
5ceefe18f0 Shared MMU initialization for ARM BSPs and RaspberryPi MMU support
Add support for MMU initialization for RaspberryPi. Introduce new shared
MMU configuration table that can be used by other BSPs that call the
arm_cp15_start_setup_translation_table_and_enable_mmu_and_cache function.
Demonstrate the use of the generic table with RaspberryPi.
2013-10-03 08:55:33 -04:00
Hesham AL-Matary
0a9533fc2c Add a new necessary definition needed for raspberrypi MMU support
The new ARM_CP15_CTRL_XP is necessary to share ARMv6 and ARMv7
page-table formats and definitions.
It enables the extended page tables (introduced in ARMv6)
to be configured for the hardware page translation mechanism. This way
we can share ARMv6 and ARMv7 page tables entry formats.

Other Fault Status Register Definitions can be useful for debugging or
excpetion handlers.
2013-10-03 08:51:29 -04:00
Joel Sherrill
ba2e98e643 libbsp/sparc/.../gnatcommon.c: Formatting 2013-09-30 12:08:38 -05:00
Joel Sherrill
d349636b2a leon2/.../ckinit.c: Change get nanoseconds handler to static 2013-09-30 12:08:13 -05:00
Joel Sherrill
a15650dad5 mips/shared/.../clockdrv.c: Change get nanoseconds handler to static 2013-09-30 12:07:35 -05:00
Joel Sherrill
2dfdecd91c uC5282/.../clock.c: Change get nanoseconds handler to static 2013-09-30 12:07:07 -05:00
Joel Sherrill
38905d70d8 leon3/bsppredriver.c: Add include file to warning 2013-09-23 08:28:48 -05:00
Joel Sherrill
4fab260dd1 libcpu/sparc/.../access_le.c: Add include file to fix warning 2013-09-23 08:24:32 -05:00
Joel Sherrill
876af7a1a0 leon3/.../ckinit.c: Change get nanoseconds handler to static 2013-09-23 08:16:55 -05:00
Joel Sherrill
d2c5bff7dc leon3/.../ckinit.c: Fix missing prototype warnings 2013-09-22 10:51:36 -05:00
Joel Sherrill
68670555c9 libbsp/shared/bspinit.c: Fix missing prototype warnings 2013-09-22 10:51:19 -05:00
Joel Sherrill
4650678bb4 leon3/.../bspstart.c: Fix missing prototype warnings 2013-09-22 10:38:31 -05:00
Joel Sherrill
f07b0e6563 sparc/.../grcan.c: Switch to using RTEMS_COMPILER_UNUSED_ATTRIBUTE 2013-09-22 09:41:49 -05:00
Joel Sherrill
c8707a316b leon3/console.c: Fix misisng prototype issues 2013-09-21 16:25:06 -05:00
Joel Sherrill
34b57d61be sparc/.../grcan.c: Fix multiple warnings 2013-09-21 16:10:17 -05:00
Joel Sherrill
e9da278c05 sparc/.../ambapp.h: Add ambapp_get_number_apbslv_devices() prototype 2013-09-21 16:09:48 -05:00
Joel Sherrill
ac19578efa sparc/.../occan.c: Fix missing prototype warning 2013-09-21 15:56:28 -05:00
Joel Sherrill
110cc8cb38 sparc/.../ambapp.h: Add ambapp_get_number_ahbslv_devices() prototype 2013-09-21 15:55:40 -05:00
Joel Sherrill
946c3918f0 sparc/../occan.c: Fix set but unused variable warning 2013-09-21 15:48:45 -05:00
Joel Sherrill
df74da01b7 sparc irq-shared.c: Fix unused variable warning 2013-09-21 15:38:48 -05:00
Christian Mauderer
1485a58ce3 bsp/stm32f4: Add STM32F10XXX support. 2013-09-19 13:18:04 +02:00
Joel Sherrill
564860fb59 leon3/include/bsp.h: Fix spacing 2013-09-16 14:32:36 -05:00
Joel Sherrill
3d477da051 m68k/shared/start.S: Fix spacing 2013-09-16 14:32:22 -05:00
Joel Sherrill
f73089760c pc386/console/conscfg.c: Fix spacing 2013-09-16 14:31:52 -05:00
Joel Sherrill
38d94f565d raspberrypi.cfg: Remove CVS Id 2013-09-16 14:31:28 -05:00
Ric Claus
a44917e789 bsps/arm: Fix exception entries 2013-09-16 10:54:51 +02:00
Sebastian Huber
f55215a837 bsps: Fix cache manager support 2013-09-10 08:51:06 +02:00
Sebastian Huber
d157a4fd4d bsps/arm: Fix ARM CP15 opcode for get functions 2013-09-05 09:37:17 +02:00
Karel Gardas
0c47440c6a bsp/lm4f120: new BSP to support TI LM4F120 XL LaunchPad board 2013-09-02 09:06:20 +02:00
Sebastian Huber
1215fd4d94 sapi: SMP support for chains
Add ISR lock to chain control for proper SMP protection.  Replace
rtems_chain_extract() with rtems_chain_explicit_extract() and
rtems_chain_insert() with rtems_chain_explicit_insert() on SMP
configurations.  Use rtems_chain_explicit_extract() and
rtems_chain_explicit_insert() to provide SMP support.
2013-08-30 11:16:28 +02:00
Sebastian Huber
d56f76ac93 bsps: Fix header includes 2013-08-27 10:48:16 +02:00
Joel Sherrill
3109857c88 bsps: Add and use CLOCK_DRIVER_ISRS_PER_TICK_VALUE
pc386 set CLOCK_DRIVER_ISRS_PER_TICK to a
string rather than a numeric value. Add
CLOCK_DRIVER_ISRS_PER_TICK_VALUE and
other clean up on the clock driver.
2013-08-26 16:16:38 -04:00
Ric Claus
2bd440ed58 bsp/xilinx-zynq: Add cache support 2013-08-26 09:53:06 +02:00