summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/arm/gba
diff options
context:
space:
mode:
authorThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2009-07-17 15:10:27 +0000
committerThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2009-07-17 15:10:27 +0000
commit72f6cb06dfbda8c7194050976e3a658c4da7112b (patch)
tree80dbfcf26d4155373c9a58264afd17b2d83b74d9 /c/src/lib/libbsp/arm/gba
parentUpdate. (diff)
downloadrtems-72f6cb06dfbda8c7194050976e3a658c4da7112b.tar.bz2
remove obsolete files
Diffstat (limited to 'c/src/lib/libbsp/arm/gba')
-rw-r--r--c/src/lib/libbsp/arm/gba/startup/cpu.c162
-rw-r--r--c/src/lib/libbsp/arm/gba/startup/cpu_asm.S86
2 files changed, 0 insertions, 248 deletions
diff --git a/c/src/lib/libbsp/arm/gba/startup/cpu.c b/c/src/lib/libbsp/arm/gba/startup/cpu.c
deleted file mode 100644
index 09dd679e74..0000000000
--- a/c/src/lib/libbsp/arm/gba/startup/cpu.c
+++ /dev/null
@@ -1,162 +0,0 @@
-/**
- * @file cpu.c
- *
- * ARM CPU Dependent Source.
- */
-/*
- * RTEMS GBA BSP
- *
- * COPYRIGHT (c) 2000 Canon Research Centre France SA.
- * Emmanuel Raguet, mailto:raguet@crf.canon.fr
- *
- * Copyright (c) 2002 Advent Networks, Inc
- * Jay Monkman <jmonkman@adventnetworks.com>
- *
- * Copyright (c) 2004
- * Markku Puro <markku.puro@kopteri.net>
- *
- * The license and distribution terms for this file may be
- * found in found in the file LICENSE in this distribution or at
- * http://www.rtems.com/license/LICENSE.
- *
- * $Id$
- */
-#include <stdint.h>
-#include <rtems/system.h>
-#include <rtems.h>
-#include <rtems/bspIo.h>
-#include <rtems/score/isr.h>
-#include <rtems/score/wkspace.h>
-#include <rtems/score/thread.h>
-#include <rtems/score/cpu.h>
-#include <arm_mode_bits.h>
-
-/**
- * @brief _CPU_Initialize routine performs processor dependent initialization
- */
-void _CPU_Initialize(void)
-{
-}
-
-/**
- * @brief _CPU_ISR_Get_level returns the current interrupt level
- *
- * @param None
- * @return int level
- */
-uint32_t _CPU_ISR_Get_level( void )
-{
- uint32_t reg = 0; /* to avoid warning */
-
- asm volatile ("mrs %0, cpsr \n" \
- "and %0, %0, #0xc0 \n" \
- : "=r" (reg) \
- : "0" (reg) );
- return reg;
-}
-
-
-/**
- * @brief _CPU_ISR_install_vector kernel routine installs the RTEMS handler for the
- * specified vector
- *
- * @param vector interrupt vector number
- * @param new_handler replacement ISR for this vector number
- * @param old_handler pointer to store former ISR for this vector number
- * @return None
- *
- * @todo Can't use exception vectors in GBA because they are already in GBA ROM BIOS!!
- */
-extern __inline__ void _CPU_ISR_install_vector(uint32_t vector, proc_ptr new_handler, proc_ptr *old_handler);
-
-/**
- * @brief _CPU_Context_Initialize kernel routine initialize the specified context
- *
- * @param the_context
- * @param stack_base
- * @param size
- * @param new_level
- * @param entry_point
- * @param is_fp
- * @return None
- */
-void _CPU_Context_Initialize(
- Context_Control *the_context,
- uint32_t *stack_base,
- uint32_t size,
- uint32_t new_level,
- void *entry_point,
- bool is_fp
-)
-{
- the_context->register_sp = (uint32_t)stack_base + size ;
- the_context->register_lr = (uint32_t)entry_point;
- the_context->register_cpsr = new_level | ModePriv;
-}
-
-
-/**
- * @brief _CPU_Install_interrupt_stack function is empty since the BSP must set up the interrupt stacks.
- *
- * @todo Can't use exception vectors in GBA because they are already in GBA ROM BIOS!!
- */
-extern __inline__ void _CPU_Install_interrupt_stack( void );
-
-/**
- * @brief _defaultExcHandler function is empty
- *
- * @todo Can't use exception vectors in GBA because they are already in GBA ROM BIOS!!
- */
-extern void _defaultExcHandler (CPU_Exception_frame *ctx);
-
-/**
- * @brief _currentExcHandler function is empty (_defaultExcHandler)
- *
- * @todo Can't use exception vectors in GBA because they are already in GBA ROM BIOS!!
- */
-cpuExcHandlerType _currentExcHandler = _defaultExcHandler;
-/*
-extern void _Exception_Handler_Undef_Swi();
-extern void _Exception_Handler_Abort();
-extern void _exc_data_abort();
-*/
-
-/**
- * @brief rtems_exception_init_mngt function is empty since the BSP must set up the interrupt stacks.
- *
- * @todo Can't use exception vectors in GBA because they are already in GBA ROM BIOS!!
- */
-extern __inline__ void rtems_exception_init_mngt(void);
-
-
-/**
- * @brief do_data_abort function is empty
- *
- * This function figure out what caused the data abort
- *
- * @todo Can't use exception vectors in GBA because they are already in GBA ROM BIOS!!
- * This function is supposed to figure out what caused the data abort, do that, then return.
- * All unhandled instructions cause the system to hang.
- */
-extern __inline__ void do_data_abort(uint32_t insn, uint32_t spsr, CPU_Exception_frame *ctx);
-
-
-/* @todo Can't use exception vectors in GBA because they are already in GBA ROM BIOS!! */
-/* @todo Remove dummy functions needed by linker
- ****************************************************************************************/
-/* @cond INCLUDE_ASM */
-asm (" .text");
-asm (" .arm");
-asm (" .global _CPU_ISR_install_vector");
-asm ("_CPU_ISR_install_vector:");
-asm (" .global _CPU_Install_interrupt_stack");
-asm ("_CPU_Install_interrupt_stack:");
-asm (" .global _defaultExcHandler");
-asm ("_defaultExcHandler:");
-asm (" .global rtems_exception_init_mngt");
-asm ("rtems_exception_init_mngt:");
-asm (" .global do_data_abort");
-asm ("do_data_abort:");
-asm (" mov pc, lr");
-/* @endcond */
-
diff --git a/c/src/lib/libbsp/arm/gba/startup/cpu_asm.S b/c/src/lib/libbsp/arm/gba/startup/cpu_asm.S
deleted file mode 100644
index d4ea836960..0000000000
--- a/c/src/lib/libbsp/arm/gba/startup/cpu_asm.S
+++ /dev/null
@@ -1,86 +0,0 @@
-/**
- * @file cpu_asm.S
- *
- * This file contains the implementation of exception handlers.
- */
-/*
- * RTEMS GBA BSP
- *
- * Copyright (c) 2002 by Advent Networks, Inc.
- * Jay Monkman <jmonkman@adventnetworks.com>
- *
- * COPYRIGHT (c) 2000 Canon Research Centre France SA.
- * Emmanuel Raguet, mailto:raguet@crf.canon.fr
- *
- * Copyright (c) 2004
- * Markku Puro <markku.puro@kopteri.net>
- *
- * The license and distribution terms for this file may be
- * found in found in the file LICENSE in this distribution or at
- * http://www.rtems.com/license/LICENSE.
- *
- * $Id$
- */
-
-#define __asm__
-#include <rtems/asm.h>
-#include <rtems/score/cpu_asm.h>
-#include <asm_macros.h>
-/* @cond INCLUDE_ASM */
-
-/**
- * This routine performs a normal non-FP context.
- * function void _CPU_Context_switch( run_context, heir_context )
- * R0 = run_context R1 = heir_context
- *
- * This function copies the current registers to where r0 points, then
- * restores the ones from where r1 points.
- *
- * Using the ldm/stm opcodes save 2-3 us on 100 MHz ARM9TDMI with
- * a 16 bit data bus.
- *
- */
- .align
-/* .section .iwram */
-PUBLIC_ARM_FUNCTION(_CPU_Context_switch)
-/* Start saving context */
- mrs r2, cpsr
- stmia r0, {r2, r4, r5, r6, r7, r8, r9, r10, r11, r13, r14}
-/* Start restoring context */
-_restore:
- ldmia r1, {r2, r4, r5, r6, r7, r8, r9, r10, r11, r13, r14}
- msr cpsr, r2
- mov pc, lr
-LABEL_END(_CPU_Context_switch)
-
-/**
- * This function copies the restores the registers from where r0 points.
- * function void _CPU_Context_restore( new_context )
- * It must match _CPU_Context_switch()
- *
- */
-PUBLIC_ARM_FUNCTION(_CPU_Context_restore)
- mov r1, r0
- b _restore
-LABEL_END(_CPU_Context_restore)
-
-/**
- * function _Exception_Handler_Undef_Swi
- * Can't use exception vectors in GBA
- * @todo _Exception_Handler_Undef_Swi: Unused handler needed by ../score/cpu_asm.S
- *
- */
- .global _Exception_Handler_Undef_Swi
-_Exception_Handler_Undef_Swi:
- mov pc, lr
-
-/**
- * function _Exception_Handler_Abort
- * Can't use exception vectors in GBA
- * @todo _Exception_Handler_Abort: Unused handler needed by ../score/cpu_asm.S
- *
- */
- .global _Exception_Handler_Abort
-_Exception_Handler_Abort:
- mov pc, lr
-/* @endcond */