11.7Sandvar$NetBSD: ReadMe.NetBSD,v 1.7 2022/05/28 10:36:22 andvar Exp $
21.1Sis
31.3SisCopyright (c) 1996 The NetBSD Foundation, Inc.
41.2SisAll rights reserved.
51.2Sis
61.2SisThis code is derived from software contributed to The NetBSD Foundation
71.2Sisby Ignatios Souvatzis.
81.1Sis
91.1SisRedistribution and use in source and binary forms, with or without
101.1Sismodification, are permitted provided that the following conditions
111.1Sisare met:
121.1Sis1. Redistributions of source code must retain the above copyright
131.1Sis   notice, this list of conditions and the following disclaimer.
141.1Sis2. Redistributions in binary form must reproduce the above copyright
151.1Sis   notice, this list of conditions and the following disclaimer in the
161.1Sis   documentation and/or other materials provided with the distribution.
171.1Sis
181.2SisTHIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
191.2Sis``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
201.2SisTO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
211.2SisPURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
221.2SisBE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
231.2SisCONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
241.2SisSUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
251.2SisINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
261.2SisCONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
271.2SisARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
281.2SisPOSSIBILITY OF SUCH DAMAGE.
291.1Sis
301.1Sis
311.1SisNotes about the NetBSD integration
321.1Sis----------------------------------
331.1Sis
341.1SisPreface and Acknowledgements: 
351.1Sis
361.1SisA first try at integrating the M68060 Software Package was done by
371.1SisYasushi Yamasaki of the NetBSD/x68k group, but only available as a
381.1Sispatch file to their source tree (which wasn't integrated into the
391.1SisNetBSD master tree at that time).
401.1Sis
411.1SisI started with their glue code version from the patch file, and
421.1Sischanged the following things up to now:
431.1Sis
441.1Sis- collapse a few identical glue routines (fetch code/data words/longs
451.1Sisfrom user space) into a multi-labeled one
461.1Sis
471.1Sis- make the gas syntax files of the glue code the Master files
481.4Sis
491.4Sis- translate the gas syntax files of the Motorola code once, to avoid 
501.4Sisthe translation time.
511.1Sis
521.1Sis- I call the access error handler (label _buserr) directly, instead of
531.1Sisthrough an RTE as in the example file
541.1Sis
551.1SisOther changes are only in the method this was integrated into the
561.7SandvarAmiga vs. X68k port, which is machine dependent anyway.
571.1Sis
581.1SisThanks for the initial effort!
591.1Sis
601.1Sis
611.1Sis
621.1SisI. File suffix convention
631.1Sis
641.1SisI cvs imported all of the Motorola files (with lowercase names).
651.5SisThese have been moved to the dist subdirectory as of today --- 2000-04-14
661.1Sis
671.1SisThese are:
681.1Sis
691.1Sis*.s:	Assembler files "unsupported by Motorola, provided as a reference only"
701.1Sis*.sa:	Pseudo assembler hex dump files, which is Motorolas supported version.
711.1Sis*.doc:	docs by Motorola
721.1Sis
731.1Siserrata, changes, files, readme: by Motorola.
741.1Sis
751.1Sis
761.7SandvarI choose .S as the file suffix which is fed to our assembler
771.1Sisdirectly or indirectly.
781.1Sis
791.1SisWe use:		To create: 
801.1Sis
811.1Sisisp.sa		isp.S
821.1Sisfpsp.sa		fpsp.S
831.5Sis
841.5SisType "make" in this directory to create them, then check in.
851.1Sis
861.1SisIn addition, inetbsd.S and fnetbsd.S are our part specific glue files,
871.1Sisnetbsd.S is our general glue file, and copyright.S ensures we have a
881.1Siscopy of the copyright notice in the kernel if using the 060SP.
891.1Sis
901.1SisTo enforce the right relative positions of isp/its glue code inetbsd.S
911.1Sisincludes isp.S at the end, and fnetbsd.S includes fpsp.S.
921.1Sis
931.1SisIa: Don't Change Files
941.1Sis
951.1Sis- all Motorola doc files, all .sa (hex) files.
961.1Sis
971.1SisIb: Nearly Don't Change Files
981.1Sis
991.1Sis- for now, the .s files by Motorola. We might use the fpsp.s file
1001.1Sislater to create an optimized version, once we a) verified its
1011.1Sisidentical to the supported .s and b) write a conversion (to .S format)
1021.1Sisscript.
1031.1Sis
1041.1SisII. Interface to the arch/$machine/$machine files:
1051.1Sis
1061.1Sis[to be continued]
1071.1Sis
108