head	1.2;
access;
symbols
	perseant-exfatfs-base-20261102:1.2
	perseant-exfatfs-base-20250801:1.2
	perseant-exfatfs-base-20240630:1.2
	perseant-exfatfs:1.2.0.138
	perseant-exfatfs-base:1.2
	bouyer-sunxi-drm:1.2.0.136
	bouyer-sunxi-drm-base:1.2
	cjep_sun2x:1.2.0.134
	cjep_sun2x-base:1.2
	cjep_staticlib_x-base1:1.2
	cjep_staticlib_x:1.2.0.132
	cjep_staticlib_x-base:1.2
	thorpej-futex-base:1.2
	bouyer-xenpvh-base2:1.2
	phil-wifi-20200421:1.2
	bouyer-xenpvh-base1:1.2
	phil-wifi-20200411:1.2
	bouyer-xenpvh:1.2.0.130
	bouyer-xenpvh-base:1.2
	phil-wifi-20200406:1.2
	ad-namecache-base3:1.2
	ad-namecache-base2:1.2
	ad-namecache-base1:1.2
	ad-namecache:1.2.0.128
	ad-namecache-base:1.2
	isaki-audio2:1.2.0.126
	isaki-audio2-base:1.2
	pgoyette-compat-merge-20190127:1.2
	pgoyette-compat-20190127:1.2
	pgoyette-compat-20190118:1.2
	pgoyette-compat-1226:1.2
	pgoyette-compat-1126:1.2
	pgoyette-compat-1020:1.2
	pgoyette-compat-0930:1.2
	pgoyette-compat-0906:1.2
	pgoyette-compat-0728:1.2
	pgoyette-compat-0625:1.2
	pgoyette-compat-0521:1.2
	pgoyette-compat-0502:1.2
	pgoyette-compat-0422:1.2
	pgoyette-compat-0415:1.2
	pgoyette-compat-0407:1.2
	pgoyette-compat-0330:1.2
	pgoyette-compat-0322:1.2
	pgoyette-compat-0315:1.2
	pgoyette-compat:1.2.0.6
	pgoyette-compat-base:1.2
	perseant-stdc-iso10646:1.2.0.124
	perseant-stdc-iso10646-base:1.2
	prg-localcount2-base3:1.2
	prg-localcount2-base2:1.2
	prg-localcount2-base1:1.2
	prg-localcount2:1.2.0.122
	prg-localcount2-base:1.2
	pgoyette-localcount-20170426:1.2
	bouyer-socketcan-base1:1.2
	pgoyette-localcount-20170320:1.2
	bouyer-socketcan:1.2.0.120
	bouyer-socketcan-base:1.2
	pgoyette-localcount-20170107:1.2
	pgoyette-localcount-20161104:1.2
	localcount-20160914:1.2
	pgoyette-localcount-20160806:1.2
	pgoyette-localcount-20160726:1.2
	pgoyette-localcount:1.2.0.118
	pgoyette-localcount-base:1.2
	netbsd-5-2-3-RELEASE:1.2
	netbsd-5-1-5-RELEASE:1.2
	yamt-pagecache-base9:1.2
	yamt-pagecache-tag8:1.2
	tls-earlyentropy:1.2.0.116
	tls-earlyentropy-base:1.2
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.2
	riastradh-drm2-base3:1.2
	netbsd-5-2-2-RELEASE:1.2
	netbsd-5-1-4-RELEASE:1.2
	netbsd-5-2-1-RELEASE:1.2
	netbsd-5-1-3-RELEASE:1.2
	rmind-smpnet-nbase:1.2
	rmind-smpnet:1.2.0.112
	rmind-smpnet-base:1.2
	agc-symver:1.2.0.114
	agc-symver-base:1.2
	tls-maxphys-base:1.2
	yamt-pagecache-base8:1.2
	netbsd-5-2:1.2.0.110
	yamt-pagecache-base7:1.2
	netbsd-5-2-RELEASE:1.2
	netbsd-5-2-RC1:1.2
	yamt-pagecache-base6:1.2
	yamt-pagecache-base5:1.2
	yamt-pagecache-base4:1.2
	netbsd-5-1-2-RELEASE:1.2
	netbsd-5-1-1-RELEASE:1.2
	jmcneill-usbmp:1.2.0.108
	jmcneill-usbmp-base:1.2
	jmcneill-audiomp3:1.2.0.106
	jmcneill-audiomp3-base:1.2
	yamt-pagecache-base3:1.2
	yamt-pagecache-base2:1.2
	yamt-pagecache:1.2.0.104
	yamt-pagecache-base:1.2
	rmind-uvmplock-nbase:1.2
	jym-xensuspend-nbase:1.2
	bouyer-quota2-nbase:1.2
	bouyer-quota2:1.2.0.102
	bouyer-quota2-base:1.2
	jruoho-x86intr:1.2.0.100
	jruoho-x86intr-base:1.2
	matt-nb5-pq3:1.2.0.98
	matt-nb5-pq3-base:1.2
	netbsd-5-1:1.2.0.96
	netbsd-5-1-RELEASE:1.2
	yamt-nfs-mp-base11:1.2
	netbsd-5-1-RC4:1.2
	uebayasi-xip-base2:1.2
	yamt-nfs-mp-base10:1.2
	netbsd-5-1-RC3:1.2
	netbsd-5-1-RC2:1.2
	netbsd-5-1-RC1:1.2
	rmind-uvmplock:1.2.0.94
	rmind-uvmplock-base:1.2
	yamt-nfs-mp-base9:1.2
	uebayasi-xip:1.2.0.92
	uebayasi-xip-base:1.2
	netbsd-5-0-2-RELEASE:1.2
	yamt-nfs-mp-base8:1.2
	yamt-nfs-mp-base7:1.2
	netbsd-5-0-1-RELEASE:1.2
	jymxensuspend-base:1.2
	yamt-nfs-mp-base6:1.2
	yamt-nfs-mp-base5:1.2
	yamt-nfs-mp-base4:1.2
	yamt-nfs-mp-base3:1.2
	netbsd-5-0:1.2.0.90
	netbsd-5-0-RELEASE:1.2
	netbsd-5-0-RC4:1.2
	netbsd-5-0-RC3:1.2
	netbsd-5-0-RC2:1.2
	jym-xensuspend:1.2.0.88
	jym-xensuspend-base:1.2
	netbsd-5-0-RC1:1.2
	haad-dm-base2:1.2
	haad-nbase2:1.2
	ad-audiomp2:1.2.0.86
	ad-audiomp2-base:1.2
	netbsd-5:1.2.0.84
	netbsd-5-base:1.2
	haad-dm-base1:1.2
	haad-dm:1.2.0.82
	haad-dm-base:1.2
	simonb-wapbl-nbase:1.2
	yamt-pf42-base4:1.2
	simonb-wapbl:1.2.0.80
	simonb-wapbl-base:1.2
	yamt-pf42-base3:1.2
	hpcarm-cleanup-nbase:1.2
	yamt-pf42-base2:1.2
	yamt-nfs-mp-base2:1.2
	yamt-nfs-mp:1.2.0.78
	yamt-nfs-mp-base:1.2
	yamt-pf42:1.2.0.76
	yamt-pf42-base:1.2
	ad-socklock-base1:1.2
	yamt-lazymbuf-base15:1.2
	yamt-lazymbuf-base14:1.2
	keiichi-mipv6-nbase:1.2
	mjf-devfs2:1.2.0.74
	mjf-devfs2-base:1.2
	keiichi-mipv6:1.2.0.72
	keiichi-mipv6-base:1.2
	bouyer-xeni386-merge1:1.2
	vmlocking2-base3:1.2
	bouyer-xeni386-nbase:1.2
	yamt-kmem-base3:1.2
	cube-autoconf:1.2.0.70
	cube-autoconf-base:1.2
	yamt-kmem-base2:1.2
	bouyer-xeni386:1.2.0.68
	bouyer-xeni386-base:1.2
	yamt-kmem:1.2.0.66
	yamt-kmem-base:1.2
	vmlocking2-base2:1.2
	reinoud-bufcleanup-nbase:1.2
	vmlocking2:1.2.0.64
	vmlocking2-base1:1.2
	jmcneill-base:1.2
	mjf-devfs:1.2.0.62
	mjf-devfs-base:1.2
	bouyer-xenamd64-base2:1.2
	vmlocking-nbase:1.2
	yamt-x86pmap-base4:1.2
	bouyer-xenamd64:1.2.0.60
	bouyer-xenamd64-base:1.2
	yamt-x86pmap-base3:1.2
	yamt-x86pmap-base2:1.2
	yamt-x86pmap:1.2.0.58
	yamt-x86pmap-base:1.2
	jmcneill-pm:1.2.0.56
	jmcneill-pm-base:1.2
	hpcarm-cleanup:1.2.0.54
	hpcarm-cleanup-base:1.2
	mjf-ufs-trans-base:1.2
	yamt-idlelwp-base8:1.2
	ppcoea-renovation:1.2.0.52
	ppcoea-renovation-base:1.2
	reinoud-bufcleanup-base:1.2
	vmlocking:1.2.0.50
	vmlocking-base:1.2
	ad-audiomp:1.2.0.48
	ad-audiomp-base:1.2
	yamt-idlelwp:1.2.0.46
	post-newlock2-merge:1.2
	newlock2-nbase:1.2
	yamt-splraiseipl-base5:1.2
	yamt-splraiseipl-base4:1.2
	yamt-splraiseipl-base3:1.2
	yamt-splraiseipl-base2:1.2
	yamt-splraiseipl:1.2.0.44
	yamt-splraiseipl-base:1.2
	newlock2:1.2.0.42
	newlock2-base:1.2
	yamt-pdpolicy-base8:1.2
	yamt-pdpolicy-base7:1.2
	yamt-pdpolicy-base6:1.2
	gdamore-uart:1.2.0.40
	gdamore-uart-base:1.2
	simonb-timcounters-final:1.2
	yamt-pdpolicy-base5:1.2
	elad-kernelauth-nbase:1.2
	yamt-pdpolicy-base4:1.2
	yamt-pdpolicy-base3:1.2
	yamt-pdpolicy-base2:1.2
	yamt-pdpolicy:1.2.0.38
	yamt-pdpolicy-base:1.2
	yamt-uio_vmspace-base5:1.2
	simonb-timecounters:1.2.0.36
	simonb-timecounters-base:1.2
	rpaulo-netinet-merge-pcb:1.2.0.34
	rpaulo-netinet-merge-pcb-base:1.2
	yamt-uio_vmspace:1.2.0.32
	yamt-readahead-base3:1.2
	yamt-readahead-base2:1.2
	yamt-readahead:1.2.0.30
	yamt-readahead-base:1.2
	yamt-vop-base3:1.2
	yamt-vop-base2:1.2
	thorpej-vnode-attr:1.2.0.28
	thorpej-vnode-attr-base:1.2
	yamt-vop:1.2.0.26
	yamt-vop-base:1.2
	yamt-lazymbuf:1.2.0.24
	yamt-km-base4:1.2
	yamt-km-base3:1.2
	yamt-km-base2:1.2
	yamt-km:1.2.0.22
	yamt-km-base:1.2
	kent-audio2:1.2.0.20
	kent-audio2-base:1.2
	ktrace-lwp:1.2.0.18
	ktrace-lwp-base:1.2
	nathanw_sa_end:1.2
	nathanw_sa_before_merge:1.2
	gmcgarry_ctxsw:1.2.0.16
	gmcgarry_ctxsw_base:1.2
	gmcgarry_ucred:1.2.0.14
	gmcgarry_ucred_base:1.2
	nathanw_sa_base:1.2
	gehenna-devsw:1.2.0.12
	gehenna-devsw-base:1.2
	eeh-devprop:1.2.0.10
	eeh-devprop-base:1.2
	newlock:1.2.0.8
	newlock-base:1.2
	ifpoll-base:1.2
	nathanw_sa:1.2.0.4
	thorpej-mips-cache:1.2.0.2
	thorpej-mips-cache-base:1.2
	thorpej-devvp-base3:1.1
	thorpej-devvp-base2:1.1
	post-chs-ubcperf:1.1
	pre-chs-ubcperf:1.1
	thorpej-devvp:1.1.0.2
	thorpej-devvp-base:1.1
	kqueue:1.1.0.6
	kqueue-base:1.2
	thorpej_scsipi_beforemerge:1.1
	thorpej_scsipi_base:1.1
	thorpej_scsipi:1.1.0.4
	thorpej_scsipi_nbase:1.1;
