From: Nathaniel Wesley Filardo Date: Sun, 2 Nov 2014 06:22:52 +0000 (-0500) Subject: Add sparc_linux26 sysname and params X-Git-Tag: openafs-stable-1_8_0pre1~503 X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=c22e1797e8c200140f3885647d0ddcb901e8fc37 Add sparc_linux26 sysname and params A copy of sparc_linux24 without #undef USE_UCONTEXT. Userland tested on a Debian unstable-release machine. Change-Id: I69a4226622748b18f5835d6517297b2d3750586a Reviewed-on: http://gerrit.openafs.org/11567 Reviewed-by: Benjamin Kaduk Reviewed-by: Jeffrey Altman Tested-by: BuildBot --- diff --git a/src/config/afs_sysnames.h b/src/config/afs_sysnames.h index 8b9dd29..9aeea06 100644 --- a/src/config/afs_sysnames.h +++ b/src/config/afs_sysnames.h @@ -170,6 +170,7 @@ #define SYS_NAME_ID_sparc_linux2 1700 #define SYS_NAME_ID_sparc_linux22 1701 #define SYS_NAME_ID_sparc_linux24 1702 +#define SYS_NAME_ID_sparc_linux26 1703 #define SYS_NAME_ID_sparc64_linux2 1800 #define SYS_NAME_ID_sparc64_linux22 1801 diff --git a/src/config/param.sparc_linux26.h b/src/config/param.sparc_linux26.h new file mode 100644 index 0000000..349907e --- /dev/null +++ b/src/config/param.sparc_linux26.h @@ -0,0 +1,53 @@ +/* + * Copyright 2000, International Business Machines Corporation and others. + * All Rights Reserved. + * + * This software has been released under the terms of the IBM Public + * License. For details, see the LICENSE file in the top-level source + * directory or online at http://www.openafs.org/dl/license10.html + */ + +#ifndef AFS_PARAM_H +#define AFS_PARAM_H + +#ifndef UKERNEL +/* This section for kernel libafs compiles only */ +#define AFS_SPARC_LINUX20_ENV 1 +#define AFS_SPARC_LINUX22_ENV 1 +#define AFS_SPARC_LINUX24_ENV 1 + +#if defined(__KERNEL__) && !defined(KDUMP_KERNEL) +#if defined(AFS_SMP) && defined(CONFIG_MODVERSIONS) +/* hack, I don't know what else with theese symbols */ +#define _do_spin_lock _do_spin_lock_R__ver__do_spin_lock +#define _do_spin_unlock _do_spin_unlock_R__ver__do_spin_unlock +#define kernel_flag kernel_flag_R__ver_kernel_flag +#endif +#endif /* __KERNEL__ && !DUMP_KERNEL */ + +/* + * on sparclinux is O_LARGEFILE defined but there is not off64_t, + * so small hack to get usd_file.c work + */ +#ifndef KERNEL +#define __USE_FILE_OFFSET64 1 +#define __USE_LARGEFILE64 1 +#if !defined off64_t +#define off64_t __off64_t +#endif +#endif + +#else /* !defined(UKERNEL) */ + +/* This section for user space compiles only */ +#define UKERNEL 1 /* user space kernel */ + +#endif /* !defined(UKERNEL) */ + +/* Machine / Operating system information */ +#define SYS_NAME "sparc_linux26" +#define SYS_NAME_ID SYS_NAME_ID_sparc_linux26 +#define AFS_SYSCALL 227 +#define AFSBIG_ENDIAN 1 + +#endif /* AFS_PARAM_H */