OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgcc/] [config/] [picochip/] [longjmp.S] - Blame information for rev 833

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 734 jeremybenn
// picoChip ASM file
2
//
3
//   Support for 32-bit arithmetic shift right.
4
//
5
//   Copyright (C) 2003, 2004, 2005, 2008, 2009  Free Software Foundation, Inc.
6
//   Contributed by Picochip Ltd.
7
//   Maintained by Hariharan Sandanagobalane (hariharan@picochip.com)
8
//
9
//   This file is free software; you can redistribute it and/or modify it
10
//   under the terms of the GNU General Public License as published by the
11
//   Free Software Foundation; either version 3, or (at your option) any
12
//   later version.
13
//
14
//   This file is distributed in the hope that it will be useful, but
15
//   WITHOUT ANY WARRANTY; without even the implied warranty of
16
//   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17
//   General Public License for more details.
18
//
19
//   Under Section 7 of GPL version 3, you are granted additional
20
//   permissions described in the GCC Runtime Library Exception, version
21
//   3.1, as published by the Free Software Foundation.
22
//
23
//   You should have received a copy of the GNU General Public License and
24
//   a copy of the GCC Runtime Library Exception along with this program;
25
//   see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
26
//   .
27
 
28
.section .text
29
 
30
.global _longjmp
31
_longjmp:
32
_picoMark_FUNCTION_BEGIN=
33
 
34
// picoChip Function Prologue : &_longjmp = 0 bytes
35
 
36
        LDL (R0)0, R[3:2]
37
        LDL (R0)1, R[5:4]
38
        LDL (R0)2, R[7:6]
39
        LDL (R0)3, R[9:8]
40
        LDL (R0)4, R[11:10]
41
        LDL (R0)5, R[13:12]
42
        LDW (R0)12, R14
43
        LDW (R0)13, R1
44
        JR (R12)
45
=->     COPY.0 1,R0
46
 
47
// picoChip Function Epilogue : longjmp
48
//============================================================================
49
// All DWARF information between this marker, and the END OF DWARF
50
// marker should be included in the source file. Search for
51
// FUNCTION_STACK_SIZE_GOES_HERE and FUNCTION NAME GOES HERE, and
52
// provide the relevent information. Add markers called
53
// _picoMark_FUNCTION_BEGIN and _picoMark_FUNCTION_END around the
54
// function in question.
55
//============================================================================
56
 
57
//============================================================================
58
// Frame information.
59
//============================================================================
60
 
61
.section .debug_frame
62
_picoMark_DebugFrame=
63
 
64
// Common CIE header.
65
.unalignedInitLong _picoMark_CieEnd-_picoMark_CieBegin
66
_picoMark_CieBegin=
67
.unalignedInitLong 0xffffffff
68
.initByte 0x1   // CIE Version
69
.ascii 16#0#    // CIE Augmentation
70
.uleb128 0x1    // CIE Code Alignment Factor
71
.sleb128 2      // CIE Data Alignment Factor
72
.initByte 0xc   // CIE RA Column
73
.initByte 0xc   // DW_CFA_def_cfa
74
.uleb128 0xd
75
.uleb128 0x0
76
.align 2
77
_picoMark_CieEnd=
78
 
79
// FDE
80
_picoMark_LSFDE0I900821033007563=
81
.unalignedInitLong _picoMark_FdeEnd-_picoMark_FdeBegin
82
_picoMark_FdeBegin=
83
.unalignedInitLong _picoMark_DebugFrame // FDE CIE offset
84
.unalignedInitWord _picoMark_FUNCTION_BEGIN     // FDE initial location
85
.unalignedInitWord _picoMark_FUNCTION_END-_picoMark_FUNCTION_BEGIN
86
.initByte 0xe   // DW_CFA_def_cfa_offset
87
.uleb128 0x0    // <-- FUNCTION_STACK_SIZE_GOES_HERE
88
.initByte 0x4   // DW_CFA_advance_loc4
89
.unalignedInitLong _picoMark_FUNCTION_END-_picoMark_FUNCTION_BEGIN
90
.initByte 0xe   // DW_CFA_def_cfa_offset
91
.uleb128 0x0
92
.align 2
93
_picoMark_FdeEnd=
94
 