locks; strict;
comment	@# @;


1.2
date	2001.10.17.23.54.16;	author reinoud;	state dead;
branches
	1.2.4.1;
next	1.1;

1.1
date	2001.02.19.14.09.01;	author reinoud;	state Exp;
branches
	1.1.4.1
	1.1.6.1;
next	;

1.2.4.1
date	2001.10.17.23.54.16;	author reinoud;	state dead;
branches;
next	1.2.4.2;

1.2.4.2
date	2001.10.17.23.54.17;	author reinoud;	state dead;
branches;
next	;

1.1.4.1
date	2001.02.19.14.09.01;	author bouyer;	state dead;
branches;
next	1.1.4.2;

1.1.4.2
date	2001.03.12.13.27.48;	author bouyer;	state Exp;
branches;
next	;

1.1.6.1
date	2002.01.10.19.39.26;	author thorpej;	state dead;
branches;
next	;


desc
@@


1.2
log
@Major step in creation of arch/acorn32 : remove acorn RiscPC compatibles
and RC7500 from the old arch/arm32 that is gonna be deleted in its whole
soon.

IMPORTANT for RC7500 ... this also removes all RC7500 support .... its a
big pitty but was virtually unsupported allready for a few years and noone
had one... if someone wants to make RC7500 or decendants support undo this
removal and start from here.
@
text
@REM > bb_NetBSD
REM $NetBSD: bb_netbsd,v 1.1 2001/02/19 14:09:01 reinoud Exp $
REM
REM Copyright (c) 1995 Mark Brinicombe
REM All rights reserved
REM
REM Redistribution and use in source and binary forms, with or without
REM modification, are permitted provided that the following conditions
REM are met:
REM 1. Redistributions of source code must retain the above copyright
REM    notice, this list of conditions and the following disclaimer.
REM 2. Redistributions in binary form must reproduce the above copyright
REM    notice, this list of conditions and the following disclaimer in the
REM    documentation and/or other materials provided with the distribution.
REM 3. All advertising materials mentioning features or use of this software
REM    must display the following acknowledgement:
REM        This product includes software developed by Mark Brinicombe.
REM 4. The name of the company nor the name of the author may be used to
REM    endorse or promote products derived from this software without specific
REM    prior written permission.
REM
REM THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
REM IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
REM OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
REM IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
REM INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
REM BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
REM OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
REM ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
REM OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
REM THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
REM DAMAGE.
REM
REM NetBSD kernel project
REM
REM bb_NetBSD
REM
REM Modifies the filecore bootblock to point to a section of
REM the disc reserved for NetBSD.
REM
REM Created      : 24/11/94
REM Last updated : 12/07/95
REM

