* need to be careful to avoid a name clashes.
*/
+#ifndef __ASSEMBLY__
+
typedef unsigned int umode_t;
/*
typedef __signed__ long __s64;
typedef unsigned long __u64;
+#endif /* __ASSEMBLY__ */
+
/*
* These aren't exported outside the kernel to avoid name space clashes
*/
#ifdef __KERNEL__
+#define BITS_PER_LONG 64
+
+#ifndef __ASSEMBLY__
+
typedef signed char s8;
typedef unsigned char u8;
typedef signed long s64;
typedef unsigned long u64;
-#define BITS_PER_LONG 64
-
typedef u64 dma_addr_t;
typedef u64 dma64_addr_t;
+#endif /* __ASSEMBLY__ */
#endif /* __KERNEL__ */
#endif /* _ALPHA_TYPES_H */
#ifndef __ASM_ARM_TYPES_H
#define __ASM_ARM_TYPES_H
+#ifndef __ASSEMBLY__
+
typedef unsigned short umode_t;
/*
typedef unsigned long long __u64;
#endif
+#endif /* __ASSEMBLY__ */
+
/*
* These aren't exported outside the kernel to avoid name space clashes
*/
#ifdef __KERNEL__
+#define BITS_PER_LONG 32
+
+#ifndef __ASSEMBLY__
+
typedef signed char s8;
typedef unsigned char u8;
typedef signed long long s64;
typedef unsigned long long u64;
-#define BITS_PER_LONG 32
-
/* Dma addresses are 32-bits wide. */
typedef u32 dma_addr_t;
typedef u32 dma64_addr_t;
+#endif /* __ASSEMBLY__ */
+
#endif /* __KERNEL__ */
#endif
#ifndef _ETRAX_TYPES_H
#define _ETRAX_TYPES_H
+#ifndef __ASSEMBLY__
+
typedef unsigned short umode_t;
/*
typedef unsigned long long __u64;
#endif
+#endif /* __ASSEMBLY__ */
+
/*
* These aren't exported outside the kernel to avoid name space clashes
*/
#ifdef __KERNEL__
+#define BITS_PER_LONG 32
+
+#ifndef __ASSEMBLY__
+
typedef signed char s8;
typedef unsigned char u8;
typedef signed long long s64;
typedef unsigned long long u64;
-#define BITS_PER_LONG 32
-
/* Dma addresses are 32-bits wide, just like our other addresses. */
typedef u32 dma_addr_t;
+#endif /* __ASSEMBLY__ */
+
#endif /* __KERNEL__ */
#endif
#ifndef _I386_TYPES_H
#define _I386_TYPES_H
+#ifndef __ASSEMBLY__
+
typedef unsigned short umode_t;
/*
typedef unsigned long long __u64;
#endif
+#endif /* __ASSEMBLY__ */
+
/*
* These aren't exported outside the kernel to avoid name space clashes
*/
#ifdef __KERNEL__
+#define BITS_PER_LONG 32
+
+#ifndef __ASSEMBLY__
+
#include <linux/config.h>
typedef signed char s8;
typedef signed long long s64;
typedef unsigned long long u64;
-#define BITS_PER_LONG 32
-
/* DMA addresses come in generic and 64-bit flavours. */
#ifdef CONFIG_HIGHMEM
#define HAVE_SECTOR_T
#endif
+#endif /* __ASSEMBLY__ */
+
#endif /* __KERNEL__ */
#endif
#ifdef __ASSEMBLY__
# define __IA64_UL(x) (x)
# define __IA64_UL_CONST(x) x
+
+# ifdef __KERNEL__
+# define BITS_PER_LONG 64
+# endif
+
#else
# define __IA64_UL(x) ((unsigned long)(x))
# define __IA64_UL_CONST(x) x##UL
* need to be careful to avoid a name clashes.
*/
+#ifndef __ASSEMBLY__
+
typedef unsigned short umode_t;
/*
typedef unsigned long long __u64;
#endif
+#endif /* __ASSEMBLY__ */
+
/*
* These aren't exported outside the kernel to avoid name space clashes
*/
#ifdef __KERNEL__
+#define BITS_PER_LONG 32
+
+#ifndef __ASSEMBLY__
+
typedef signed char s8;
typedef unsigned char u8;
typedef signed long long s64;
typedef unsigned long long u64;
-#define BITS_PER_LONG 32
-
/* DMA addresses are always 32-bits wide */
typedef u32 dma_addr_t;
typedef u32 dma64_addr_t;
+#endif /* __ASSEMBLY__ */
+
#endif /* __KERNEL__ */
#endif /* _M68K_TYPES_H */
* need to be careful to avoid a name clashes.
*/
+#ifndef __ASSEMBLY__
+
typedef unsigned short umode_t;
/*
typedef unsigned long long __u64;
#endif
+#endif /* __ASSEMBLY__ */
+
/*
* These aren't exported outside the kernel to avoid name space clashes
*/
#ifdef __KERNEL__
+#define BITS_PER_LONG 32
+
+#ifndef __ASSEMBLY__
+
typedef signed char s8;
typedef unsigned char u8;
typedef signed long long s64;
typedef unsigned long long u64;
-#define BITS_PER_LONG 32
-
/* Dma addresses are 32-bits wide. */
typedef u32 dma_addr_t;
+#endif /* __ASSEMBLY__ */
+
#endif /* __KERNEL__ */
#endif /* _M68K_TYPES_H */
#ifndef _ASM_TYPES_H
#define _ASM_TYPES_H
+#ifndef __ASSEMBLY__
+
typedef unsigned short umode_t;
/*
#endif
+#endif /* __ASSEMBLY__ */
+
/*
* These aren't exported outside the kernel to avoid name space clashes
*/
#ifdef __KERNEL__
+#define BITS_PER_LONG _MIPS_SZLONG
+
+#ifndef __ASSEMBLY__
+
typedef __signed char s8;
typedef unsigned char u8;
#endif
-#define BITS_PER_LONG _MIPS_SZLONG
-
typedef unsigned long dma_addr_t;
+#endif /* __ASSEMBLY__ */
+
#endif /* __KERNEL__ */
#endif /* _ASM_TYPES_H */
#ifndef _ASM_TYPES_H
#define _ASM_TYPES_H
+#ifndef __ASSEMBLY__
+
typedef unsigned int umode_t;
/*
#endif
+#endif /* __ASSEMBLY__ */
+
/*
* These aren't exported outside the kernel to avoid name space clashes
*/
#ifdef __KERNEL__
+#define BITS_PER_LONG _MIPS_SZLONG
+
+#ifndef __ASSEMBLY__
+
typedef __signed char s8;
typedef unsigned char u8;
#endif
-#define BITS_PER_LONG _MIPS_SZLONG
-
typedef unsigned long dma_addr_t;
+#endif /* __ASSEMBLY__ */
+
#endif /* __KERNEL__ */
#endif /* _ASM_TYPES_H */
#ifndef _PARISC_TYPES_H
#define _PARISC_TYPES_H
+#ifndef __ASSEMBLY__
+
typedef unsigned short umode_t;
/*
typedef unsigned long long __u64;
#endif
+#endif /* __ASSEMBLY__ */
+
/*
* These aren't exported outside the kernel to avoid name space clashes
*/
#ifdef __KERNEL__
+#ifdef __LP64__
+#define BITS_PER_LONG 64
+#else
+#define BITS_PER_LONG 32
+#endif
+
+#ifndef __ASSEMBLY__
+
typedef signed char s8;
typedef unsigned char u8;
typedef signed long long s64;
typedef unsigned long long u64;
-#ifdef __LP64__
-#define BITS_PER_LONG 64
-#else
-#define BITS_PER_LONG 32
-#endif
-
/* Dma addresses are 32-bits wide. */
typedef u32 dma_addr_t;
typedef u64 dma64_addr_t;
+#endif /* __ASSEMBLY__ */
+
#endif /* __KERNEL__ */
#endif
__u32 u[4];
} __attribute((aligned(16))) __vector128;
+/*
+ * XXX allowed outside of __KERNEL__ for now, until glibc gets
+ * a proper set of asm headers of its own. -- paulus
+ */
+typedef unsigned short umode_t;
+
+#endif /* __ASSEMBLY__ */
+
#ifdef __KERNEL__
/*
* These aren't exported outside the kernel to avoid name space clashes
*/
+#define BITS_PER_LONG 32
+
+#ifndef __ASSEMBLY__
+
typedef signed char s8;
typedef unsigned char u8;
typedef __vector128 vector128;
-#define BITS_PER_LONG 32
-
/* DMA addresses are 32-bits wide */
typedef u32 dma_addr_t;
typedef u64 dma64_addr_t;
#define HAVE_SECTOR_T
#endif
-#endif /* __KERNEL__ */
-
-/*
- * XXX allowed outside of __KERNEL__ for now, until glibc gets
- * a proper set of asm headers of its own. -- paulus
- */
-typedef unsigned short umode_t;
-
#endif /* __ASSEMBLY__ */
+#endif /* __KERNEL__ */
+
#endif
__u32 u[4];
} __attribute((aligned(16))) __vector128;
+#endif /* __ASSEMBLY__ */
+
#ifdef __KERNEL__
/*
* These aren't exported outside the kernel to avoid name space clashes
*/
+#define BITS_PER_LONG 64
+
+#ifndef __ASSEMBLY__
+
typedef signed char s8;
typedef unsigned char u8;
typedef __vector128 vector128;
-#define BITS_PER_LONG 64
-
typedef u32 dma_addr_t;
typedef u64 dma64_addr_t;
-#endif /* __KERNEL__ */
#endif /* __ASSEMBLY__ */
+#endif /* __KERNEL__ */
+
#endif /* _PPC64_TYPES_H */
#ifndef _S390_TYPES_H
#define _S390_TYPES_H
+#ifndef __ASSEMBLY__
+
typedef unsigned short umode_t;
/*
*/
typedef __u32 addr_t;
typedef __s32 saddr_t;
+
+#endif /* __ASSEMBLY__ */
+
/*
* These aren't exported outside the kernel to avoid name space clashes
*/
#ifdef __KERNEL__
+#define BITS_PER_LONG 32
+
+#ifndef __ASSEMBLY__
+
typedef signed char s8;
typedef unsigned char u8;
typedef signed long long s64;
typedef unsigned long long u64;
-#define BITS_PER_LONG 32
-
typedef u32 dma_addr_t;
typedef union {
#define HAVE_SECTOR_T
#endif
+#endif /* __ASSEMBLY__ */
+
#endif /* __KERNEL__ */
#endif
#ifndef _S390_TYPES_H
#define _S390_TYPES_H
+#ifndef __ASSEMBLY__
+
typedef unsigned short umode_t;
/*
typedef unsigned long addr_t;
typedef signed long saddr_t;
+#endif /* __ASSEMBLY__ */
+
/*
* These aren't exported outside the kernel to avoid name space clashes
*/
#ifdef __KERNEL__
+#define BITS_PER_LONG 64
+
+#ifndef __ASSEMBLY__
+
typedef signed char s8;
typedef unsigned char u8;
typedef signed long s64;
typedef unsigned long u64;
-#define BITS_PER_LONG 64
-
typedef u32 dma_addr_t;
+#endif /* __ASSEMBLY__ */
+
#endif /* __KERNEL__ */
#endif
#ifndef __ASM_SH_TYPES_H
#define __ASM_SH_TYPES_H
+#ifndef __ASSEMBLY__
+
typedef unsigned short umode_t;
/*
typedef unsigned long long __u64;
#endif
+#endif /* __ASSEMBLY__ */
+
/*
* These aren't exported outside the kernel to avoid name space clashes
*/
#ifdef __KERNEL__
+#define BITS_PER_LONG 32
+
+#ifndef __ASSEMBLY__
+
typedef __signed__ char s8;
typedef unsigned char u8;
typedef __signed__ long long s64;
typedef unsigned long long u64;
-#define BITS_PER_LONG 32
-
/* Dma addresses are 32-bits wide. */
typedef u32 dma_addr_t;
+#endif /* __ASSEMBLY__ */
+
#endif /* __KERNEL__ */
#endif /* __ASM_SH_TYPES_H */
* need to be careful to avoid a name clashes.
*/
+#ifndef __ASSEMBLY__
+
typedef unsigned short umode_t;
typedef __signed__ char __s8;
typedef __signed__ long long __s64;
typedef unsigned long long __u64;
+#endif /* __ASSEMBLY__ */
+
#ifdef __KERNEL__
+#define BITS_PER_LONG 32
+
+#ifndef __ASSEMBLY__
+
typedef __signed__ char s8;
typedef unsigned char u8;
typedef __signed__ long long s64;
typedef unsigned long long u64;
-#define BITS_PER_LONG 32
-
typedef u32 dma_addr_t;
typedef u32 dma64_addr_t;
+#endif /* __ASSEMBLY__ */
+
#endif /* __KERNEL__ */
#endif /* defined(_SPARC_TYPES_H) */
* need to be careful to avoid a name clashes.
*/
+#ifndef __ASSEMBLY__
+
typedef unsigned short umode_t;
/*
typedef __signed__ long __s64;
typedef unsigned long __u64;
+#endif /* __ASSEMBLY__ */
+
#ifdef __KERNEL__
+#define BITS_PER_LONG 64
+
+#ifndef __ASSEMBLY__
+
typedef __signed__ char s8;
typedef unsigned char u8;
typedef __signed__ long s64;
typedef unsigned long u64;
-#define BITS_PER_LONG 64
-
/* Dma addresses come in generic and 64-bit flavours. */
typedef u32 dma_addr_t;
typedef u64 dma64_addr_t;
+#endif /* __ASSEMBLY__ */
+
#endif /* __KERNEL__ */
#endif /* defined(_SPARC64_TYPES_H) */
typedef unsigned long long __u64;
#endif
+#endif /* !__ASSEMBLY__ */
+
/*
* These aren't exported outside the kernel to avoid name space clashes
*/
#ifdef __KERNEL__
+#define BITS_PER_LONG 32
+
+#ifndef __ASSEMBLY__
+
typedef signed char s8;
typedef unsigned char u8;
typedef signed long long s64;
typedef unsigned long long u64;
-#define BITS_PER_LONG 32
-
/* Dma addresses are 32-bits wide. */
typedef u32 dma_addr_t;
-#endif /* __KERNEL__ */
-
#endif /* !__ASSEMBLY__ */
+#endif /* __KERNEL__ */
+
#endif /* __V850_TYPES_H__ */
#ifndef _X86_64_TYPES_H
#define _X86_64_TYPES_H
+#ifndef __ASSEMBLY__
+
typedef unsigned short umode_t;
/*
typedef __signed__ long long __s64;
typedef unsigned long long __u64;
+#endif /* __ASSEMBLY__ */
+
/*
* These aren't exported outside the kernel to avoid name space clashes
*/
#ifdef __KERNEL__
+#define BITS_PER_LONG 64
+
+#ifndef __ASSEMBLY__
+
typedef signed char s8;
typedef unsigned char u8;
typedef signed long long s64;
typedef unsigned long long u64;
-#define BITS_PER_LONG 64
-
typedef u64 dma64_addr_t;
typedef u64 dma_addr_t;
#define HAVE_SECTOR_T
#endif
+#endif /* __ASSEMBLY__ */
+
#endif /* __KERNEL__ */
#endif
int i, valid = 0;
char *prev;
+ printf("#include <asm/types.h>\n");
+ printf("#if BITS_PER_LONG == 64\n");
+ printf("#define PTR .quad\n");
+ printf("#define ALGN .align 8\n");
+ printf("#else\n");
+ printf("#define PTR .long\n");
+ printf("#define ALGN .align 4\n");
+ printf("#endif\n");
+
printf(".data\n");
printf(".globl kallsyms_addresses\n");
- printf("\t.align 8\n");
+ printf("\tALGN\n");
printf("kallsyms_addresses:\n");
for (i = 0, last_addr = 0; i < cnt; i++) {
if (!symbol_valid(&table[i]))
if (table[i].addr == last_addr)
continue;
- printf("\t.long\t%#llx\n", table[i].addr);
+ printf("\tPTR\t%#llx\n", table[i].addr);
valid++;
last_addr = table[i].addr;
}
printf("\n");
printf(".globl kallsyms_num_syms\n");
- printf("\t.align 8\n");
+ printf("\tALGN\n");
printf("kallsyms_num_syms:\n");
- printf("\t.long\t%d\n", valid);
+ printf("\tPTR\t%d\n", valid);
printf("\n");
printf(".globl kallsyms_names\n");
- printf("\t.align 8\n");
+ printf("\tALGN\n");
printf("kallsyms_names:\n");
prev = "";
for (i = 0, last_addr = 0; i < cnt; i++) {