projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change ARCH_X86_64_h to ARCH_X86_64_H
[fio.git]
/
arch
/
arch.h
diff --git
a/arch/arch.h
b/arch/arch.h
index b4f26307c6eeee3bd34901091d1d668b59a5e587..043e2838b308f8b338c53d4464f395874eae024c 100644
(file)
--- a/
arch/arch.h
+++ b/
arch/arch.h
@@
-1,14
+1,8
@@
#ifndef ARCH_H
#define ARCH_H
#ifndef ARCH_H
#define ARCH_H
-#ifdef __WORDSIZE
-#define BITS_PER_LONG __WORDSIZE
-#else
-#define BITS_PER_LONG 32
-#endif
-
enum {
enum {
- arch_x86_64,
+ arch_x86_64
= 1
,
arch_i386,
arch_ppc,
arch_ia64,
arch_i386,
arch_ppc,
arch_ia64,
@@
-18,10
+12,26
@@
enum {
arch_sparc64,
arch_arm,
arch_sh,
arch_sparc64,
arch_arm,
arch_sh,
+ arch_hppa,
+ arch_mips,
+ arch_aarch64,
arch_generic,
arch_generic,
+
+ arch_nr,
};
};
+enum {
+ ARCH_FLAG_1 = 1 << 0,
+ ARCH_FLAG_2 = 1 << 1,
+ ARCH_FLAG_3 = 1 << 2,
+ ARCH_FLAG_4 = 1 << 3,
+};
+
+extern unsigned long arch_flags;
+
+#define ARCH_CPU_CLOCK_WRAPS
+
#if defined(__i386__)
#include "arch-x86.h"
#elif defined(__x86_64__)
#if defined(__i386__)
#include "arch-x86.h"
#elif defined(__x86_64__)
@@
-44,15
+54,22
@@
enum {
#include "arch-mips.h"
#elif defined(__sh__)
#include "arch-sh.h"
#include "arch-mips.h"
#elif defined(__sh__)
#include "arch-sh.h"
+#elif defined(__hppa__)
+#include "arch-hppa.h"
+#elif defined(__aarch64__)
+#include "arch-aarch64.h"
#else
#warning "Unknown architecture, attempting to use generic model."
#include "arch-generic.h"
#endif
#else
#warning "Unknown architecture, attempting to use generic model."
#include "arch-generic.h"
#endif
-#ifdef ARCH_HAVE_FFZ
-#define ffz(bitmask) arch_ffz(bitmask)
-#else
#include "../lib/ffz.h"
#include "../lib/ffz.h"
+
+#ifndef ARCH_HAVE_INIT
+static inline int arch_init(char *envp[])
+{
+ return 0;
+}
#endif
#endif
#endif
#endif