DIM buf% 512

REM Get Filesystem type

REPEAT
  PRINT "ADFS, ATAFS, IDEFS, SCSI or SCSIFS (A/T/I/S/F) ? ";
  filesys% = GET AND &DF
  PRINT CHR$(filesys%)
UNTIL filesys%=ASC"A" OR filesys%=ASC"T" OR filesys%=ASC"S" OR filesys%=ASC"I" OR filesys%=ASC"F"

CASE filesys% OF
  WHEN ASC"A" : discop$="ADFS_DiscOp"
  WHEN ASC"I" : discop$="IDEFS_DiscOp"
  WHEN ASC"T" : discop$="ATAFS_DiscOp"
  WHEN ASC"S" : discop$="SCSI_DiscOp"
  WHEN ASC"F" : discop$="SCSIFS_DiscOp"
ENDCASE

REM Get the drive number

INPUT "Drive "d%

REM Read in current filecore bootblock

SYS discop$,, 1, &c00 + (d% << 29), buf%, 512

SYS "OS_File", 10, "<Wimp$ScrapDir>.OldBB", &FFD,, buf%, buf%+512
PRINT "Old boot block saved in <Wimp$ScrapDir>.OldBB"

REM Get the byte size of the filecore partition and the number
REM of bytes per cylinder

