From 3e420305d50f67d3ee641e8f6e1632b6aa9a717c Mon Sep 17 00:00:00 2001 From: Valery Ushakov Date: Thu, 19 Dec 2019 14:02:31 +0300 Subject: G/c misguided NetBSD/powerpc kludge. The problem was the alignment bug (alloc.c) that I thought I had fixed, but did't. Now that that bug is fixed properly drop the bogus kludge I left here while investigating the problem. --- emu/port/kproc-pthreads.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'emu') diff --git a/emu/port/kproc-pthreads.c b/emu/port/kproc-pthreads.c index c6caded6..a15a7cd3 100644 --- a/emu/port/kproc-pthreads.c +++ b/emu/port/kproc-pthreads.c @@ -122,12 +122,6 @@ kproc(char *name, void (*func)(void*), void *arg, int flags) panic("kproc: no memory"); os->self = 0; /* set by tramp */ sem_init(&os->sem, 0, 0); -#if defined(__NetBSD__) && defined(__powerpc__) - { /* XXX: Work around a problem on macppc with kernel semaphores. */ - int val; - sem_getvalue(&os->sem, &val); - } -#endif p->os = os; if(flags & KPDUPPG) { -- cgit v1.2.3