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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [CORTEX_LM3S316_IAR/] [hw_include/] [asmdefs.h] - Blame information for rev 581

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 581 jeremybenn
//*****************************************************************************
2
//
3
// asmdefs.h - Macros to allow assembly code be portable among toolchains.
4
//
5
// Copyright (c) 2005,2006 Luminary Micro, Inc.  All rights reserved.
6
//
7
// Software License Agreement
8
//
9
// Luminary Micro, Inc. (LMI) is supplying this software for use solely and
10
// exclusively on LMI's Stellaris Family of microcontroller products.
11
//
12
// The software is owned by LMI and/or its suppliers, and is protected under
13
// applicable copyright laws.  All rights are reserved.  Any use in violation
14
// of the foregoing restrictions may subject the user to criminal sanctions
15
// under applicable laws, as well as to civil liability for the breach of the
16
// terms and conditions of this license.
17
//
18
// THIS SOFTWARE IS PROVIDED "AS IS".  NO WARRANTIES, WHETHER EXPRESS, IMPLIED
19
// OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
20
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
21
// LMI SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
22
// CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
23
//
24
// This is part of revision 635 of the Stellaris Driver Library.
25
//
26
//*****************************************************************************
27
 
28
#ifndef __ASMDEFS_H__
29
#define __ASMDEFS_H__
30
 
31
//*****************************************************************************
32
//
33
// The defines required for EW-ARM.
34
//
35
//*****************************************************************************
36
#ifdef ewarm
37
 
38
//
39
// Section headers.
40
//
41
#define __TEXT__                rseg CODE:CODE(2)
42
#define __DATA__                rseg DATA:DATA(2)
43
#define __BSS__                 rseg DATA:DATA(2)
44
 
45
//
46
// Assembler nmenonics.
47
//
48
#define __ALIGN__               alignrom 4
49
#define __END__                 end
50
#define __EXPORT__              export
51
#define __IMPORT__              import
52
#define __LABEL__
53
#define __STR__                 dcb
54
#define __THUMB_LABEL__
55
#define __WORD__                dcd
56
 
57
#endif // ewarm
58
 
59
//*****************************************************************************
60
//
61
// The defines required for GCC.
62
//
63
//*****************************************************************************
64
#ifdef gcc
65
 
66
//
67
// The assembly code preamble required to put the assembler into the correct
68
// configuration.
69
//
70
    .syntax unified
71
    .thumb
72
 
73
//
74
// Section headers.
75
//
76
#define __TEXT__                .text
77
#define __DATA__                .data
78
#define __BSS__                 .bss
79
 
80
//
81
// Assembler nmenonics.
82
//
83
#define __ALIGN__               .balign 4
84
#define __END__                 .end
85
#define __EXPORT__              .globl
86
#define __IMPORT__              .extern
87
#define __LABEL__               :
88
#define __STR__                 .ascii
89
#define __THUMB_LABEL__         .thumb_func
90
#define __WORD__                .word
91
 
92
#endif // gcc
93
 
94
//*****************************************************************************
95
//
96
// The defines required for RV-MDK.
97
//
98
//*****************************************************************************
99
#ifdef rvmdk
100
 
101
//
102
// The assembly code preamble required to put the assembler into the correct
103
// configuration.
104
//
105
    thumb
106
    require8
107
    preserve8
108
 
109
//
110
// Section headers.
111
//
112
#define __TEXT__                area ||.text||, code, readonly, align=2
113
#define __DATA__                area ||.data||, data, align=2
114
#define __BSS__                 area ||.bss||, noinit, align=2
115
 
116
//
117
// Assembler nmenonics.
118
//
119
#define __ALIGN__               align 4
120
#define __END__                 end
121
#define __EXPORT__              export
122
#define __IMPORT__              import
123
#define __LABEL__
124
#define __STR__                 dcb
125
#define __THUMB_LABEL__
126
#define __WORD__                dcd
127
 
128
#endif // rvmdk
129
 
130
#endif // __ASMDEF_H__

powered by: WebSVN 2.1.0

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