summaryrefslogtreecommitdiffstats
path: root/sys/i386
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-12-03 13:45:34 +0000
committerbde <bde@FreeBSD.org>1995-12-03 13:45:34 +0000
commit35ee95831939f06cb374e771e2a51cf938bff1fa (patch)
tree69c8a72f05bc71681c14faa7323ef938e23dadd8 /sys/i386
parent754df9d25d89ae310e9795f92160d1aee988180b (diff)
downloadFreeBSD-src-35ee95831939f06cb374e771e2a51cf938bff1fa.zip
FreeBSD-src-35ee95831939f06cb374e771e2a51cf938bff1fa.tar.gz
Moved inline functions for insque() and remque() to <sys/queue.h>.
Protected them with `#ifdef KERNEL' so that <sys/queue.h> is valid C++. Added the necessary #includes of <sys/queue.h>. These functions are bogus and should be replaced by the queue macros.
Diffstat (limited to 'sys/i386')
-rw-r--r--sys/i386/include/cpufunc.h34
1 files changed, 1 insertions, 33 deletions
diff --git a/sys/i386/include/cpufunc.h b/sys/i386/include/cpufunc.h
index 1415042..11774bf 100644
--- a/sys/i386/include/cpufunc.h
+++ b/sys/i386/include/cpufunc.h
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: cpufunc.h,v 1.40 1995/08/26 20:45:59 bde Exp $
+ * $Id: cpufunc.h,v 1.41 1995/10/05 10:32:47 phk Exp $
*/
/*
@@ -296,35 +296,6 @@ write_eflags(u_long ef)
__asm __volatile("pushl %0; popfl" : : "r" (ef));
}
-/*
- * XXX queue stuff belongs elsewhere.
- */
-struct quehead {
- struct quehead *qh_link;
- struct quehead *qh_rlink;
-};
-
-static __inline void
-insque(void *a, void *b)
-{
- struct quehead *element = a, *head = b;
-
- element->qh_link = head->qh_link;
- element->qh_rlink = head;
- head->qh_link = element;
- element->qh_link->qh_rlink = element;
-}
-
-static __inline void
-remque(void *a)
-{
- struct quehead *element = a;
-
- element->qh_link->qh_rlink = element->qh_rlink;
- element->qh_rlink->qh_link = element->qh_link;
- element->qh_rlink = 0;
-}
-
#else /* !__GNUC__ */
int bdb __P((void));
@@ -348,9 +319,6 @@ u_long read_eflags __P((void));
u_long rcr2 __P((void));
void write_eflags __P((u_long ef));
-void insque __P((void *a, void *b));
-void remque __P((void *a));
-
#endif /* __GNUC__ */
/*
OpenPOWER on IntegriCloud