Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Sep 2000 07:20:51 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Jason Evans <jasone@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/i386/include mutex.h src/sys/alpha/include mutex.h
Message-ID:  <Pine.BSF.4.21.0009240714570.9133-100000@besplex.bde.org>
In-Reply-To: <200009230000.RAA60223@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 22 Sep 2000, Jason Evans wrote:

> jasone      2000/09/22 17:00:50 PDT
> 
>   Modified files:
>     sys/i386/include     mutex.h 
>     sys/alpha/include    mutex.h 
>   Log:
>   #include <sys/proc.h> in order to get curproc.  This seems to be the lesser
>   of two evils; the greater evil is requiring sys/proc.h to be included
>   before including machine/mutex.h.

The correct implementation is none of the above:

#ifndef SMP
extern struct proc *curproc;
#endif

Bruce



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0009240714570.9133-100000>