RTEMS 5.2
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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/bfin.h>
41
42#ifndef __USER_LABEL_PREFIX__
51#define __USER_LABEL_PREFIX__ _
52#endif
53
54#ifndef __REGISTER_PREFIX__
63#define __REGISTER_PREFIX__
64#endif
65
66#include <rtems/concat.h>
67
69#define SYM(x) CONCAT1 (__USER_LABEL_PREFIX__, x)
70
72#define REG(x) CONCAT1 (__REGISTER_PREFIX__, x)
73
74/*
75 * define macros for all of the registers on this CPU
76 *
77 * EXAMPLE: #define d0 REG (d0)
78 */
79
80/*
81 * Define macros to handle section beginning and ends.
82 */
83
84
86#define BEGIN_CODE_DCL .text
88#define END_CODE_DCL
90#define BEGIN_DATA_DCL .data
92#define END_DATA_DCL
94#define BEGIN_CODE .text
96#define END_CODE
98#define BEGIN_DATA
100#define END_DATA
105#define BEGIN_BSS
107#define END_BSS
109#define END
110
117#define PUBLIC(sym) .globl SYM (sym)
118
125#define EXTERN(sym) .globl SYM (sym)
126
127#endif
Blackfin Set up Basic CPU Dependency Settings Based on Compiler Settings.