pkgsrc/filesystems/openafs/patches/patch-src_lwp_lwp.c
sevan ea26d1a6d7 - Add support for running as a server on NetBSD/evbarm, currently confined to
ARMv6 (Pi). Support for further family revisions in NetBSD is controlled
by the presence of src/config/param.armv$_nbsd$$.h to set the CPU family version
and major OS version number.

- Add description to most patches
2017-10-08 02:41:39 +00:00

33 lines
1.4 KiB
C

$NetBSD: patch-src_lwp_lwp.c,v 1.1 2017/10/08 02:41:39 sevan Exp $
- Like Linux & Darwin, exclude *BSD on 32-bit ARM from the bespoke LWP handling mechanism.
--- src/lwp/lwp.c.orig 2017-07-04 09:38:22.000000000 +0000
+++ src/lwp/lwp.c
@@ -376,7 +376,7 @@ LWP_CreateProcess(void *(*ep) (void *),
Initialize_PCB(temp, priority, stackmemory, stacksize, ep, parm, name);
insert(temp, &runnable[priority]);
temp2 = lwp_cpptr;
-#if !defined(AFS_ARM_LINUX20_ENV) && !defined(AFS_ARM_DARWIN_ENV)
+#if !defined(AFS_ARM_LINUX20_ENV) && !defined(AFS_ARM_DARWIN_ENV) && !defined(AFS_ARM32_XBSD_ENV)
if (PRE_Block != 0)
Abort_LWP("PRE_Block not 0");
@@ -472,7 +472,7 @@ LWP_CreateProcess2(void *(*ep) (void *),
Initialize_PCB(temp, priority, stackptr, stacksize, ep, parm, name);
insert(temp, &runnable[priority]);
temp2 = lwp_cpptr;
-#if !defined(AFS_ARM_LINUX20_ENV) && !defined(AFS_ARM_DARWIN_ENV)
+#if !defined(AFS_ARM_LINUX20_ENV) && !defined(AFS_ARM_DARWIN_ENV) && !defined(AFS_ARM32_XBSD_ENV)
if (PRE_Block != 0)
Abort_LWP("PRE_Block not 0");
@@ -973,7 +973,7 @@ Dispatcher(void)
printf("Dispatch %d [PCB at 0x%x] \"%s\"\n", ++dispatch_count,
runnable[i].head, runnable[i].head->name);
#endif
-#if !defined(AFS_ARM_LINUX20_ENV) && !defined(AFS_ARM_DARWIN_ENV)
+#if !defined(AFS_ARM_LINUX20_ENV) && !defined(AFS_ARM_DARWIN_ENV) && !defined(AFS_ARM32_XBSD_ENV)
if (PRE_Block != 1)
Abort_LWP("PRE_Block not 1");
#endif