Magellan Linux

Contents of /trunk/mkinitrd-magellan/klibc/usr/include/arch/arm/klibc/asmmacros.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 532 - (show annotations) (download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 8 months ago) by niro
File MIME type: text/plain
File size: 841 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd

1 /*
2 * usr/include/arch/arm/klibc/asmmacros.h
3 *
4 * Assembly macros used by ARM system call stubs
5 */
6
7 #ifndef _KLIBC_ASMMACROS_H
8 #define _KLIBC_ASMMACROS_H
9
10 /* An immediate in ARM can be any 8-bit value rotated by an even number of bits */
11
12 #define ARM_VALID_IMM(x) \
13 ((((x) & ~0x000000ff) == 0) || \
14 (((x) & ~0x000003fc) == 0) || \
15 (((x) & ~0x00000ff0) == 0) || \
16 (((x) & ~0x00003fc0) == 0) || \
17 (((x) & ~0x0000ff00) == 0) || \
18 (((x) & ~0x0003fc00) == 0) || \
19 (((x) & ~0x000ff000) == 0) || \
20 (((x) & ~0x003fc000) == 0) || \
21 (((x) & ~0x00ff0000) == 0) || \
22 (((x) & ~0x03fc0000) == 0) || \
23 (((x) & ~0x0ff00000) == 0) || \
24 (((x) & ~0x3fc00000) == 0) || \
25 (((x) & ~0xff000000) == 0) || \
26 (((x) & ~0xfc000003) == 0) || \
27 (((x) & ~0xf000000f) == 0) || \
28 (((x) & ~0xc000003f) == 0))
29
30 #endif /* _KLIBC_ASMMACROS_H */