size%=buf%!&1d0
clsize%=buf%?&1c2 * buf%?&1c1 * (1 << buf%?&1c0)

REM A bit of info to the user

PRINT "Filecore partition size = ";~size%;" bytes"

REM Convert the size into cylinders

size% = (size% + clsize% - 1) / clsize%

PRINT "Filecore partition size = ";size%; " cylinders (0-";size%-1;")"

REM We should be clever about here and read the real geometry
REM of the disc so that we know the maximum cylinder number

REM Get the starting cylinder for the NetBSD part of the disc

INPUT "NetBSD Starting Cyl "c%

REM Make sure it is after the filecore partition

IF (c% < size%) THEN
  PRINT "Filecore occupies cylinders upto ";size%-1
  INPUT "Are you sure you mean this value "a$
  IF (a$ <> "yes" AND a$ <> "YES") THEN END
  PRINT "This will allow NetBSD to overwrite part of the ADFS partition"
  INPUT "Are you really sure you mean this value "a$
  IF (a$ <> "yes" AND a$ <> "YES") THEN END
ENDIF

PRINT "Initialising NetBSD partition offset at ";c%
PRINT "On drive ";d%;", using ";discop$;" to access drive"
PRINT "Press any key to continue, escape to abort"

dummy%=GET

REM Modifiy the non-ADFS partition descriptor to describe the
REM start of the NetBSD part of the disc

