RTEMS CPU Kit with SuperCore  4.11.3
asm.h
Go to the documentation of this file.
1 
17 /*
18  * COPYRIGHT:
19  *
20  * This file is based on similar code found in newlib available
21  * from ftp.cygnus.com. The file which was used had no copyright
22  * notice. This file is freely distributable as long as the source
23  * of the file is noted. This file is:
24  *
25  * COPYRIGHT (c) 1994-2006.
26  * On-Line Applications Research Corporation (OAR).
27  */
28 
29 #ifndef _RTEMS_ASM_H
30 #define _RTEMS_ASM_H
31 
32 /*
33  * Indicate we are in an assembly file and get the basic CPU definitions.
34  */
35 
36 #ifndef ASM
37 #define ASM
38 #endif
39 #include <rtems/score/cpuopts.h>
40 #include <rtems/score/m32c.h>
41 
42 #ifndef __USER_LABEL_PREFIX__
43 
51 #define __USER_LABEL_PREFIX__ _
52 #endif
53 
54 #ifndef __REGISTER_PREFIX__
55 
60 #define __REGISTER_PREFIX__
61 #endif
62 
63 #include <rtems/concat.h>
64 
66 #define SYM(x) CONCAT1 (__USER_LABEL_PREFIX__, x)
67 
69 #define REG(x) CONCAT1 (__REGISTER_PREFIX__, x)
70 
71 /*
72  * define macros for all of the registers on this CPU
73  *
74  * EXAMPLE: #define d0 REG (d0)
75  */
76 
77 /*
78  * Define macros to handle section beginning and ends.
79  */
80 
81 
83 #define BEGIN_CODE_DCL .text
84 
85 #define END_CODE_DCL
86 
89 #define BEGIN_DATA_DCL .data
90 
91 #define END_DATA_DCL
92 
93 #define BEGIN_CODE .text
94 
95 #define END_CODE
96 
97 #define BEGIN_DATA
98 
99 #define END_DATA
100 
103 #define BEGIN_BSS
104 
105 #define END_BSS
106 
107 #define END
108 
115 #define PUBLIC(sym) .globl SYM (sym)
116 
122 #define EXTERN(sym) .globl SYM (sym)
123 
124 #endif
M32C Set up Basic CPU Dependency Settings Based on Compiler Settings.
This include file defines ANSI concatenation macros.