summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/c4x/c4xsim/start
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--c/src/lib/libbsp/c4x/c4xsim/start/start.S71
-rw-r--r--c/src/lib/libbsp/c4x/c4xsim/startup/bsppretaskinghook.c19
-rw-r--r--c/src/lib/libbsp/c4x/c4xsim/startup/linkcmds86
-rw-r--r--c/src/lib/libbsp/c4x/c4xsim/startup/spurious.c33
4 files changed, 0 insertions, 209 deletions
diff --git a/c/src/lib/libbsp/c4x/c4xsim/start/start.S b/c/src/lib/libbsp/c4x/c4xsim/start/start.S
deleted file mode 100644
index 6addfa2037..0000000000
--- a/c/src/lib/libbsp/c4x/c4xsim/start/start.S
+++ /dev/null
@@ -1,71 +0,0 @@
-/*
- * This start.S is a combination of the files boot.s and crt0.s
- * provided by Herman ...XXX
- */
-
- ; .file "crt0.s"
- .ref _c_int00
- .global start
- .global _start
-
- .if .tms320C40
-
- .sect ".const"
-mem_control:
- .word 000100000h
-mem_data:
- .word 03ef78050h
-
- .text
-start:
-_start:
- ldi 0800h,st
- ldp @mem_control
- ldi @mem_control,ar0
- ldp @mem_data
- ldi @mem_data,r0
- sti r0,*+ar0(0)
- sti r0,*+ar0(4)
- br _c_int00
-
- .else
-
- .sect ".const"
-mem_control:
- .word 000808000h
-mem_data:
- .word 000001f00h
-
- .text
-start:
-_start:
- ldi 0800h,st
- ldp @mem_control
- ldi @mem_control,ar0
- ldp @mem_data
- ldi @mem_data,r0
- sti r0,*+ar0(0)
- sti r0,*+ar0(4)
- br _c_int00
-
- .endif
- ; .file "boot.s"
- .global __stack
- .global _c_int00
- .ref .bss
- .ref _boot_card
- .ref _exit
-
-__stack: .usect ".stack",0
- .text
-stack_addr: .word __stack
-
-_c_int00:
- ldp stack_addr
- ldi @stack_addr,sp
- ldi sp,ar3
- ldp .bss ; For the small model, set up the DP to .bss
- ldi 0,ar2 ; make sure cmdline=0 with regparm
- push ar2 ; and memparm
- call _boot_card
- call _sim_exit
diff --git a/c/src/lib/libbsp/c4x/c4xsim/startup/bsppretaskinghook.c b/c/src/lib/libbsp/c4x/c4xsim/startup/bsppretaskinghook.c
deleted file mode 100644
index d7674222c7..0000000000
--- a/c/src/lib/libbsp/c4x/c4xsim/startup/bsppretaskinghook.c
+++ /dev/null
@@ -1,19 +0,0 @@
-/*
- * COPYRIGHT (c) 1989-2008.
- * On-Line Applications Research Corporation (OAR).
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.com/license/LICENSE.
- *
- * $Id$
- */
-
-#include <bsp.h>
-
-extern void bsp_spurious_initialize();
-
-void bsp_pretasking_hook(void)
-{
- bsp_spurious_initialize();
-}
diff --git a/c/src/lib/libbsp/c4x/c4xsim/startup/linkcmds b/c/src/lib/libbsp/c4x/c4xsim/startup/linkcmds
deleted file mode 100644
index 46698ea4ba..0000000000
--- a/c/src/lib/libbsp/c4x/c4xsim/startup/linkcmds
+++ /dev/null
@@ -1,86 +0,0 @@
-/* OUTPUT_FORMAT("coff-c4x") */
- __STACK_SIZE = DEFINED(__STACK_SIZE) ? __STACK_SIZE : 0x1000;
- __ClockFrequency = DEFINED(_ClockFrequency) ? _ClockFrequency : 50;
-
-_RamBase = DEFINED(_RamBase) ? _RamBase : 0x0;
-_RamSize = DEFINED(_RamSize) ? _RamSize : 4M;
-_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x0;
-
-ENTRY(_start)
-SECTIONS
-{
- .vectors : {
- . += 4 * 64;
- }
- .text 0x200 : {
- *(.text)
-
- /*
- * Special FreeBSD sysctl sections.
- */
- . = ALIGN (16);
- __start_set_sysctl_set = .;
- *(set_sysctl_*);
- __stop_set_sysctl_set = ABSOLUTE(.);
- *(set_domain_*);
- *(set_pseudo_*);
-
- ___CTOR_LIST__ = .;
- LONG(___CTOR_END__ - ___CTOR_LIST__ - 2)
- *(.ctors)
- LONG(0);
- ___CTOR_END__ = .;
- ___DTOR_LIST__ = .;
- LONG(___DTOR_END__ - ___DTOR_LIST__ - 2)
- *(.dtors)
- LONG(0)
- ___DTOR_END__ = .;
- }
- .init : { *(.init) }
- .fini : { *(.fini) }
- .const :
- {
- *(.const)
- }
- .cinit :
- {
- *(.cinit)
- }
- .data :
- {
- *(.data)
- }
- .comms : {
- *(.comms)
- }
- .bss : {
-
- .bss = .;
- *(.bss)
- *(COMMON)
- }
- .stack :
- {
- *(.stack)
- . = . + __STACK_SIZE;
- }
- .heap :
- {
- _WorkAreaBase = .;
- }
-/*
- .sysmem :
- {
- *(.sysmem)
- }
-*/
- .stab 0 :
- {
- [ .stab ]
- }
- .stabstr 0 :
- {
- [ .stabstr ]
- }
-/* The TI tools sets cinit to -1 if the ram model is used. */
-}
diff --git a/c/src/lib/libbsp/c4x/c4xsim/startup/spurious.c b/c/src/lib/libbsp/c4x/c4xsim/startup/spurious.c
deleted file mode 100644
index 2eefe2ecf5..0000000000
--- a/c/src/lib/libbsp/c4x/c4xsim/startup/spurious.c
+++ /dev/null
@@ -1,33 +0,0 @@
-/*
- * CXX Simulator Spurious Trap Handler Assistant
- *
- * This is just enough of a trap handler to let us know what
- * the likely source of the trap was.
- *
- * COPYRIGHT (c) 1989-1999.
- * On-Line Applications Research Corporation (OAR).
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.com/license/LICENSE.
- *
- * $Id$
- */
-
-#include <bsp.h>
-#include <rtems/bspIo.h>
-#include <simio.h>
-
-/*
- * bsp_spurious_handler_assistant
- *
- * We can't recover so just return to gdb.
- */
-
-void bsp_spurious_handler_assistant(
- rtems_vector_number vector,
- CPU_Interrupt_frame *isf
-)
-{
- sim_exit();
-}