buf%?&1FC = &42             : REM NetBSD identifier
buf%?&1FD = c% AND 255      : REM low byte of start cylinder
buf%?&1FE = c% >> 8         : REM high byte of start cylinder

REM Recalculate the filecore boot block checksum

buf%?&1FF = FNCheckSum(buf%,511)

REM Write the boot block back to disc

SYS discop$,, 2, &c00 + (d% << 29), buf%, 512

END


DEF FNCheckSum(addr%, length%)
sum% = 0
FOR n% = 0 TO length% - 1
  sum% += addr%?n%
  IF sum% > 255 THEN
    sum% -= 255
  ENDIF
NEXT
= sum%
@


1.2.4.1
log
@file bb_netbsd was added on branch nathanw_sa on 2001-10-17 23:54:17 +0000
@
text
@d1 140
@


1.2.4.2
log
@Major step in creation of arch/acorn32 : remove acorn RiscPC compatibles
and RC7500 from the old arch/arm32 that is gonna be deleted in its whole
soon.

IMPORTANT for RC7500 ... this also removes all RC7500 support .... its a
big pitty but was virtually unsupported allready for a few years and noone
had one... if someone wants to make RC7500 or decendants support undo this
removal and start from here.
@
text
@@


1.1
log
@Import of the new RISCOS bootloader in the CVS tree with import and export scripts.
Start version is v 0.91
@
text
@d2 1
a2 1
REM $NetBSD$
@


1.1.4.1
log
@file bb_netbsd was added on branch thorpej_scsipi on 2001-03-12 13:27:48 +0000
@
text
@d1 140
@


1.1.4.2
log
@Sync with HEAD.
@
text
@a0 140
REM > bb_NetBSD
REM $NetBSD: bb_netbsd,v 1.1.4.1 2001/03/12 13:27:48 bouyer Exp $
REM
REM Copyright (c) 1995 Mark Brinicombe
REM All rights reserved
REM
REM Redistribution and use in source and binary forms, with or without
REM modification, are permitted provided that the following conditions
REM are met:
REM 1. Redistributions of source code must retain the above copyright
REM    notice, this list of conditions and the following disclaimer.
REM 2. Redistributions in binary form must reproduce the above copyright
REM    notice, this list of conditions and the following disclaimer in the
REM    documentation and/or other materials provided with the distribution.
REM 3. All advertising materials mentioning features or use of this software
REM    must display the following acknowledgement:
REM        This product includes software developed by Mark Brinicombe.
REM 4. The name of the company nor the name of the author may be used to
REM    endorse or promote products derived from this software without specific
REM    prior written permission.
REM
REM THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
REM IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
REM OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
REM IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
REM INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
REM BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS
REM OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
REM ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
REM OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
REM THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
REM DAMAGE.
REM
REM NetBSD kernel project
REM
REM bb_NetBSD
REM
REM Modifies the filecore bootblock to point to a section of
REM the disc reserved for NetBSD.
REM
REM Created      : 24/11/94
REM Last updated : 12/07/95
REM

