source: rtems/c/src/lib/libbsp/arm/gba/include/asm_macros.h @ 3c7ed6b

4.104.114.84.9
Last change on this file since 3c7ed6b was 3c7ed6b, checked in by Joel Sherrill <joel.sherrill@…>, on Jul 6, 2005 at 6:46:04 PM

2005-07-06 Markku Puro <markku.puro@…>

  • .cvsignore, ChangeLog?, Makefile.am, README, bsp_specs, configure.ac, clock/clockdrv.c, console/conio.c, console/console.c, console/defaultfont.c, include/arm_mode_bits.h, include/asm_macros.h, include/bsp.h, include/bspopts.h.in, include/conio.h, include/gba.h, include/gba_registers.h, include/tm27.h, irq/bsp_irq_asm.S, irq/bsp_irq_init.c, irq/irq.c, irq/irq.h, irq/irq_asm.S, irq/irq_init.c, start/logo.S, start/start.S, startup/bspstart.c, startup/cpu.c, startup/cpu_asm.S, startup/exit.c, startup/linkcmds, timer/timer.c: New files.
  • Property mode set to 100644
File size: 1.8 KB
Line 
1/**
2 *  @file  asm_macros.h
3 *
4 *  This include file contains definitions related to the GBA BSP.
5 */
6/*
7 *  RTEMS GBA BSP
8 *
9 *  Copyright (c) 2004  Markku Puro <markku.puro@kopteri.net>
10 *
11 *  The license and distribution terms for this file may be
12 *  found in found in the file LICENSE in this distribution or at
13 *  http://www.rtems.com/license/LICENSE.
14 *
15 *  $Id$
16 */
17
18/*-----------------------------------------------------------------------------*
19 * Macros
20 *-----------------------------------------------------------------------------*/
21#ifdef __asm__
22#define PUBLIC_ARM_FUNCTION(label)   .global label ; \
23                                     .type label, function ; \
24                                     .arm ; \
25                                     label:
26
27#define PUBLIC_THUMB_FUNCTION(label) .global label ; \
28                                     .type label, function ; \
29                                     .thumb_func ; \
30                                     label:
31
32#define STATIC_ARM_FUNCTION(label)   .type label, function ; \
33                                     .arm ; \
34                                     label:
35
36#define STATIC_THUMB_FUNCTION(label) .type label, function ; \
37                                     .thumb_func ; \
38                                     label:
39
40#define OBJECT(label)                .global label ; \
41                                     .type label, object ; \
42                                     label:
43
44#define STATIC_OBJECT(label)         .type label, object ; \
45                                     label:
46
47#define WEAK_OBJECT(label)           .weak label ; \
48                                     .type label, object ; \
49                                     label:
50
51#define LABEL_END(label)             .L##label##_end: ; \
52                                     .size label, .L##label##_end - label
53
54#endif
Note: See TracBrowser for help on using the repository browser.