head	1.9;
access;
symbols
	RELENG_3_0_0_RELEASE:1.7
	old_RELENG_2_2_7_RELEASE:1.4.2.1
	old_RELENG_2_2_6_RELEASE:1.4.2.1
	old_RELENG_2_2_5_RELEASE:1.4
	old_RELENG_2_2_2_RELEASE:1.4
	old_RELENG_2_2_1_RELEASE:1.4
	old_RELENG_2_2_0_RELEASE:1.4
	old_RELENG_2_1_7_RELEASE:1.2
	old_RELENG_2_1_6_1_RELEASE:1.2
	old_RELENG_2_1_6_RELEASE:1.2
	old_RELENG_2_2:1.4.0.2
	old_RELENG_2_2_BP:1.4
	old_RELENG_2_1_5_RELEASE:1.2
	old_RELENG_2_1_0_RELEASE:1.2
	old_RELENG_2_1_0:1.2.0.6
	old_RELENG_2_1_0_BP:1.2
	old_RELENG_2_0_5_RELEASE:1.2
	old_RELENG_2_0_5:1.2.0.4
	old_RELENG_2_0_5_BP:1.2
	old_RELENG_2_0_5_ALPHA:1.2
	old_RELEASE_2_0:1.2
	old_BETA_2_0:1.2
	old_ALPHA_2_0:1.2.0.2;
locks; strict;
comment	@# @;


1.9
date	98.11.11.07.04.10;	author peter;	state dead;
branches;
next	1.8;

1.8
date	98.11.05.04.19.26;	author peter;	state Exp;
branches;
next	1.7;

1.7
date	97.02.22.12.47.59;	author peter;	state Exp;
branches;
next	1.6;

1.6
date	97.02.02.14.40.38;	author wosch;	state Exp;
branches;
next	1.5;

1.5
date	97.01.14.06.21.51;	author jkh;	state Exp;
branches;
next	1.4;

1.4
date	95.10.28.12.35.00;	author peter;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	95.10.10.08.38.11;	author swallace;	state Exp;
branches;
next	1.2;

1.2
date	94.10.16.20.39.16;	author sos;	state Exp;
branches;
next	1.1;

1.1
date	94.10.14.08.45.15;	author sos;	state Exp;
branches;
next	;

1.4.2.1
date	98.03.06.05.26.43;	author jkh;	state Exp;
branches;
next	;


desc
@@


1.9
log
@Rename joy,ibcs2,linux to joy.sh,ibcs2.sh,linux.sh (via repo copy).
@
text
@#!/bin/sh
#
# Copyright (C) 1994-1997
#	FreeBSD Inc.  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 FreeBSD Inc. 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 FreeBSD Inc. 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.
#
#	$Id: ibcs2,v 1.8 1998/11/05 04:19:26 peter Exp $


PATH=/bin:/sbin:/usr/bin:/usr/sbin; export PATH

if [ $# -le 1 ]; then
	LOADERS="coff" # elf
fi

set -e

kldload ibcs2

for loader in $LOADERS; do
	kldload ibcs2_${loader} 
done
set +e
@


1.8
log
@Update to use kldload, no temporary files!
@
text
@d27 1
a27 1
#	$Id: ibcs2,v 1.7 1997/02/22 12:47:59 peter Exp $
@


1.7
log
@Revert $FreeBSD$ back to $Id$
@
text
@d27 1
a27 1
#	$Id$
d38 1
a38 8
kernelfile=`sysctl -n kern.bootfile`
kernelfile=`basename $kernelfile`
newkernelfile="/tmp/_${kernelfile}+ibcs2$$"

trap 'rm -f $newkernelfile; exit 1' 1 2 3 13 15

rm -f $newkernelfile
modload -e ibcs2_mod -o $newkernelfile -q /lkm/ibcs2_mod.o
d41 1
a41 2
	modload -e ibcs2_${loader}_mod -o/tmp/ibcs2_${loader} -q -u \
		-A${newkernelfile} /lkm/ibcs2_${loader}_mod.o
a42 1
rm -f ${newkernelfile}
@


1.6
log
@Make ibcs2 a little bit saver. Add copyright.
@
text
@d27 1
a27 1
#	$FreeBSD$
@


1.5
log
@Make the long-awaited change from $Id$ to $FreeBSD$

This will make a number of things easier in the future, as well as (finally!)
avoiding the Id-smashing problem which has plagued developers for so long.

Boy, I'm glad we're not using sup anymore.  This update would have been
insane otherwise.
@
text
@d2 30
a31 1
# $FreeBSD$
d40 3
a42 1
newkernelfile="/tmp/${kernelfile}+ibcs2"
d44 1
d51 1
a51 1
rm ${newkernelfile}
@


1.4
log
@Do a pass over the broken LKM's and update them to use the "new"
convention of having their entry point named "<modname>_mod"".
Symorder is enforcing this when the current bsd.kmod.mk is installed.

I've not tested all these, but at least they all compile now.

Reattach them to the makefile.

Note that the change that I made to symorder needs to be compiled and
installed before any LKM's will work - the last version was corrupting
the relocation tables.  A "make world" will to this, but if you
manually run a make on the lkm's you'll need to take care of it by
hand.
@
text
@d2 1
a2 1
# $Id: ibcs2,v 1.3 1995/10/10 08:38:11 swallace Exp $
@


1.4.2.1
log
@MFC: primarily do-nothing commits just to facilitate future merging.
@
text
@d2 1
a2 29
#
# Copyright (C) 1994-1997
#     FreeBSD Inc.  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 FreeBSD Inc. 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 FreeBSD Inc. 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.
#
#     $Id$

PATH=/bin:/sbin:/usr/bin:/usr/sbin; export PATH

d11 1
a11 3
newkernelfile="/tmp/_${kernelfile}+ibcs2$$"

trap 'rm -f $newkernelfile; exit 1' 1 2 3 13 15
a12 1
rm -f $newkernelfile
d19 1
a19 1
rm -f ${newkernelfile}
@


1.3
log
@Remove socksys modload command from ibcs2 startup shell script.
@
text
@d2 1
a2 1
# $Id: ibcs2,v 1.2 1994/10/16 20:39:16 sos Exp $
d13 2
a14 1
modload -e ibcs2_init -o $newkernelfile -q /lkm/ibcs2_mod.o
d16 1
a16 1
	modload -e${loader}_init -o/tmp/ibcs2_${loader}.o -qu \
d19 1
@


1.2
log
@Added load of socksys driver.
@
text
@d2 1
a2 1
# $Id: ibcs2,v 1.1 1994/10/14 08:45:15 sos Exp $
a17 1
modload -e socksys_init -o $newkernelfile -q /lkm/socksys_mod.o
@


1.1
log
@LKM module for the iBCS2 emulator
@
text
@d2 1
a2 1
# $Id$
d18 1
@
