Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2006-10-08 00:08:48 +0400
committerNathan Sidwell <nathan@codesourcery.com>2006-10-08 00:08:48 +0400
commitd36ae2cec9355bd721f470cf4924c01fa3be04f7 (patch)
tree71bfeef819cda1fa27d095e2ed5cc2f70cb96b60 /libgloss/m68k/cf-crt0.S
parent92859c43ce9afb1ee0c5c8e0d2ab92276d4afc70 (diff)
* m68k/Makefile.in: Adjust Coldfire rules. (BDM_CRT0, BDM_BSP, BDM_OBJS, BDM_ISRS): Rename to ... (CF_CRT0, CF_BSP, CF_OBJS, CF_ISRS): ... here. Adjust. (BDM_OTHER_OBJS): Remove. (BDM_SYSOBJS): Rename to ... (UNHOSTED_OBJS): ... here. Adjust. (UNHOSTED_BSP, HOSTED_OBJS, HOSTED_BSP): New. (CF_HOSTED_SCRIPTS): New. (CF_SCRIPTS, CF_SOURCES): Adjust. * m68k/cf.sc: Add IO library variable. * m68k/bdm-crt0.S, m68k/bdm-crt1.c, m68k/bdm-isrs.c, m68k/bdm-sbrk.c, m68k/bdm-semihost.S: Rename to ... * m68k/cf-crt0.S, m68k/cf-crt1.c, m68k/cf-isrs.c, m68k/cf-sbrk.c, m68k/cf-hosted.S: ... here. * m68k/cf-exit.c: New. * m68k/bdm-gdb.h, m68k/bdm-semihost.h: Merge into ... * m68k/io.h: ... here. Add unhosted support. Adjust conversion function names. * m68k/bdm-gdb.c: Rename to ... * m68k/io-gdb.c: ... here. Adjust names of conversion functions. * m68k/bdm-close.c, m68k/bdm-exit.c, m68k/bdm-fstat.c, m68k/bdm-gettimeofday.c, m68k/bdm-isatty.c, m68k/bdm-lseek.c, m68k/bdm-open.c, m68k/bdm-read.c, m68k/bdm-rename.c, m68k/bdm-stat.c, m68k/bdm-system.c, m68k/bdm-time.c, m68k/bdm-unlink.c, m68k/bdm-write.c: Rename to ... * m68k/io-close.c, m68k/io-exit.c, m68k/io-fstat.c, m68k/io-gettimeofday.c, m68k/io-isatty.c, m68k/io-lseek.c, m68k/io-open.c, m68k/io-read.c, m68k/io-rename.c, m68k/io-stat.c, m68k/io-system.c, m68k/io-time.c, m68k/io-unlink.c, m68k/io-write.c: ... here. Include io.h. Adjust for hosted & unhosted libraries. Adjust names of gdb conversion functions.
Diffstat (limited to 'libgloss/m68k/cf-crt0.S')
-rw-r--r--libgloss/m68k/cf-crt0.S85
1 files changed, 85 insertions, 0 deletions
diff --git a/libgloss/m68k/cf-crt0.S b/libgloss/m68k/cf-crt0.S
new file mode 100644
index 000000000..a61919a4f
--- /dev/null
+++ b/libgloss/m68k/cf-crt0.S
@@ -0,0 +1,85 @@
+/* The interrupt table.
+ *
+ * Copyright (c) 2006 CodeSourcery Inc
+ *
+ * The authors hereby grant permission to use, copy, modify, distribute,
+ * and license this software and its documentation for any purpose, provided
+ * that existing copyright notices are retained in all copies and that this
+ * notice is included verbatim in any distributions. No written agreement,
+ * license, or royalty fee is required for any of the authorized uses.
+ * Modifications to this software may be copyrighted by their authors
+ * and need not follow the licensing terms described here, provided that
+ * the new terms are clearly indicated on the first page of each file where
+ * they apply.
+ */
+
+ #include "asm.h"
+ .text
+
+ .globl __interrupt_vector
+__interrupt_vector:
+ .long __stack /* 0 */
+ .long __reset /* 1 */
+ .long __access_error /* 2 */
+ .long __address_error /* 3 */
+ .long __illegal_instruction /* 4 */
+ .long __divide_by_zero /* 5 */
+ .long __other_interrupt /* 6 */
+ .long __other_interrupt /* 7 */
+ .long __privilege_violation /* 8 */
+ .long __trace /* 9 */
+ .long __unimplemented_line_a_opcode /* 10 */
+ .long __unimplemented_line_f_opcode /* 11 */
+ .long __non_pc_breakpoint_debug_interrupt /* 12 */
+ .long __pc_breakpoint_debug_interrupt /* 13 */
+ .long __format_error /* 14 */
+ .rept 24 - 15
+ .long __other_interrupt /* [15,24) */
+ .endr
+ .long __spurious_interrupt /* 24 */
+ .rept 32 - 25
+ .long __other_interrupt /* [25,32) */
+ .endr
+ .long __trap0 /* 32 */
+ .long __trap1 /* 33 */
+ .long __trap2 /* 34 */
+ .long __trap3 /* 35 */
+ .long __trap4 /* 36 */
+ .long __trap5 /* 37 */
+ .long __trap6 /* 38 */
+ .long __trap7 /* 39 */
+ .long __trap8 /* 40 */
+ .long __trap9 /* 41 */
+ .long __trap10 /* 42 */
+ .long __trap11 /* 43 */
+ .long __trap12 /* 44 */
+ .long __trap13 /* 45 */
+ .long __trap14 /* 46 */
+ .long __trap15 /* 47 */
+ .long __fp_branch_unordered /* 48 */
+ .long __fp_inexact_result /* 49 */
+ .long __fp_divide_by_zero /* 50 */
+ .long __fp_underflow /* 51 */
+ .long __fp_operand_error /* 52 */
+ .long __fp_overflow /* 53 */
+ .long __fp_input_not_a_number /* 54 */
+ .long __fp_input_denormalized_number /* 55 */
+ .rept 61 - 56
+ .long __other_interrupt /* [56,61) */
+ .endr
+ .long __unsupported_instruction /* 61 */
+ .rept 64 - 62
+ .long __other_interrupt /* [62,64) */
+ .endr
+ .rept 256-64
+ .long __other_interrupt /* [64,256) */
+ .endr
+
+ .extern __stack
+ .extern __start1
+ .globl __start
+__start:
+ /* Initialize stack */
+ movel IMM(__stack), sp
+ movel IMM(0), fp
+ jmp __start1