atomic.h problem with compiling the kernel

2000-11-28 Thread Piet Delaney


For quite a while I couldn't get into the CVS server to update /usr/src.
I finnaly did and /usr/src compiled ok but the kernel is giving me
a problem with some asm macros in atomic.h and they aren't trivial
macros. 

I was wondering if you knew what the problem was or who could
help set me straight.

-piet


-- 

~*-,._.,-*~``^``~*-,._.,-*~``^``~*-,._.,-*~``^``~*-,._.,-*~``^``~*-,._.,-*~``^`
 
 ,   ,   
/(   )`  
\ \__   / |  
/- _ `-/  ' Pete Delaney 
   (/\/ \ \   /\Network/Kernel Hacker
   / /   | `\   Rocky Mountain UNIX  
   O O   )  |
   `-^--'` '   2812 Toledo Ave. 
  (_.)  _ )/Santa Clara Ca. 95051-4734   
   `.___/`/ USA  
 `-' /   
 ---. __ / __   \   
 ---|O)))==) \) /=  
 ---'`--' `.__,' \  
 | |E-mail: [EMAIL PROTECTED]
  \   / [EMAIL PROTECTED] 
  ( (_   / \URL   : www.piet.net 
,'  ,'   |  \   Voice : +1 (408) 243-8872 
`--{__) \/  ISDN  : +1 (408) 244-8290 / 244-2614 
 
~*-,._.,-*~``^``~*-,._.,-*~``^``~*-,._.,-*~``^``~*-,._.,-*~``^``~*-,._.,-*~``^`
 
  "Every one that is of the truth heareth my voice" - J.C.Superstar  
 
~*-,._.,-*~``^``~*-,._.,-*~``^``~*-,._.,-*~``^``~*-,._.,-*~``^``~*-,._.,-*~``^`


/*-
 * Copyright (c) 1998 Doug Rabson
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *notice, this list of conditions and the following disclaimer in the
 *documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 *
 * $FreeBSD: src/sys/i386/include/atomic.h,v 1.16 2000/10/28 00:28:15 jhb Exp $
 */
#ifndef _MACHINE_ATOMIC_H_
#define _MACHINE_ATOMIC_H_

/*
 * Various simple arithmetic on memory which is atomic in the presence
 * of interrupts and multiple processors.
 *
 * atomic_set_char(P, V)(*(u_char*)(P) |= (V))
 * atomic_clear_char(P, V)  (*(u_char*)(P) = ~(V))
 * atomic_add_char(P, V)(*(u_char*)(P) += (V))
 * atomic_subtract_char(P, V)   (*(u_char*)(P) -= (V))
 *
 * atomic_set_short(P, V)   (*(u_short*)(P) |= (V))
 * atomic_clear_short(P, V) (*(u_short*)(P) = ~(V))
 * atomic_add_short(P, V)   (*(u_short*)(P) += (V))
 * atomic_subtract_short(P, V)  (*(u_short*)(P) -= (V))
 *
 * atomic_set_int(P, V) (*(u_int*)(P) |= (V))
 * atomic_clear_int(P, V)   (*(u_int*)(P) = ~(V))
 * atomic_add_int(P, V) (*(u_int*)(P) += (V))
 * atomic_subtract_int(P, V)(*(u_int*)(P) -= (V))
 * atomic_readandclear_int(P)   (return  *(u_int*)P; *(u_int*)P = 0;)
 *
 * atomic_set_long(P, V)(*(u_long*)(P) |= (V))
 * atomic_clear_long(P, V)  (*(u_long*)(P) = ~(V))
 * atomic_add_long(P, V)(*(u_long*)(P) += (V))
 * atomic_subtract_long(P, V)   (*(u_long*)(P) -= (V))
 * 

Looking for Suggestion on Booting FreeBSD 3.0 on a Gigabyte GA-6BXDS board with Dual Pentiun II and Adaptec 7895 Ultra Wide SCSI-3 Controlers

1999-01-14 Thread Piet Delaney
Hi David, Cory, Dave, Folks:

I thought it was about time to try out
FreeBSD, most likely 3.0, so I picked up a PC
board from Gigabyte, the GA-6BXDS Dual Scsi-3
that has an onboard Adaptec 7895 controler.
About a year ago you (David) said Justin was working
on a 7895 scsi controler. I didn't see anything
in the FreeBSD handbook on support for the Adaptic
7895 (seems to be getting rather out of date).
Now I've read from Cory that you need a CAM scsi
driver. Last I see it was still only available as
patches. Why is it taking so long to get it integrated
into the current src? So I have to get an IDE drive and
install onto that, get the CAM patches (from where?),
run patch, etc... and linux supports it a standard
controler? I can't believe this.

Perhaps you could update me on the 7895 support
and perhaps have some suggestion on setting up this
board to run FreeBSD. For example can I boot the 
3.0 FreeBSD off of a CDROM on the scsi adapters;
I sort of doubt it. 

Is the FreeBSD getting the information it needs from
Gigabyte and Adaptec so that these boards are well
supported?

-piet

To Unsubscribe: send mail to majord...@freebsd.org
with unsubscribe freebsd-current in the body of the message