1 #ifndef _ASM_IA64_ASMMACRO_H
2 #define _ASM_IA64_ASMMACRO_H
5 * Copyright (C) 2000-2001 Hewlett-Packard Co
6 * Copyright (C) 2000-2001 David Mosberger-Tang <davidm@hpl.hp.com>
14 #define GLOBAL_ENTRY(name) \
22 * Helper macros to make unwind directives more readable:
26 #define ASM_UNW_PRLG_RP 0x8
27 #define ASM_UNW_PRLG_PFS 0x4
28 #define ASM_UNW_PRLG_PSP 0x2
29 #define ASM_UNW_PRLG_PR 0x1
30 #define ASM_UNW_PRLG_GRSAVE(ninputs) (32+(ninputs))
33 * Helper macros for accessing user memory.
36 .section "__ex_table", "a" // declare section & section attributes
41 .xdata4 "__ex_table", @gprel(99f), @gprel(y); \
43 # define EXCLR(y,x...) \
44 .xdata4 "__ex_table", @gprel(99f), @gprel(y)+4; \
48 .xdata4 "__ex_table", @gprel(99f), @gprel(y); \
50 # define EXCLR(y,x...) \
51 .xdata4 "__ex_table", @gprel(99f), @gprel(y)+4; \
55 #endif /* _ASM_IA64_ASMMACRO_H */