1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
$NetBSD: patch-src_lwp_lwp.c,v 1.2 2022/03/19 16:19:02 jakllsch Exp $
- Like Linux & Darwin, exclude *BSD on 32-bit ARM from the bespoke LWP handling mechanism.
--- src/lwp/lwp.c.orig 2021-12-09 17:07:41.000000000 +0000
+++ src/lwp/lwp.c
@@ -365,7 +365,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");
@@ -461,7 +461,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");
@@ -961,7 +961,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
|