DIM buf% 512

REM Get Filesystem type

REPEAT
  PRINT "ADFS, ATAFS, IDEFS, SCSI or SCSIFS (A/T/I/S/F) ? ";
  filesys% = GET AND &DF
  PRINT CHR$(filesys%)
UNTIL filesys%=ASC"A" OR filesys%=ASC"T" OR filesys%=ASC"S" OR filesys%=ASC"I" OR filesys%=ASC"F"

CASE filesys% OF
  WHEN ASC"A" : discop$="ADFS_DiscOp"
  WHEN ASC"I" : discop$="IDEFS_DiscOp"
  WHEN ASC"T" : discop$="ATAFS_DiscOp"
  WHEN ASC"S" : discop$="SCSI_DiscOp"
  WHEN ASC"F" : discop$="SCSIFS_DiscOp"
ENDCASE

REM Get the drive number

INPUT "Drive "d%

REM Read in current filecore bootblock

SYS discop$,, 1, &c00 + (d% << 29), buf%, 512

SYS "OS_File", 10, "<Wimp$ScrapDir>.OldBB", &FFD,, buf%, buf%+512
PRINT "Old boot block saved in <Wimp$ScrapDir>.OldBB"

REM Get the byte size of the filecore partition and the number
REM of bytes per cylinder

size%=buf%!&1d0
clsize%=buf%?&1c2 * buf%?&1c1 * (1 << buf%?&1c0)

REM A bit of info to the user

PRINT "Filecore partition size = ";~size%;" bytes"

REM Convert the size into cylinders

size% = (size% + clsize% - 1) / clsize%

PRINT "Filecore partition size = ";size%; " cylinders (0-";size%-1;")"

REM We should be clever about here and read the real geometry
REM of the disc so that we know the maximum cylinder number

REM Get the starting cylinder for the NetBSD part of the disc

INPUT "NetBSD Starting Cyl "c%

REM Make sure it is after the filecore partition

IF (c% < size%) THEN
  PRINT "Filecore occupies cylinders upto ";size%-1
  INPUT "Are you sure you mean this value "a$
  IF (a$ <> "yes" AND a$ <> "YES") THEN END
  PRINT "This will allow NetBSD to overwrite part of the ADFS partition"
  INPUT "Are you really sure you mean this value "a$
  IF (a$ <> "yes" AND a$ <> "YES") THEN END
ENDIF

PRINT "Initialising NetBSD partition offset at ";c%
PRINT "On drive ";d%;", using ";discop$;" to access drive"
PRINT "Press any key to continue, escape to abort"

dummy%=GET

REM Modifiy the non-ADFS partition descriptor to describe the
REM start of the NetBSD part of the disc

buf%?&1FC = &42             : REM NetBSD identifier
buf%?&1FD = c% AND 255      : REM low byte of start cylinder
buf%?&1FE = c% >> 8         : REM high byte of start cylinder

REM Recalculate the filecore boot block checksum

buf%?&1FF = FNCheckSum(buf%,511)

REM Write the boot block back to disc

SYS discop$,, 2, &c00 + (d% << 29), buf%, 512

END


DEF FNCheckSum(addr%, length%)
sum% = 0
FOR n% = 0 TO length% - 1
  sum% += addr%?n%
  IF sum% > 255 THEN
    sum% -= 255
  ENDIF
NEXT
= sum%
@


1.1.6.1
log
@Sync kqueue branch with -current.
@
text
@d2 1
a2 1
REM $NetBSD: bb_netbsd,v 1.1 2001/02/19 14:09:01 reinoud Exp $
@
