diff --git a/release/sysinstall/Makefile b/release/sysinstall/Makefile index 84a3772043b5..a056620efbdd 100644 --- a/release/sysinstall/Makefile +++ b/release/sysinstall/Makefile @@ -14,7 +14,7 @@ SRCS= anonFTP.c apache.c attr.c cdrom.c command.c config.c devices.c \ uc_scsi.c CFLAGS+= -Wall -I${.CURDIR}/../../gnu/lib/libdialog -I${.OBJDIR} -I/sys -CFLAGS+= -DUC_PRIVATE -DKERN_NO_SYMBOLS #-DSAVE_USERCONFIG +CFLAGS+= -DUC_PRIVATE -DKERN_NO_SYMBOLS -DSAVE_USERCONFIG #CFLAGS+= -DLOAD_CONFIG_FILE=\"install.cfg\" diff --git a/release/sysinstall/uc_eisa.c b/release/sysinstall/uc_eisa.c index dddf2c4cbfce..11f199bc234c 100644 --- a/release/sysinstall/uc_eisa.c +++ b/release/sysinstall/uc_eisa.c @@ -23,17 +23,15 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id$ + * $Id: uc_eisa.c,v 1.1 1996/10/03 06:01:37 jkh Exp $ */ #include +#include #include #include #include #include -#ifdef TCL -#include -#endif #include "uc_main.h" diff --git a/release/sysinstall/uc_isa.c b/release/sysinstall/uc_isa.c index d4acbc299c95..8562af447f15 100644 --- a/release/sysinstall/uc_isa.c +++ b/release/sysinstall/uc_isa.c @@ -23,7 +23,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id$ + * $Id: uc_isa.c,v 1.1 1996/10/03 06:01:38 jkh Exp $ */ #include @@ -74,7 +74,7 @@ get_isa_info(struct kernel *kp){ idp->port=p->id_iobase; idp->irq=p->id_irq; idp->drq=p->id_drq; - idp->iomem=p->id_maddr; + idp->iomem=(u_int)p->id_maddr & 0xFFFFFF; /* kludge to get pa from kva */ idp->iosize=p->id_msize; idp->flags=p->id_flags; idp->alive=p->id_alive; @@ -174,7 +174,7 @@ isa_setdev(struct kernel *kp, struct list *list){ irq=strtol(list->av[2], (char **)NULL, 0); ip->irq= irq > 0 ? 1 << (irq) : irq; ip->drq = strtol(list->av[3], (char **)NULL, 0); - ip->iomem = (caddr_t)strtol(list->av[4], (char **)NULL, 0); + ip->iomem = strtol(list->av[4], (char **)NULL, 0); ip->iosize = strtol(list->av[5], (char **)NULL, 0); ip->flags = strtol(list->av[6], (char **)NULL, 0); ip->enabled = strtol(list->av[8], (char **)NULL, 0); @@ -194,7 +194,7 @@ isa_free(struct kernel *kp, int writeback){ ip->idp->id_iobase=ip->port; ip->idp->id_irq = ip->irq; ip->idp->id_drq = ip->drq; - ip->idp->id_maddr = ip->iomem; + ip->idp->id_maddr = (caddr_t)ip->iomem; ip->idp->id_msize = ip->iosize; ip->idp->id_flags = ip->flags; ip->idp->id_enabled = ip->enabled; diff --git a/release/sysinstall/uc_main.c b/release/sysinstall/uc_main.c index 92f2adcda91a..60487ec679f9 100644 --- a/release/sysinstall/uc_main.c +++ b/release/sysinstall/uc_main.c @@ -24,10 +24,11 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * library functions for userconfig library * - * $Id: uc_main.c,v 1.11 1996/10/06 02:56:22 jkh Exp $ + * $Id: uc_main.c,v 1.12 1996/10/06 16:04:49 jkh Exp $ */ #include +#include #include #include #include @@ -36,7 +37,6 @@ #include #include #include -#include #include "uc_main.h" diff --git a/release/sysinstall/uc_main.h b/release/sysinstall/uc_main.h index 2d552eb31feb..e67d61d85305 100644 --- a/release/sysinstall/uc_main.h +++ b/release/sysinstall/uc_main.h @@ -23,7 +23,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id$ + * $Id: uc_main.h,v 1.1 1996/10/03 06:01:42 jkh Exp $ */ #define ISA_BIOTAB 0 @@ -65,7 +65,7 @@ struct uc_isa { u_short port; u_short irq; short drq; - caddr_t iomem; + u_int iomem; int iosize; int flags; int alive; diff --git a/release/sysinstall/uc_pci.c b/release/sysinstall/uc_pci.c index f6d14723f2a5..ec74e8ea545f 100644 --- a/release/sysinstall/uc_pci.c +++ b/release/sysinstall/uc_pci.c @@ -23,15 +23,15 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id$ + * $Id: uc_pci.c,v 1.1 1996/10/03 06:01:43 jkh Exp $ */ #include +#include #include #include #include #include -#include #include "uc_main.h" diff --git a/release/sysinstall/uc_scsi.c b/release/sysinstall/uc_scsi.c index c9b72d2e3a0e..b8058722ff8d 100644 --- a/release/sysinstall/uc_scsi.c +++ b/release/sysinstall/uc_scsi.c @@ -23,15 +23,15 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: uc_scsi.c,v 1.1 1996/10/03 06:01:44 jkh Exp $ + * $Id: uc_scsi.c,v 1.2 1996/10/04 13:33:46 jkh Exp $ */ #include +#include #include #include #include #include -#include #include "uc_main.h" @@ -105,6 +105,7 @@ get_scsi_info(struct kernel *kp){ sbpc=sbp+nscsibus; sbpc->bus_no=nscsibus; + nscsibus++; sscanf(spc->device, "%[a-z]%d", name, &sbpc->unit); asprintf(&sbpc->driver, "%s", name); @@ -155,9 +156,16 @@ get_scsi_info(struct kernel *kp){ t=(u_int)sdev->next; free(sdev); } + /* slap on the terminators */ sp=(struct uc_scsi*)realloc(sp, (sizeof(struct uc_scsi)*(total+1))); spc=sp+total; bzero(spc, sizeof(struct uc_scsi)); + + sbp=(struct uc_scsibus *)realloc(sbp, sizeof(struct uc_scsibus)* + (nscsibus+1)); + sbpc=sbp+nscsibus+1; + bzero(sbpc, sizeof(struct uc_scsibus)); + kp->scsi_devp=sp; kp->scsibus_devp=sbp; } else { /* no symbol, and incore, no scsi */ @@ -453,16 +461,14 @@ scsi_free(struct kernel *kp, int writeback){ } free(kp->scsi_devp); kp->scsi_devp=(struct uc_scsi *)0; -#define WANT_TO_COREDUMP 1 -#if WANT_TO_COREDUMP /* ugly hack until scsi_getdev() gets -incore - busses correctly */ /* now free the bus info */ if(kp->incore){ for(sbp=kp->scsibus_devp;sbp->driver; sbp++){ +/* fprintf(stderr, "sbp: 0x%x free(0x%x)\n", sbp, sbp->driver);*/ free(sbp->driver); } } -#endif + if (kp->scsibus_devp) free(kp->scsibus_devp); kp->scsibus_devp=(struct uc_scsibus *)0; diff --git a/usr.sbin/sade/Makefile b/usr.sbin/sade/Makefile index 84a3772043b5..a056620efbdd 100644 --- a/usr.sbin/sade/Makefile +++ b/usr.sbin/sade/Makefile @@ -14,7 +14,7 @@ SRCS= anonFTP.c apache.c attr.c cdrom.c command.c config.c devices.c \ uc_scsi.c CFLAGS+= -Wall -I${.CURDIR}/../../gnu/lib/libdialog -I${.OBJDIR} -I/sys -CFLAGS+= -DUC_PRIVATE -DKERN_NO_SYMBOLS #-DSAVE_USERCONFIG +CFLAGS+= -DUC_PRIVATE -DKERN_NO_SYMBOLS -DSAVE_USERCONFIG #CFLAGS+= -DLOAD_CONFIG_FILE=\"install.cfg\" diff --git a/usr.sbin/sysinstall/Makefile b/usr.sbin/sysinstall/Makefile index 84a3772043b5..a056620efbdd 100644 --- a/usr.sbin/sysinstall/Makefile +++ b/usr.sbin/sysinstall/Makefile @@ -14,7 +14,7 @@ SRCS= anonFTP.c apache.c attr.c cdrom.c command.c config.c devices.c \ uc_scsi.c CFLAGS+= -Wall -I${.CURDIR}/../../gnu/lib/libdialog -I${.OBJDIR} -I/sys -CFLAGS+= -DUC_PRIVATE -DKERN_NO_SYMBOLS #-DSAVE_USERCONFIG +CFLAGS+= -DUC_PRIVATE -DKERN_NO_SYMBOLS -DSAVE_USERCONFIG #CFLAGS+= -DLOAD_CONFIG_FILE=\"install.cfg\"