95
//============================================================================
96
// Abbrevation information.
97
//============================================================================
98
 
99
.section .debug_abbrev
100
_picoMark_ABBREVIATIONS=
101
 
102
.section .debug_abbrev
103
        .uleb128 0x1    // (abbrev code)
104
        .uleb128 0x11   // (TAG: DW_TAG_compile_unit)
105
        .initByte 0x1   // DW_children_yes
106
        .uleb128 0x10   // (DW_AT_stmt_list)
107
        .uleb128 0x6    // (DW_FORM_data4)
108
        .uleb128 0x12   // (DW_AT_high_pc)
109
        .uleb128 0x1    // (DW_FORM_addr)
110
        .uleb128 0x11   // (DW_AT_low_pc)
111
        .uleb128 0x1    // (DW_FORM_addr)
112
        .uleb128 0x25   // (DW_AT_producer)
113
        .uleb128 0x8    // (DW_FORM_string)
114
        .uleb128 0x13   // (DW_AT_language)
115
        .uleb128 0x5    // (DW_FORM_data2)
116
        .uleb128 0x3    // (DW_AT_name)
117
        .uleb128 0x8    // (DW_FORM_string)
118
.initByte 0x0
119
.initByte 0x0
120
 
121
        .uleb128 0x2    ;# (abbrev code)
122
        .uleb128 0x2e   ;# (TAG: DW_TAG_subprogram)
123
.initByte 0x0   ;# DW_children_no
124
        .uleb128 0x3    ;# (DW_AT_name)
125
        .uleb128 0x8    ;# (DW_FORM_string)
126
        .uleb128 0x11   ;# (DW_AT_low_pc)
127
        .uleb128 0x1    ;# (DW_FORM_addr)
128
        .uleb128 0x12   ;# (DW_AT_high_pc)
129
        .uleb128 0x1    ;# (DW_FORM_addr)
130
.initByte 0x0
131
.initByte 0x0
132
 
133
.initByte 0x0
134
 
135
//============================================================================
136
// Line information. DwarfLib requires this to be present, but it can
137
// be empty.
138
//============================================================================
139
 
140
.section .debug_line
141
_picoMark_LINES=
142
 
143
//============================================================================
144
// Debug Information
145
//============================================================================
146
.section .debug_info
147
 
148
//Fixed header.
149
.unalignedInitLong _picoMark_DEBUG_INFO_END-_picoMark_DEBUG_INFO_BEGIN
150
_picoMark_DEBUG_INFO_BEGIN=
151
.unalignedInitWord 0x2
152
.unalignedInitLong _picoMark_ABBREVIATIONS
153
.initByte 0x2
154
 
155
// Compile unit information.
156
.uleb128 0x1    // (DIE 0xb) DW_TAG_compile_unit)
157
.unalignedInitLong _picoMark_LINES
158
.unalignedInitWord _picoMark_FUNCTION_END
159
.unalignedInitWord _picoMark_FUNCTION_BEGIN
160
// Producer is `picoChip'
161
.ascii 16#70# 16#69# 16#63# 16#6f# 16#43# 16#68# 16#69# 16#70# 16#00#
162
.unalignedInitWord 0xcafe // ASM language
163
.ascii 16#0# // Name. DwarfLib expects this to be present.
164
 
165
.uleb128 0x2    ;# (DIE DW_TAG_subprogram)
166
 
167
// FUNCTION NAME GOES HERE. Use `echo name | od -t x1' to get the hex. Each hex
168
// digit is specified using the format 16#XX#
169
.ascii 16#6c# 16#6f# 16#6e# 16#67# 16#6a# 16#6d# 16#70# 16#0# // Function name `longjmp'
170
.unalignedInitWord _picoMark_FUNCTION_BEGIN     // DW_AT_low_pc
171
.unalignedInitWord _picoMark_FUNCTION_END       // DW_AT_high_pc
172
 
173
.initByte 0x0   // end of compile unit children.
174
 
175
_picoMark_DEBUG_INFO_END=
176
 
177
//============================================================================
178
// END OF DWARF
179
//============================================================================
180
 
181
.section .endFile
182
// End of picoChip ASM file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.