summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libcpu
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-03-10 10:17:35 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-03-13 08:05:39 +0100
commitc4905d8d314f4325b18e4dbbd6cbfc5b0f75f313 (patch)
tree9191f15047275025a5ca14d898d986a677383a22 /c/src/lib/libcpu
parentbsps/mips: Move libcpu content to bsps (diff)
downloadrtems-c4905d8d314f4325b18e4dbbd6cbfc5b0f75f313.tar.bz2
bsps/arm: Move libcpu content to bsps
This patch is a part of the BSP source reorganization. Update #3285.
Diffstat (limited to '')
-rw-r--r--bsps/arm/shared/cp15/arm920-mmu.c (renamed from c/src/lib/libcpu/arm/shared/arm920/mmu.c)0
-rw-r--r--c/src/lib/libcpu/arm/Makefile.am19
-rw-r--r--c/src/lib/libcpu/arm/configure.ac32
-rw-r--r--c/src/lib/libcpu/arm/lpc22xx/irq/bsp_irq_asm.S57
-rw-r--r--c/src/lib/libcpu/arm/lpc22xx/irq/bsp_irq_init.c65
-rw-r--r--c/src/lib/libcpu/arm/pxa255/irq/bsp_irq_asm.S31
-rw-r--r--c/src/lib/libcpu/arm/pxa255/irq/bsp_irq_init.c40
7 files changed, 0 insertions, 244 deletions
diff --git a/c/src/lib/libcpu/arm/shared/arm920/mmu.c b/bsps/arm/shared/cp15/arm920-mmu.c
index b76daa6c7a..b76daa6c7a 100644
--- a/c/src/lib/libcpu/arm/shared/arm920/mmu.c
+++ b/bsps/arm/shared/cp15/arm920-mmu.c
diff --git a/c/src/lib/libcpu/arm/Makefile.am b/c/src/lib/libcpu/arm/Makefile.am
deleted file mode 100644
index 35b08e2495..0000000000
--- a/c/src/lib/libcpu/arm/Makefile.am
+++ /dev/null
@@ -1,19 +0,0 @@
-ACLOCAL_AMFLAGS = -I ../../../aclocal
-
-include $(top_srcdir)/../../../automake/compile.am
-
-EXTRA_DIST =
-
-noinst_PROGRAMS =
-
-## shared/include
-if shared
-
-## shared/arm920
-noinst_PROGRAMS += shared/arm920.rel
-shared_arm920_rel_SOURCES = shared/arm920/mmu.c
-shared_arm920_rel_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/shared/src
-shared_arm920_rel_LDFLAGS = $(RTEMS_RELLDFLAGS)
-endif
-
-include $(top_srcdir)/../../../automake/local.am
diff --git a/c/src/lib/libcpu/arm/configure.ac b/c/src/lib/libcpu/arm/configure.ac
deleted file mode 100644
index a5e3e1cc88..0000000000
--- a/c/src/lib/libcpu/arm/configure.ac
+++ /dev/null
@@ -1,32 +0,0 @@
-## Process this file with autoconf to produce a configure script.
-
-AC_PREREQ([2.69])
-AC_INIT([rtems-c-src-lib-libcpu-arm],[_RTEMS_VERSION],[https://devel.rtems.org/newticket])
-AC_CONFIG_SRCDIR([shared])
-RTEMS_TOP([../../../../..],[../../..])
-RTEMS_SOURCE_TOP
-RTEMS_BUILD_TOP
-
-RTEMS_CANONICAL_TARGET_CPU
-
-AM_INIT_AUTOMAKE([no-define foreign subdir-objects 1.12.2])
-AM_MAINTAINER_MODE
-
-RTEMS_ENV_RTEMSBSP
-
-RTEMS_PROJECT_ROOT
-
-RTEMS_PROG_CC_FOR_TARGET
-AM_PROG_CC_C_O
-RTEMS_CANONICALIZE_TOOLS
-RTEMS_PROG_CCAS
-
-AM_CONDITIONAL(shared, test "$RTEMS_CPU_MODEL" = "arm1136" || \
- test "$RTEMS_CPU_MODEL" = "shared")
-
-RTEMS_AMPOLISH3
-
-# Explicitly list all Makefiles here
-AC_CONFIG_FILES([Makefile
-])
-AC_OUTPUT
diff --git a/c/src/lib/libcpu/arm/lpc22xx/irq/bsp_irq_asm.S b/c/src/lib/libcpu/arm/lpc22xx/irq/bsp_irq_asm.S
deleted file mode 100644
index 4aa7ea4698..0000000000
--- a/c/src/lib/libcpu/arm/lpc22xx/irq/bsp_irq_asm.S
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * LPC22XX/LPC21xx Intererrupt handler
- *
- * Modified by Ray <rayx.cn@gmail.com> 2006 from Jay Monkman's code
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.org/license/LICENSE.
- */
-#define __asm__
-
-/*
- * BSP specific interrupt handler for INT or FIQ. In here
- * you do determine which interrupt happened and call its
- * handler.
- * Called from ISR_Handler, It is better to write in C function
- */
- .globl bsp_interrupt_dispatch
-bsp_interrupt_dispatch :
-#ifdef __thumb__
- .code 16
-#endif
-
-/*
- * Look at interrupt status register to determine source.
- * From source, determine offset into expanded vector table
- * and load handler address into r0.
- */
-
- ldr r0, =0xFFFFF030 /* Read the vector number */
- ldr r0, [r0]
-#ifdef __thumb__
- push {lr}
- ldr r2, =IRQ_return /* prepare the return from handler */
- mov lr, r2
-#else
- stmdb sp!,{lr}
- ldr lr, =IRQ_return /* prepare the return from handler */
-#endif
-
-
- /*C code will be called*/
- mov pc, r0 /* EXECUTE INT HANDLER */
-
- /*
- * C code may come back from Thumb if --thumb-interwork flag is False
- * Add some veneer to make sure that code back to ARM
- */
-IRQ_return:
-#ifdef __thumb__
- pop {r1}
- bx r1
-#else
- ldmia sp!,{r1}
- mov pc, r1
-#endif
-
diff --git a/c/src/lib/libcpu/arm/lpc22xx/irq/bsp_irq_init.c b/c/src/lib/libcpu/arm/lpc22xx/irq/bsp_irq_init.c
deleted file mode 100644
index ae933f76d2..0000000000
--- a/c/src/lib/libcpu/arm/lpc22xx/irq/bsp_irq_init.c
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * NXP/Philips LPC22XX/LPC21xx Interrupt handler
- * Ray 2007 <rayx.cn@gmail.com> to support LPC ARM
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.org/license/LICENSE.
- */
-#include <irq.h>
-#include <bsp.h>
-#include <lpc22xx.h>
-
-
-/*
- * Interrupt system initialization. Disable interrupts, clear
- * any that are pending.
- */
-void BSP_rtems_irq_mngt_init(void)
-{
- long *vectorTable;
- int i;
-
- /* disable all interrupts */
- VICIntEnClr = 0xFFFFFFFF;
-
- vectorTable = (long *) VECTOR_TABLE;
- /* Initialize the vector table contents with default handler */
- for (i=0; i<BSP_MAX_INT; i++) {
- *(vectorTable + i) = (long)(default_int_handler);
- }
-
- /*
- * Set IRQHandler
- */
- IRQ_VECTOR_ADDR = 0xE59FF018; /* LDR PC,[PC,#0x18] instruction */
-
- /*
- * Set FIQHandler
- */
- FIQ_VECTOR_ADDR = 0xE59FF018; /* LDR PC,[PC,#0x18] instruction */
-
- /*
- * We does not need the next interrupt sources in the moment,
- * therefore jump to itself.
- */
- UNDEFINED_INSTRUCTION_VECTOR_ADDR = 0xEAFFFFFE;
- SOFTWARE_INTERRUPT_VECTOR_ADDR = 0xEAFFFFFE;
- PREFETCH_ABORT_VECTOR_ADDR = 0xEAFFFFFE;
-
- /*
- * In case we must find an ABORT error,
- * enable the next lines and set a breakpoint
- * in ABORTHandler.
- */
-#if 1
- DATA_ABORT_VECTOR_ADDR = 0xE59FF018;
-#endif
-
- /*
- * Init the Vectored Interrupt Controller (VIC)
- */
- VICProtection = 0;
- VICIntSelect = 0;
- VICVectAddr = 0;
-}
-
diff --git a/c/src/lib/libcpu/arm/pxa255/irq/bsp_irq_asm.S b/c/src/lib/libcpu/arm/pxa255/irq/bsp_irq_asm.S
deleted file mode 100644
index 5f39aedcc6..0000000000
--- a/c/src/lib/libcpu/arm/pxa255/irq/bsp_irq_asm.S
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * PXA255 Interrupt handler by Yang Xi <hiyangxi@gmail.com>
- * Copyright (c) 2004 by Jay Monkman <jtm@lopgindog.com>
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.org/license/LICENSE.
- */
-
-#define __asm__
-
- .globl bsp_interrupt_dispatch
-bsp_interrupt_dispatch :
-/*
- * Look at interrupt status register to determine source.
- * From source, determine offset into expanded vector table
- * and load vector into r0 and handler address into r1.
- */
- ldr r0,=0x40d00000
- ldr r1,[r0]
- clz r0,r1
- cmp r0,#32
- moveq pc,lr /*All zeros*/
- mov r2,#31
- sub r0,r2,r0
- ldr r2,=IRQ_table
- add r2,r2,r0,LSL #2
- ldr r1,[r2]
- mov pc,r1
-
-
diff --git a/c/src/lib/libcpu/arm/pxa255/irq/bsp_irq_init.c b/c/src/lib/libcpu/arm/pxa255/irq/bsp_irq_init.c
deleted file mode 100644
index aeabc1f145..0000000000
--- a/c/src/lib/libcpu/arm/pxa255/irq/bsp_irq_init.c
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- * PXA255 interrupt controller by Yang Xi <hiyangxi@gmail.com>
- * Copyright (c) 2004 by Jay Monkman <jtm@lopgindog.com>
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.org/license/LICENSE.
- */
-
-#include <irq.h>
-#include <bsp.h>
-#include <pxa255.h>
-
-void dummy_handler(rtems_irq_hdl_param unused)
-{
- printk("I am dummy handler\n");
-}
-
-void (*IRQ_table[PRIMARY_IRQS])(rtems_irq_hdl_param param);
-
-/*
- * Interrupt system initialization. Disable interrupts, clear
- * any that are pending.
- */
-void BSP_rtems_irq_mngt_init(void)
-{
- int i;
-
- /* Initialize the vector table contents with default handler */
- for (i=0; i<PRIMARY_IRQS; i++) {
- IRQ_table[i] = dummy_handler;
- }
-
- /* disable all interrupts */
- XSCALE_INT_ICMR = 0x0;
-
- /* Direct the interrupt to IRQ*/
- XSCALE_INT_ICLR = 0x0;
-}
-