mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 16:43:03 +01:00
Damian's patch for additional CPUs under linux
This commit is contained in:
parent
4677d74e9b
commit
14962fb831
22
configure.in
22
configure.in
@ -275,6 +275,28 @@ dnl CPU_TYPE=ppc64
|
||||
SHRLIB_EXT=so
|
||||
;;
|
||||
|
||||
hppa*-*-linux*)
|
||||
MAKEFILE_PREFIX=linux_generic
|
||||
INSTALL_PREFIX=linux
|
||||
PLATFORM=LINUX
|
||||
AC_DEFINE(LINUX, 1, [Define this if OS is Linux])
|
||||
AC_DEFINE(HPPA, 1, [Define this if CPU is HPPA])
|
||||
LOCK_MANAGER_FLG=Y
|
||||
EDITLINE_FLG=Y
|
||||
SHRLIB_EXT=so
|
||||
;;
|
||||
|
||||
alpha*-*-linux*)
|
||||
MAKEFILE_PREFIX=linux_generic
|
||||
INSTALL_PREFIX=linux
|
||||
PLATFORM=LINUX
|
||||
AC_DEFINE(LINUX, 1, [Define this if OS is Linux])
|
||||
AC_DEFINE(ALPHA, 1, [Define this if CPU is Alpha])
|
||||
LOCK_MANAGER_FLG=Y
|
||||
EDITLINE_FLG=Y
|
||||
SHRLIB_EXT=so
|
||||
;;
|
||||
|
||||
*-*-linux* | *-*-gnu*)
|
||||
MAKEFILE_PREFIX=linux_generic
|
||||
INSTALL_PREFIX=linux
|
||||
|
@ -46,6 +46,7 @@ static const UCHAR CpuS390x = 10;
|
||||
static const UCHAR CpuSh = 11;
|
||||
static const UCHAR CpuSheb = 12;
|
||||
static const UCHAR CpuHppa = 13;
|
||||
static const UCHAR CpuAlpha = 14;
|
||||
|
||||
static const UCHAR OsWindows = 0;
|
||||
static const UCHAR OsLinux = 1;
|
||||
@ -82,7 +83,8 @@ const char* hardware[] = {
|
||||
"s390x",
|
||||
"SH",
|
||||
"SHEB",
|
||||
"HPPA"
|
||||
"HPPA",
|
||||
"Alpha"
|
||||
};
|
||||
|
||||
const char* operatingSystem[] = {
|
||||
@ -109,22 +111,22 @@ const char* compiler[] = {
|
||||
// This table lists pre-fb3 imlementation codes
|
||||
const UCHAR backwardTable[FB_NELEM(hardware) * FB_NELEM(operatingSystem)] =
|
||||
{
|
||||
// Intel AMD Sparc PPC PPC64 MIPSEL MIPS ARM IA64 s390 s390x SH SHEB HPPA
|
||||
/* Windows */ 50, 68, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
/* Linux */ 60, 66, 65, 69, 0, 71, 72, 75, 76, 79, 78, 80, 81, 0,
|
||||
/* Darwin */ 70, 73, 0, 63, 77, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
/* Solaris */ 0, 0, 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
/* HPUX */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31,
|
||||
/* AIX */ 0, 0, 0, 35, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
/* MVS */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
/* FreeBSD */ 61, 67, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
/* NetBSD */ 62, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
|
||||
// Intel AMD Sparc PPC PPC64 MIPSEL MIPS ARM IA64 s390 s390x SH SHEB HPPA Alpha
|
||||
/* Windows */ 50, 68, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
/* Linux */ 60, 66, 65, 69, 0, 71, 72, 75, 76, 79, 78, 80, 81, 0, 0,
|
||||
/* Darwin */ 70, 73, 0, 63, 77, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
/* Solaris */ 0, 0, 30, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
/* HPUX */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 31, 0,
|
||||
/* AIX */ 0, 0, 0, 35, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
/* MVS */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
/* FreeBSD */ 61, 67, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
|
||||
/* NetBSD */ 62, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
|
||||
};
|
||||
|
||||
const UCHAR backEndianess[FB_NELEM(hardware)] =
|
||||
{
|
||||
// Intel AMD Sparc PPC PPC64 MIPSEL MIPS ARM IA64 s390 s390x SH SHEB HPPA
|
||||
0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1,
|
||||
// Intel AMD Sparc PPC PPC64 MIPSEL MIPS ARM IA64 s390 s390x SH SHEB HPPA Alpha
|
||||
0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1, 1, 0
|
||||
};
|
||||
|
||||
} // anonymous namespace
|
||||
|
@ -182,6 +182,16 @@
|
||||
#define RISC_ALIGNMENT
|
||||
#endif /* sheb */
|
||||
|
||||
#ifdef HPPA
|
||||
#define FB_CPU CpuHppa
|
||||
#define RISC_ALIGNMENT
|
||||
#endif /* hppa */
|
||||
|
||||
#ifdef ALPHA
|
||||
#define FB_CPU CpuAlpha
|
||||
#define RISC_ALIGNMENT
|
||||
#endif
|
||||
|
||||
#endif /* LINUX */
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user