head	1.53;
access;
symbols
	netbsd-11-0-RC5:1.53
	netbsd-11-0-RC4:1.53
	netbsd-11-0-RC3:1.53
	netbsd-11-0-RC2:1.53
	netbsd-11-0-RC1:1.53
	perseant-exfatfs-base-20250801:1.53
	netbsd-11:1.53.0.8
	netbsd-11-base:1.53
	netbsd-10-1-RELEASE:1.52
	perseant-exfatfs-base-20240630:1.53
	perseant-exfatfs:1.53.0.6
	perseant-exfatfs-base:1.53
	netbsd-8-3-RELEASE:1.49
	netbsd-9-4-RELEASE:1.51
	netbsd-10-0-RELEASE:1.52
	netbsd-10-0-RC6:1.52
	netbsd-10-0-RC5:1.52
	netbsd-10-0-RC4:1.52
	netbsd-10-0-RC3:1.52
	netbsd-10-0-RC2:1.52
	thorpej-ifq:1.53.0.4
	thorpej-ifq-base:1.53
	thorpej-altq-separation:1.53.0.2
	thorpej-altq-separation-base:1.53
	netbsd-10-0-RC1:1.52
	netbsd-10:1.52.0.20
	netbsd-10-base:1.52
	bouyer-sunxi-drm:1.52.0.18
	bouyer-sunxi-drm-base:1.52
	netbsd-9-3-RELEASE:1.51
	thorpej-i2c-spi-conf2:1.52.0.16
	thorpej-i2c-spi-conf2-base:1.52
	thorpej-futex2:1.52.0.14
	thorpej-futex2-base:1.52
	thorpej-cfargs2:1.52.0.12
	thorpej-cfargs2-base:1.52
	cjep_sun2x-base1:1.52
	cjep_sun2x:1.52.0.10
	cjep_sun2x-base:1.52
	cjep_staticlib_x-base1:1.52
	netbsd-9-2-RELEASE:1.51
	cjep_staticlib_x:1.52.0.8
	cjep_staticlib_x-base:1.52
	thorpej-i2c-spi-conf:1.52.0.6
	thorpej-i2c-spi-conf-base:1.52
	thorpej-cfargs:1.52.0.4
	thorpej-cfargs-base:1.52
	thorpej-futex:1.52.0.2
	thorpej-futex-base:1.52
	netbsd-9-1-RELEASE:1.51
	bouyer-xenpvh-base2:1.51
	phil-wifi-20200421:1.51
	bouyer-xenpvh-base1:1.51
	phil-wifi-20200411:1.51
	bouyer-xenpvh:1.51.0.10
	bouyer-xenpvh-base:1.51
	is-mlppp:1.51.0.8
	is-mlppp-base:1.51
	phil-wifi-20200406:1.51
	netbsd-8-2-RELEASE:1.49
	ad-namecache-base3:1.51
	netbsd-9-0-RELEASE:1.51
	netbsd-9-0-RC2:1.51
	ad-namecache-base2:1.51
	ad-namecache-base1:1.51
	ad-namecache:1.51.0.6
	ad-namecache-base:1.51
	netbsd-9-0-RC1:1.51
	phil-wifi-20191119:1.51
	netbsd-9:1.51.0.4
	netbsd-9-base:1.51
	phil-wifi-20190609:1.51
	netbsd-8-1-RELEASE:1.49
	netbsd-8-1-RC1:1.49
	isaki-audio2:1.51.0.2
	isaki-audio2-base:1.51
	pgoyette-compat-merge-20190127:1.49.16.2
	pgoyette-compat-20190127:1.51
	pgoyette-compat-20190118:1.51
	pgoyette-compat-1226:1.51
	pgoyette-compat-1126:1.51
	pgoyette-compat-1020:1.51
	pgoyette-compat-0930:1.51
	pgoyette-compat-0906:1.51
	netbsd-7-2-RELEASE:1.48
	pgoyette-compat-0728:1.51
	netbsd-8-0-RELEASE:1.49
	phil-wifi:1.50.0.2
	phil-wifi-base:1.50
	pgoyette-compat-0625:1.50
	netbsd-8-0-RC2:1.49
	pgoyette-compat-0521:1.49
	pgoyette-compat-0502:1.49
	pgoyette-compat-0422:1.49
	netbsd-8-0-RC1:1.49
	pgoyette-compat-0415:1.49
	pgoyette-compat-0407:1.49
	pgoyette-compat-0330:1.49
	pgoyette-compat-0322:1.49
	pgoyette-compat-0315:1.49
	netbsd-7-1-2-RELEASE:1.48
	pgoyette-compat:1.49.0.16
	pgoyette-compat-base:1.49
	netbsd-7-1-1-RELEASE:1.48
	tls-maxphys-base-20171202:1.49
	matt-nb8-mediatek:1.49.0.14
	matt-nb8-mediatek-base:1.49
	nick-nhusb-base-20170825:1.49
	perseant-stdc-iso10646:1.49.0.12
	perseant-stdc-iso10646-base:1.49
	netbsd-8:1.49.0.10
	netbsd-8-base:1.49
	prg-localcount2-base3:1.49
	prg-localcount2-base2:1.49
	prg-localcount2-base1:1.49
	prg-localcount2:1.49.0.8
	prg-localcount2-base:1.49
	pgoyette-localcount-20170426:1.49
	bouyer-socketcan-base1:1.49
	jdolecek-ncq:1.49.0.6
	jdolecek-ncq-base:1.49
	pgoyette-localcount-20170320:1.49
	netbsd-7-1:1.48.0.12
	netbsd-7-1-RELEASE:1.48
	netbsd-7-1-RC2:1.48
	nick-nhusb-base-20170204:1.49
	netbsd-7-nhusb-base-20170116:1.48
	bouyer-socketcan:1.49.0.4
	bouyer-socketcan-base:1.49
	pgoyette-localcount-20170107:1.49
	netbsd-7-1-RC1:1.48
	nick-nhusb-base-20161204:1.49
	pgoyette-localcount-20161104:1.49
	netbsd-7-0-2-RELEASE:1.48
	nick-nhusb-base-20161004:1.49
	localcount-20160914:1.49
	netbsd-7-nhusb:1.48.0.10
	netbsd-7-nhusb-base:1.48
	pgoyette-localcount-20160806:1.49
	pgoyette-localcount-20160726:1.49
	pgoyette-localcount:1.49.0.2
	pgoyette-localcount-base:1.49
	nick-nhusb-base-20160907:1.49
	nick-nhusb-base-20160529:1.49
	netbsd-7-0-1-RELEASE:1.48
	nick-nhusb-base-20160422:1.49
	nick-nhusb-base-20160319:1.49
	nick-nhusb-base-20151226:1.49
	netbsd-7-0:1.48.0.8
	netbsd-7-0-RELEASE:1.48
	nick-nhusb-base-20150921:1.49
	netbsd-7-0-RC3:1.48
	netbsd-7-0-RC2:1.48
	netbsd-7-0-RC1:1.48
	nick-nhusb-base-20150606:1.48
	nick-nhusb-base-20150406:1.48
	nick-nhusb:1.48.0.6
	nick-nhusb-base:1.48
	netbsd-5-2-3-RELEASE:1.33
	netbsd-5-1-5-RELEASE:1.33
	netbsd-6-0-6-RELEASE:1.42
	netbsd-6-1-5-RELEASE:1.42
	netbsd-7:1.48.0.4
	netbsd-7-base:1.48
	yamt-pagecache-base9:1.48
	yamt-pagecache-tag8:1.42.2.1
	netbsd-6-1-4-RELEASE:1.42
	netbsd-6-0-5-RELEASE:1.42
	tls-earlyentropy:1.48.0.2
	tls-earlyentropy-base:1.48
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.48
	riastradh-drm2-base3:1.48
	netbsd-6-1-3-RELEASE:1.42
	netbsd-6-0-4-RELEASE:1.42
	netbsd-5-2-2-RELEASE:1.33
	netbsd-5-1-4-RELEASE:1.33
	netbsd-6-1-2-RELEASE:1.42
	netbsd-6-0-3-RELEASE:1.42
	netbsd-5-2-1-RELEASE:1.33
	netbsd-5-1-3-RELEASE:1.33
	rmind-smpnet-nbase:1.48
	netbsd-6-1-1-RELEASE:1.42
	riastradh-drm2-base2:1.43
	riastradh-drm2-base1:1.43
	riastradh-drm2:1.43.0.10
	riastradh-drm2-base:1.43
	rmind-smpnet:1.43.0.4
	rmind-smpnet-base:1.48
	netbsd-6-1:1.42.0.14
	netbsd-6-0-2-RELEASE:1.42
	netbsd-6-1-RELEASE:1.42
	khorben-n900:1.43.0.8
	netbsd-6-1-RC4:1.42
	netbsd-6-1-RC3:1.42
	agc-symver:1.43.0.6
	agc-symver-base:1.43
	netbsd-6-1-RC2:1.42
	netbsd-6-1-RC1:1.42
	yamt-pagecache-base8:1.43
	netbsd-5-2:1.33.0.18
	netbsd-6-0-1-RELEASE:1.42
	yamt-pagecache-base7:1.43
	netbsd-5-2-RELEASE:1.33
	netbsd-5-2-RC1:1.33
	matt-nb6-plus-nbase:1.42
	yamt-pagecache-base6:1.43
	netbsd-6-0:1.42.0.12
	netbsd-6-0-RELEASE:1.42
	netbsd-6-0-RC2:1.42
	tls-maxphys:1.43.0.2
	tls-maxphys-base:1.48
	matt-nb6-plus:1.42.0.10
	matt-nb6-plus-base:1.42
	netbsd-6-0-RC1:1.42
	jmcneill-usbmp-base10:1.42
	yamt-pagecache-base5:1.42
	jmcneill-usbmp-base9:1.42
	yamt-pagecache-base4:1.42
	jmcneill-usbmp-base8:1.42
	jmcneill-usbmp-base7:1.42
	jmcneill-usbmp-base6:1.42
	jmcneill-usbmp-base5:1.42
	jmcneill-usbmp-base4:1.42
	jmcneill-usbmp-base3:1.42
	jmcneill-usbmp-pre-base2:1.42
	jmcneill-usbmp-base2:1.42
	netbsd-6:1.42.0.8
	netbsd-6-base:1.42
	netbsd-5-1-2-RELEASE:1.33
	netbsd-5-1-1-RELEASE:1.33
	jmcneill-usbmp:1.42.0.6
	jmcneill-usbmp-base:1.42
	jmcneill-audiomp3:1.42.0.4
	jmcneill-audiomp3-base:1.42
	yamt-pagecache-base3:1.42
	yamt-pagecache-base2:1.42
	yamt-pagecache:1.42.0.2
	yamt-pagecache-base:1.42
	rmind-uvmplock-nbase:1.40
	cherry-xenmp:1.40.0.2
	cherry-xenmp-base:1.40
	jym-xensuspend-nbase:1.42
	uebayasi-xip-base7:1.39
	bouyer-quota2-nbase:1.39
	bouyer-quota2:1.39.0.4
	bouyer-quota2-base:1.39
	jruoho-x86intr:1.39.0.2
	jruoho-x86intr-base:1.39
	matt-mips64-premerge-20101231:1.39
	matt-nb5-mips64-premerge-20101231:1.33
	matt-nb5-pq3:1.33.0.16
	matt-nb5-pq3-base:1.33
	netbsd-5-1:1.33.0.14
	uebayasi-xip-base6:1.39
	uebayasi-xip-base5:1.39
	netbsd-5-1-RELEASE:1.33
	uebayasi-xip-base4:1.39
	uebayasi-xip-base3:1.39
	yamt-nfs-mp-base11:1.39
	netbsd-5-1-RC4:1.33
	matt-nb5-mips64-k15:1.33
	uebayasi-xip-base2:1.39
	yamt-nfs-mp-base10:1.39
	netbsd-5-1-RC3:1.33
	netbsd-5-1-RC2:1.33
	uebayasi-xip-base1:1.38
	netbsd-5-1-RC1:1.33
	rmind-uvmplock:1.38.0.4
	rmind-uvmplock-base:1.40
	yamt-nfs-mp-base9:1.38
	uebayasi-xip:1.38.0.2
	uebayasi-xip-base:1.38
	netbsd-5-0-2-RELEASE:1.33
	matt-nb5-mips64-premerge-20091211:1.33
	matt-premerge-20091211:1.38
	yamt-nfs-mp-base8:1.36
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.33
	matt-nb4-mips64-k7-u2a-k9b:1.33
	matt-nb5-mips64-u1-k1-k5:1.33
	yamt-nfs-mp-base7:1.36
	matt-nb5-mips64:1.33.0.12
	netbsd-5-0-1-RELEASE:1.33
	jymxensuspend-base:1.36
	yamt-nfs-mp-base6:1.36
	yamt-nfs-mp-base5:1.36
	yamt-nfs-mp-base4:1.36
	yamt-nfs-mp-base3:1.36
	nick-hppapmap-base4:1.36
	nick-hppapmap-base3:1.36
	netbsd-5-0:1.33.0.10
	netbsd-5-0-RELEASE:1.33
	netbsd-5-0-RC4:1.33
	netbsd-5-0-RC3:1.33
	nick-hppapmap-base2:1.33
	netbsd-5-0-RC2:1.33
	jym-xensuspend:1.33.0.8
	jym-xensuspend-base:1.42
	netbsd-5-0-RC1:1.33
	haad-dm-base2:1.33
	haad-nbase2:1.33
	ad-audiomp2:1.33.0.6
	ad-audiomp2-base:1.33
	netbsd-5:1.33.0.4
	netbsd-5-base:1.33
	nick-hppapmap:1.33.0.2
	nick-hppapmap-base:1.36
	matt-mips64-base2:1.33
	haad-dm-base1:1.32
	wrstuden-revivesa-base-4:1.32
	netbsd-4-0-1-RELEASE:1.25
	wrstuden-revivesa-base-3:1.32
	wrstuden-revivesa-base-2:1.32
	wrstuden-fixsa-newbase:1.25.2.4
	nick-csl-alignment-base5:1.27
	haad-dm:1.31.0.10
	haad-dm-base:1.33
	wrstuden-revivesa-base-1:1.31
	simonb-wapbl-nbase:1.31
	yamt-pf42-base4:1.31
	simonb-wapbl:1.31.0.8
	simonb-wapbl-base:1.31
	yamt-pf42-base3:1.31
	hpcarm-cleanup-nbase:1.31
	yamt-pf42-baseX:1.31
	yamt-pf42-base2:1.31
	yamt-nfs-mp-base2:1.31
	wrstuden-revivesa:1.31.0.6
	wrstuden-revivesa-base:1.31
	yamt-nfs-mp:1.31.0.4
	yamt-nfs-mp-base:1.31
	yamt-pf42:1.31.0.2
	yamt-pf42-base:1.31
	ad-socklock-base1:1.31
	yamt-lazymbuf-base15:1.31
	yamt-lazymbuf-base14:1.31
	keiichi-mipv6-nbase:1.31
	mjf-devfs2:1.30.0.6
	mjf-devfs2-base:1.33
	nick-net80211-sync:1.30.0.4
	nick-net80211-sync-base:1.30
	keiichi-mipv6:1.30.0.2
	keiichi-mipv6-base:1.31
	bouyer-xeni386-merge1:1.29
	matt-armv6-prevmlocking:1.27.24.1
	wrstuden-fixsa-base-1:1.25
	vmlocking2-base3:1.29
	netbsd-4-0:1.25.0.8
	netbsd-4-0-RELEASE:1.25
	bouyer-xeni386-nbase:1.29
	yamt-kmem-base3:1.29
	cube-autoconf:1.29.0.10
	cube-autoconf-base:1.29
	yamt-kmem-base2:1.29
	bouyer-xeni386:1.29.0.8
	bouyer-xeni386-base:1.29
	yamt-kmem:1.29.0.6
	yamt-kmem-base:1.29
	vmlocking2-base2:1.29
	reinoud-bufcleanup-nbase:1.29
	vmlocking2:1.29.0.4
	vmlocking2-base1:1.29
	netbsd-4-0-RC5:1.25
	matt-nb4-arm:1.25.0.6
	matt-nb4-arm-base:1.25
	matt-armv6-nbase:1.31
	jmcneill-base:1.29
	netbsd-4-0-RC4:1.25
	mjf-devfs:1.29.0.2
	mjf-devfs-base:1.30
	bouyer-xenamd64-base2:1.29
	vmlocking-nbase:1.29
	yamt-x86pmap-base4:1.29
	bouyer-xenamd64:1.28.0.2
	bouyer-xenamd64-base:1.29
	netbsd-4-0-RC3:1.25
	yamt-x86pmap-base3:1.28
	yamt-x86pmap-base2:1.28
	netbsd-4-0-RC2:1.25
	yamt-x86pmap:1.27.0.26
	yamt-x86pmap-base:1.27
	netbsd-4-0-RC1:1.25
	matt-armv6:1.27.0.24
	matt-armv6-base:1.29
	jmcneill-pm:1.27.0.22
	jmcneill-pm-base:1.29
	hpcarm-cleanup:1.27.0.20
	hpcarm-cleanup-base:1.30
	nick-csl-alignment:1.27.0.18
	nick-csl-alignment-base:1.27
	matt-mips64:1.27.0.16
	matt-mips64-base:1.27
	netbsd-3-1-1-RELEASE:1.15.10.1
	netbsd-3-0-3-RELEASE:1.15.10.1
	yamt-idlelwp-base8:1.27
	wrstuden-fixsa:1.25.0.4
	wrstuden-fixsa-base:1.25.2.4
	ppcoea-renovation:1.27.0.14
	ppcoea-renovation-base:1.28
	thorpej-atomic:1.27.0.12
	thorpej-atomic-base:1.27
	reinoud-bufcleanup:1.27.0.10
	reinoud-bufcleanup-base:1.29
	mjf-ufs-trans:1.27.0.8
	mjf-ufs-trans-base:1.27
	vmlocking:1.27.0.6
	vmlocking-base:1.28
	ad-audiomp:1.27.0.4
	ad-audiomp-base:1.27
	yamt-idlelwp:1.27.0.2
	post-newlock2-merge:1.27
	newlock2-nbase:1.27
	yamt-splraiseipl-base5:1.26
	yamt-splraiseipl-base4:1.26
	yamt-splraiseipl-base3:1.26
	abandoned-netbsd-4-base:1.24
	abandoned-netbsd-4:1.24.0.2
	netbsd-3-1:1.15.10.1.0.4
	netbsd-3-1-RELEASE:1.15.10.1
	netbsd-3-0-2-RELEASE:1.15.10.1
	yamt-splraiseipl-base2:1.24
	netbsd-3-1-RC4:1.15.10.1
	yamt-splraiseipl:1.24.0.6
	yamt-splraiseipl-base:1.24
	netbsd-3-1-RC3:1.15.10.1
	yamt-pdpolicy-base9:1.24
	newlock2:1.24.0.4
	newlock2-base:1.27
	yamt-pdpolicy-base8:1.24
	netbsd-3-1-RC2:1.15.10.1
	netbsd-3-1-RC1:1.15.10.1
	yamt-pdpolicy-base7:1.24
	netbsd-4:1.25.0.2
	netbsd-4-base:1.25
	yamt-pdpolicy-base6:1.24
	chap-midi-nbase:1.22
	netbsd-3-0-1-RELEASE:1.15.10.1
	gdamore-uart:1.22.0.4
	gdamore-uart-base:1.22
	simonb-timcounters-final:1.19.6.1
	yamt-pdpolicy-base5:1.22
	chap-midi:1.22.0.2
	chap-midi-base:1.22
	yamt-pdpolicy-base4:1.19
	yamt-pdpolicy-base3:1.19
	peter-altq-base:1.19
	peter-altq:1.19.0.12
	yamt-pdpolicy-base2:1.19
	elad-kernelauth-base:1.19
	elad-kernelauth:1.19.0.10
	yamt-pdpolicy:1.19.0.8
	yamt-pdpolicy-base:1.19
	yamt-uio_vmspace-base5:1.19
	simonb-timecounters:1.19.0.6
	simonb-timecounters-base:1.22
	rpaulo-netinet-merge-pcb:1.19.0.4
	rpaulo-netinet-merge-pcb-base:1.24
	yamt-uio_vmspace:1.19.0.2
	netbsd-3-0:1.15.10.1.0.2
	netbsd-3-0-RELEASE:1.15.10.1
	netbsd-3-0-RC6:1.15.10.1
	yamt-readahead-base3:1.18
	netbsd-3-0-RC5:1.15.10.1
	netbsd-3-0-RC4:1.15.10.1
	netbsd-3-0-RC3:1.15.10.1
	yamt-readahead-base2:1.18
	netbsd-3-0-RC2:1.15.10.1
	yamt-readahead-pervnode:1.18
	yamt-readahead-perfile:1.18
	yamt-readahead:1.18.0.6
	yamt-readahead-base:1.18
	netbsd-3-0-RC1:1.15.10.1
	yamt-vop-base3:1.18
	netbsd-2-0-3-RELEASE:1.13.2.1
	netbsd-2-1:1.13.2.1.0.4
	yamt-vop-base2:1.18
	thorpej-vnode-attr:1.18.0.4
	thorpej-vnode-attr-base:1.18
	netbsd-2-1-RELEASE:1.13.2.1
	yamt-vop:1.18.0.2
	yamt-vop-base:1.18
	netbsd-2-1-RC6:1.13.2.1
	netbsd-2-1-RC5:1.13.2.1
	netbsd-2-1-RC4:1.13.2.1
	netbsd-2-1-RC3:1.13.2.1
	netbsd-2-1-RC2:1.13.2.1
	netbsd-2-1-RC1:1.13.2.1
	yamt-lazymbuf:1.17.0.2
	yamt-km-base4:1.15
	netbsd-2-0-2-RELEASE:1.13.2.1
	yamt-km-base3:1.15
	netbsd-3:1.15.0.10
	netbsd-3-base:1.15
	yamt-km-base2:1.15
	yamt-km:1.15.0.6
	yamt-km-base:1.15
	kent-audio2:1.15.0.4
	kent-audio2-base:1.15
	netbsd-2-0-1-RELEASE:1.13.2.1
	kent-audio1-beforemerge:1.15
	netbsd-2:1.13.2.1.0.2
	netbsd-2-base:1.13.2.1
	kent-audio1:1.15.0.2
	kent-audio1-base:1.15
	netbsd-2-0-RELEASE:1.13.2.1
	netbsd-2-0-RC5:1.13.2.1
	netbsd-2-0-RC4:1.13.2.1
	netbsd-2-0-RC3:1.13.2.1
	netbsd-2-0-RC2:1.13.2.1
	netbsd-2-0-RC1:1.13.2.1
	netbsd-2-0:1.13.0.2
	netbsd-2-0-base:1.13
	ktrace-lwp:1.5.0.2
	ktrace-lwp-base:1.18;
locks; strict;
comment	@# @;


1.53
date	2023.06.03.08.52.56;	author lukem;	state Exp;
branches;
next	1.52;
commitid	JFrjk5m11qFkNtrE;

1.52
date	2020.09.06.07.20.28;	author mrg;	state Exp;
branches;
next	1.51;
commitid	IFqEYW6MZdeXkXmC;

1.51
date	2018.07.25.23.45.32;	author kamil;	state Exp;
branches;
next	1.50;
commitid	Lcj3I3cyT8RYJzLA;

1.50
date	2018.06.02.14.30.07;	author christos;	state Exp;
branches
	1.50.2.1;
next	1.49;
commitid	GfAZHbOeqzIVnIEA;

1.49
date	2015.08.20.11.38.27;	author uebayasi;	state Exp;
branches
	1.49.16.1;
next	1.48;

1.48
date	2014.01.15.22.25.22;	author joerg;	state Exp;
branches
	1.48.6.1;
next	1.47;

1.47
date	2014.01.12.15.26.29;	author tsutsui;	state Exp;
branches;
next	1.46;

1.46
date	2013.11.01.00.18.24;	author christos;	state Exp;
branches;
next	1.45;

1.45
date	2013.08.22.00.13.00;	author matt;	state Exp;
branches;
next	1.44;

1.44
date	2013.08.21.08.15.19;	author matt;	state Exp;
branches;
next	1.43;

1.43
date	2012.08.10.12.18.15;	author joerg;	state Exp;
branches
	1.43.2.1
	1.43.4.1;
next	1.42;

1.42
date	2011.06.20.06.52.38;	author mrg;	state Exp;
branches
	1.42.2.1;
next	1.41;

1.41
date	2011.06.16.16.39.53;	author joerg;	state Exp;
branches;
next	1.40;

1.40
date	2011.05.20.22.29.55;	author joerg;	state Exp;
branches
	1.40.2.1;
next	1.39;

1.39
date	2010.05.27.06.58.14;	author dholland;	state Exp;
branches
	1.39.2.1;
next	1.38;

1.38
date	2009.11.30.21.40.35;	author dsl;	state Exp;
branches
	1.38.2.1
	1.38.4.1;
next	1.37;

1.37
date	2009.11.20.17.28.19;	author dsl;	state Exp;
branches;
next	1.36;

1.36
date	2009.04.03.10.38.12;	author tsutsui;	state Exp;
branches;
next	1.35;

1.35
date	2009.03.30.09.22.52;	author tsutsui;	state Exp;
branches;
next	1.34;

1.34
date	2009.03.12.17.16.59;	author abs;	state Exp;
branches;
next	1.33;

1.33
date	2008.10.20.03.02.07;	author christos;	state Exp;
branches
	1.33.2.1
	1.33.8.1;
next	1.32;

1.32
date	2008.08.29.00.02.23;	author gmcgarry;	state Exp;
branches;
next	1.31;

1.31
date	2008.03.15.18.00.32;	author dsl;	state Exp;
branches
	1.31.4.1
	1.31.6.1
	1.31.10.1;
next	1.30;

1.30
date	2008.01.31.11.11.09;	author sborrill;	state Exp;
branches
	1.30.2.1
	1.30.6.1;
next	1.29;

1.29
date	2007.10.17.19.54.59;	author garbled;	state Exp;
branches
	1.29.2.1;
next	1.28;

1.28
date	2007.09.27.01.57.24;	author ad;	state Exp;
branches;
next	1.27;

1.27
date	2007.01.27.07.21.32;	author cbiere;	state Exp;
branches
	1.27.6.1
	1.27.14.1
	1.27.22.1
	1.27.24.1
	1.27.26.1;
next	1.26;

1.26
date	2006.12.03.19.14.08;	author dsl;	state Exp;
branches;
next	1.25;

1.25
date	2006.10.23.21.57.46;	author christos;	state Exp;
branches
	1.25.2.1
	1.25.4.1;
next	1.24;

1.24
date	2006.06.25.15.01.00;	author lukem;	state Exp;
branches
	1.24.4.1
	1.24.6.1;
next	1.23;

1.23
date	2006.06.25.14.35.18;	author lukem;	state Exp;
branches;
next	1.22;

1.22
date	2006.05.13.03.37.47;	author lukem;	state Exp;
branches
	1.22.4.1;
next	1.21;

1.21
date	2006.05.13.03.19.28;	author lukem;	state Exp;
branches;
next	1.20;

1.20
date	2006.05.12.01.23.51;	author mrg;	state Exp;
branches;
next	1.19;

1.19
date	2005.12.11.12.17.48;	author christos;	state Exp;
branches
	1.19.4.1
	1.19.6.1
	1.19.8.1
	1.19.12.1;
next	1.18;

1.18
date	2005.09.17.16.49.25;	author chs;	state Exp;
branches;
next	1.17;

1.17
date	2005.05.05.18.03.04;	author christos;	state Exp;
branches
	1.17.2.1;
next	1.16;

1.16
date	2005.05.01.03.07.12;	author christos;	state Exp;
branches;
next	1.15;

1.15
date	2004.09.03.21.55.17;	author thorpej;	state Exp;
branches
	1.15.10.1;
next	1.14;

1.14
date	2004.06.21.18.20.08;	author jmc;	state Exp;
branches;
next	1.13;

1.13
date	2003.10.15.03.49.57;	author gson;	state Exp;
branches
	1.13.2.1;
next	1.12;

1.12
date	2003.10.13.06.15.00;	author lukem;	state Exp;
branches;
next	1.11;

1.11
date	2003.10.09.10.29.39;	author dsl;	state Exp;
branches;
next	1.10;

1.10
date	2003.10.08.18.51.50;	author dsl;	state Exp;
branches;
next	1.9;

1.9
date	2003.10.08.04.25.45;	author lukem;	state Exp;
branches;
next	1.8;

1.8
date	2003.08.30.18.25.07;	author fvdl;	state Exp;
branches;
next	1.7;

1.7
date	2003.08.30.15.15.01;	author fvdl;	state Exp;
branches;
next	1.6;

1.6
date	2003.07.25.21.16.01;	author dsl;	state Exp;
branches;
next	1.5;

1.5
date	2003.07.01.13.36.59;	author simonb;	state Exp;
branches
	1.5.2.1;
next	1.4;

1.4
date	2003.05.12.14.34.55;	author dsl;	state Exp;
branches;
next	1.3;

1.3
date	2003.04.26.19.14.17;	author fvdl;	state Exp;
branches;
next	1.2;

1.2
date	2003.04.16.22.34.00;	author dsl;	state Exp;
branches;
next	1.1;

1.1
date	2003.04.16.22.17.44;	author dsl;	state Exp;
branches;
next	;

1.50.2.1
date	2019.06.10.22.06.21;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.49.16.1
date	2018.06.25.07.25.42;	author pgoyette;	state Exp;
branches;
next	1.49.16.2;
commitid	8PtAu9af7VvhiDHA;

1.49.16.2
date	2018.07.28.04.37.35;	author pgoyette;	state Exp;
branches;
next	;
commitid	1UP1xAIUxv1ZgRLA;

1.48.6.1
date	2015.09.22.12.05.44;	author skrll;	state Exp;
branches;
next	;

1.43.2.1
date	2014.08.20.00.03.07;	author tls;	state Exp;
branches;
next	1.43.2.2;

1.43.2.2
date	2017.12.03.11.36.18;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;

1.43.4.1
date	2013.08.28.23.59.17;	author rmind;	state Exp;
branches;
next	1.43.4.2;

1.43.4.2
date	2014.05.18.17.45.13;	author rmind;	state Exp;
branches;
next	;

1.42.2.1
date	2012.10.30.17.19.51;	author yamt;	state Exp;
branches;
next	1.42.2.2;

1.42.2.2
date	2014.05.22.11.39.52;	author yamt;	state Exp;
branches;
next	;

1.40.2.1
date	2011.06.23.14.19.16;	author cherry;	state Exp;
branches;
next	;

1.39.2.1
date	2011.06.06.09.05.52;	author jruoho;	state Exp;
branches;
next	;

1.38.2.1
date	2010.08.17.06.44.39;	author uebayasi;	state Exp;
branches;
next	;

1.38.4.1
date	2010.05.30.05.16.55;	author rmind;	state Exp;
branches;
next	1.38.4.2;

1.38.4.2
date	2011.05.31.03.04.05;	author rmind;	state Exp;
branches;
next	;

1.33.2.1
date	2009.04.28.07.34.13;	author skrll;	state Exp;
branches;
next	;

1.33.8.1
date	2009.05.13.17.17.51;	author jym;	state Exp;
branches;
next	1.33.8.2;

1.33.8.2
date	2009.11.01.13.58.35;	author jym;	state Exp;
branches;
next	1.33.8.3;

1.33.8.3
date	2011.03.29.20.42.59;	author jym;	state Exp;
branches;
next	1.33.8.4;

1.33.8.4
date	2011.08.27.15.37.27;	author jym;	state Exp;
branches;
next	;

1.31.4.1
date	2009.05.04.08.11.18;	author yamt;	state Exp;
branches;
next	1.31.4.2;

1.31.4.2
date	2010.03.11.15.02.30;	author yamt;	state Exp;
branches;
next	1.31.4.3;

1.31.4.3
date	2010.08.11.22.52.14;	author yamt;	state Exp;
branches;
next	;

1.31.6.1
date	2008.09.18.04.33.28;	author wrstuden;	state Exp;
branches;
next	;

1.31.10.1
date	2008.10.19.22.15.49;	author haad;	state Exp;
branches;
next	1.31.10.2;

1.31.10.2
date	2008.12.13.01.13.14;	author haad;	state Exp;
branches;
next	;

1.30.2.1
date	2008.03.24.07.15.00;	author keiichi;	state Exp;
branches;
next	;

1.30.6.1
date	2008.04.03.12.42.19;	author mjf;	state Exp;
branches;
next	1.30.6.2;

1.30.6.2
date	2008.09.28.10.40.01;	author mjf;	state Exp;
branches;
next	1.30.6.3;

1.30.6.3
date	2009.01.17.13.28.04;	author mjf;	state Exp;
branches;
next	;

1.29.2.1
date	2008.02.18.21.04.41;	author mjf;	state Exp;
branches;
next	;

1.27.6.1
date	2007.10.09.13.38.00;	author ad;	state Exp;
branches;
next	;

1.27.14.1
date	2007.10.03.19.23.57;	author garbled;	state Exp;
branches;
next	;

1.27.22.1
date	2007.10.02.18.27.28;	author joerg;	state Exp;
branches;
next	;

1.27.24.1
date	2007.11.06.23.17.51;	author matt;	state Exp;
branches;
next	1.27.24.2;

1.27.24.2
date	2008.03.23.02.04.07;	author matt;	state Exp;
branches;
next	;

1.27.26.1
date	2007.10.06.15.34.57;	author yamt;	state Exp;
branches;
next	;

1.25.2.1
date	2008.02.22.20.30.55;	author bouyer;	state Exp;
branches;
next	1.25.2.2;

1.25.2.2
date	2008.02.28.20.37.52;	author bouyer;	state Exp;
branches;
next	1.25.2.3;

1.25.2.3
date	2008.03.19.19.22.09;	author bouyer;	state Exp;
branches;
next	1.25.2.4;

1.25.2.4
date	2008.03.19.19.23.03;	author bouyer;	state Exp;
branches;
next	;

1.25.4.1
date	2008.06.03.20.47.14;	author skrll;	state Exp;
branches;
next	;

1.24.4.1
date	2006.11.18.21.29.20;	author ad;	state Exp;
branches;
next	1.24.4.2;

1.24.4.2
date	2007.01.12.01.00.51;	author ad;	state Exp;
branches;
next	1.24.4.3;

1.24.4.3
date	2007.02.01.08.48.04;	author ad;	state Exp;
branches;
next	;

1.24.6.1
date	2006.12.10.07.16.19;	author yamt;	state Exp;
branches;
next	;

1.22.4.1
date	2006.07.13.17.48.54;	author gdamore;	state Exp;
branches;
next	;

1.19.4.1
date	2006.09.09.02.40.22;	author rpaulo;	state Exp;
branches;
next	;

1.19.6.1
date	2006.06.01.22.34.53;	author kardel;	state Exp;
branches;
next	;

1.19.8.1
date	2006.05.24.10.56.52;	author yamt;	state Exp;
branches;
next	1.19.8.2;

1.19.8.2
date	2006.06.26.12.44.53;	author yamt;	state Exp;
branches;
next	;

1.19.12.1
date	2006.05.24.15.47.58;	author tron;	state Exp;
branches;
next	;

1.17.2.1
date	2006.06.21.14.52.44;	author yamt;	state Exp;
branches;
next	1.17.2.2;

1.17.2.2
date	2006.12.30.20.46.19;	author yamt;	state Exp;
branches;
next	1.17.2.3;

1.17.2.3
date	2007.02.26.09.07.04;	author yamt;	state Exp;
branches;
next	1.17.2.4;

1.17.2.4
date	2007.10.27.11.26.51;	author yamt;	state Exp;
branches;
next	1.17.2.5;

1.17.2.5
date	2008.02.04.09.22.09;	author yamt;	state Exp;
branches;
next	1.17.2.6;

1.17.2.6
date	2008.03.17.09.14.21;	author yamt;	state Exp;
branches;
next	;

1.15.10.1
date	2005.09.27.20.04.22;	author tron;	state Exp;
branches;
next	;

1.13.2.1
date	2004.06.22.07.54.06;	author tron;	state Exp;
branches;
next	;

1.5.2.1
date	2004.08.03.10.36.19;	author skrll;	state Exp;
branches;
next	1.5.2.2;

1.5.2.2
date	2004.09.18.14.35.50;	author skrll;	state Exp;
branches;
next	1.5.2.3;

1.5.2.3
date	2004.09.21.13.17.10;	author skrll;	state Exp;
branches;
next	1.5.2.4;

1.5.2.4
date	2005.11.10.13.56.53;	author skrll;	state Exp;
branches;
next	;


desc
@@


1.53
log
@bsd.own.mk: rename to CC_WNO_ADDRESS_OF_PACKED_MEMBER

Provide a single variable
	CC_WNO_ADDRESS_OF_PACKED_MEMBER
with options for both clang and gcc, to replace
	CLANG_NO_ADDR_OF_PACKED_MEMBER
	CC_NO_ADDR_OF_PACKED_MEMBER
	GCC_NO_ADDR_OF_PACKED_MEMBER

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.
@
text
@# $NetBSD: Makefile.bootxx,v 1.52 2020/09/06 07:20:28 mrg Exp $

S=	${.CURDIR}/../../../../..

AFLAGS.bootxx.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
AFLAGS.pbr.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}

NOPIE=
NOMAN=
NOLIBCSANITIZER=
NOSANITIZER=
PROG?= bootxx_${FS}
BINDIR= /usr/mdec
BINMODE= 0444

PRIMARY_LOAD_ADDRESS=0x1000
SECONDARY_LOAD_ADDRESS=0x10000

# We ought (need?) to fit into track 0 of a 1.2M floppy.
# This restricts us to 15 sectors (including pbr and label)
BOOTXX_SECTORS?=15
BOOTXX_MAXSIZE?= $$(( ${BOOTXX_SECTORS} * 512 ))

SRCS= pbr.S label.S bootxx.S boot1.c

.include <bsd.init.mk>

STRIPFLAG=	# nothing

LIBCRT0=	# nothing
LIBCRTI=	# nothing
LIBCRTBEGIN=	# nothing
LIBCRTEND=	# nothing
LIBC=		# nothing

BINDIR=/usr/mdec
BINMODE=444

.PATH:	${.CURDIR}/.. ${.CURDIR}/../../lib

LDFLAGS+= -nostdlib -Wl,-N -Wl,-e,start
CPPFLAGS+= -DBOOTXX
# CPPFLAGS+= -D__daddr_t=int32_t
CPPFLAGS+= -I ${.CURDIR}/../../lib -I ${.OBJDIR}
CPPFLAGS+= -DBOOTXX_SECTORS=${BOOTXX_SECTORS}
CPPFLAGS+= -DPRIMARY_LOAD_ADDRESS=${PRIMARY_LOAD_ADDRESS}
CPPFLAGS+= -DSECONDARY_LOAD_ADDRESS=${SECONDARY_LOAD_ADDRESS}
CPPFLAGS+= -DXXfs_open=${FS}_open
CPPFLAGS+= -DXXfs_close=${FS}_close
CPPFLAGS+= -DXXfs_read=${FS}_read
CPPFLAGS+= -DXXfs_stat=${FS}_stat
CPPFLAGS+= -DFS=${FS}
# CPPFLAGS+= -DBOOT_MSG_COM0

# Make sure we override any optimization options specified by the user
.include "${.PARSEDIR}/../Makefile.inc"
COPTS=	${OPT_SIZE.${ACTIVE_CC}}
DBG=

CPPFLAGS+= -DNO_LBA_CHECK

.if ${MACHINE_ARCH} == "x86_64"
LDFLAGS+=  -Wl,-m,elf_i386
AFLAGS+=   -m32
CPUFLAGS=  -m32
LIBKERN_ARCH=i386
KERNMISCMAKEFLAGS="LIBKERN_ARCH=i386"
.else
CPPFLAGS+= -DEPIA_HACK
CPUFLAGS=  -march=i386 -mtune=i386
.endif

CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes
CPPFLAGS+= -nostdinc -D_STANDALONE
CPPFLAGS+= -I$S

CPPFLAGS+= -DLIBSA_SINGLE_FILESYSTEM=xxfs \
		-DLIBSA_NO_TWIDDLE \
		-DLIBSA_NO_FD_CHECKING \
		-DLIBSA_NO_RAW_ACCESS \
		-DLIBSA_NO_FS_WRITE \
		-DLIBSA_NO_FS_SEEK \
		-DLIBSA_SINGLE_DEVICE=blkdev \
		-DLIBKERN_OPTIMISE_SPACE \
		-D"blkdevioctl(x,y,z)=EINVAL" \
		-D"blkdevclose(f)=0" \
		-D"devopen(f,n,fl)=(*(fl)=(void *)n,0)" \
		-DLIBSA_NO_DISKLABEL_MSGS

# -DLIBSA_FS_SINGLECOMPONENT 

# CPPFLAGS+= -DBOOTXX_RAID1_SUPPORT

I386_STAND_DIR?= $S/arch/i386/stand

### find out what to use for libi386
I386DIR= ${I386_STAND_DIR}/lib
.include "${I386DIR}/Makefile.inc"
LIBI386= ${I386LIB}

### find out what to use for libsa
SA_AS= library
SAMISCMAKEFLAGS+="SA_USE_LOADFILE=yes"
.include "${S}/lib/libsa/Makefile.inc"
LIBSA= ${SALIB}

### find out what to use for libkern
KERN_AS=        library
.include "${S}/lib/libkern/Makefile.inc"
LIBKERN=        ${KERNLIB}

LDSCRIPT ?= $S/arch/i386/conf/stand.ldscript

cleandir distclean: .WAIT cleanlibdir

cleanlibdir:
	-rm -rf lib

LIBLIST= ${LIBI386} ${LIBSA} ${LIBKERN} ${LIBI386} ${LIBSA}

CLEANFILES+= ${PROG}.sym ${PROG}.map

${PROG}: ${OBJS} ${LIBLIST} ${LDSCRIPT}
	${_MKTARGET_LINK}
	${CC} -o ${PROG}.sym ${LDFLAGS} -Wl,-Ttext,${PRIMARY_LOAD_ADDRESS} \
		-T ${LDSCRIPT} -Wl,-Map,${PROG}.map -Wl,-cref ${OBJS} ${LIBLIST}
	${OBJCOPY} -O binary ${PROG}.sym ${PROG}
	@@ sz=$$(${TOOL_STAT} -f '%z' ${PROG}); \
	if [ "$$sz" -gt "${BOOTXX_MAXSIZE}" ]; then \
		echo "### ${PROG} size $$sz is larger than ${BOOTXX_MAXSIZE}" >&2; \
		rm ${PROG}; \
		! :; \
	else \
		: pad to sector boundary; \
		pad=$$(( 512 - ( $$sz & 511 ) )); \
		[ $$pad = 512 ] || \
		    dd if=/dev/zero bs=1 count=$$pad >>${PROG} 2>/dev/null; \
		echo "${PROG} size $$sz, $$((${BOOTXX_MAXSIZE} - $$sz)) free"; \
	fi

CWARNFLAGS.gcc+=	${CC_WNO_ADDRESS_OF_PACKED_MEMBER}

.include <bsd.prog.mk>
KLINK_MACHINE=	i386
.include <bsd.klinks.mk>
@


1.52
log
@add support for new GCC 9 warnings that may be too much to fix
right now.  new address-of-packed-member and format-overflow
warnings have new GCC_NO_ADDR_OF_PACKED_MEMBER amd
GCC_NO_FORMAT_OVERFLOW variables to remove these warnings.

apply to a bunch of the tree.  mostly, these are real bugs that
should be fixed, but in many cases, only by removing the 'packed'
attribute from some structure that doesn't really need it.  (i
looked at many different ones, and while perhaps 60-80% were
already properly aligned, it wasn't clear to me that the uses
were always coming from sane data vs network alignment, so it
doesn't seem safe to remove packed without careful research for
each affect struct.)  clang already warned (and was not erroring)
for many of these cases, but gcc picked up dozens more.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.51 2018/07/25 23:45:32 kamil Exp $
d141 1
a141 1
CWARNFLAGS.gcc+=	${GCC_NO_ADDR_OF_PACKED_MEMBER}
@


1.51
log
@Specify NOLIBCSANITIZER in x86 bootloader-like code under sys/arch/

Set NOLIBCSANITIZER for i386 and amd64 specific bootloader-like code.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.50 2018/06/02 14:30:07 christos Exp $
d141 2
@


1.50
log
@- Disable MKSANITIZER
- Redo using NOPIE
- Add NORELRO
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.49 2015/08/20 11:38:27 uebayasi Exp $
d10 1
@


1.50.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.51 2018/07/25 23:45:32 kamil Exp $
a9 1
NOLIBCSANITIZER=
@


1.49
log
@${PROG} depends on ${LDSCRIPT}.
@
text
@d1 1
a1 1
# $NetBSD$
d8 1
a8 3
PIE_CFLAGS=
PIE_LDFLAGS=
PIE_AFLAGS=
d10 1
d25 1
a25 1
.include <bsd.own.mk>
@


1.49.16.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.50 2018/06/02 14:30:07 christos Exp $
d8 3
a10 1
NOPIE=
a11 1
NOSANITIZER=
d26 1
a26 1
.include <bsd.init.mk>
@


1.49.16.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.51 2018/07/25 23:45:32 kamil Exp $
a9 1
NOLIBCSANITIZER=
@


1.48
log
@Reduce amount of -no-integrated-as on x86 as .code16 is now supported by
LLVM.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.47 2014/01/12 15:26:29 tsutsui Exp $
d123 1
a123 1
${PROG}: ${OBJS} ${LIBLIST}
@


1.48.6.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.49 2015/08/20 11:38:27 uebayasi Exp $
d123 1
a123 1
${PROG}: ${OBJS} ${LIBLIST} ${LDSCRIPT}
@


1.47
log
@Add empty LIBCRTI= as LIBCRT0 to build sa programs without installed DESTDIR.

XXX: probabry we should have bsd.saprog.mk or something.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.46 2013/11/01 00:18:24 christos Exp $
a5 1
AFLAGS.label.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
@


1.46
log
@provide an ldscript to strip the unwind sections
XXX: untested
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.45 2013/08/22 00:13:00 matt Exp $
d32 1
@


1.45
log
@Add a missing KLINK_MACHINE= i386
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.44 2013/08/21 08:15:19 matt Exp $
d112 1
d126 1
a126 1
		-Wl,-Map,${PROG}.map -Wl,-cref ${OBJS} ${LIBLIST}
@


1.44
log
@Use <bsd.klinks.mk>
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.43 2012/08/10 12:18:15 joerg Exp $
d141 1
@


1.43
log
@Don't depend on HAVE_GCC being always present.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.42 2011/06/20 06:52:38 mrg Exp $
a95 12
CLEANFILES+= machine x86

.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN:
	-rm -f machine && ln -s $S/arch/i386/include machine
	-rm -f x86 && ln -s $S/arch/x86/include x86
.ifdef LIBOBJ
	-rm -f lib && ln -s ${LIBOBJ}/lib lib
	mkdir -p ${LIBOBJ}/lib
.endif
.endif

d141 1
@


1.43.2.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
# $NetBSD$
d6 1
a31 1
LIBCRTI=	# nothing
d96 12
a123 1
LDSCRIPT ?= $S/arch/i386/conf/stand.ldscript
d137 1
a137 1
		-T ${LDSCRIPT} -Wl,-Map,${PROG}.map -Wl,-cref ${OBJS} ${LIBLIST}
a152 2
KLINK_MACHINE=	i386
.include <bsd.klinks.mk>
@


1.43.2.2
log
@update from HEAD
@
text
@d123 1
a123 1
${PROG}: ${OBJS} ${LIBLIST} ${LDSCRIPT}
@


1.43.4.1
log
@sync with head
@
text
@d1 1
a1 1
# $NetBSD$
d96 12
a152 2
KLINK_MACHINE=	i386
.include <bsd.klinks.mk>
@


1.43.4.2
log
@sync with head
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.43.4.1 2013/08/28 23:59:17 rmind Exp $
d6 1
a31 1
LIBCRTI=	# nothing
a111 1
LDSCRIPT ?= $S/arch/i386/conf/stand.ldscript
d125 1
a125 1
		-T ${LDSCRIPT} -Wl,-Map,${PROG}.map -Wl,-cref ${OBJS} ${LIBLIST}
@


1.42
log
@remove all the code that supported HAVE_GCC=3.  mostly from chuq.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.41 2011/06/16 16:39:53 joerg Exp $
a61 1
.if defined(HAVE_GCC)
a71 1
.endif
@


1.42.2.1
log
@sync with head
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.42 2011/06/20 06:52:38 mrg Exp $
d62 1
d73 1
@


1.42.2.2
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.42.2.1 2012/10/30 17:19:51 yamt Exp $
d6 1
a31 1
LIBCRTI=	# nothing
d96 12
a123 1
LDSCRIPT ?= $S/arch/i386/conf/stand.ldscript
d137 1
a137 1
		-T ${LDSCRIPT} -Wl,-Map,${PROG}.map -Wl,-cref ${OBJS} ${LIBLIST}
a152 2
KLINK_MACHINE=	i386
.include <bsd.klinks.mk>
@


1.41
log
@Refactor compiler-specific optimizer flags. Mark bootxx as supported
with clang.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.40 2011/05/20 22:29:55 joerg Exp $
a70 3
.if ${HAVE_GCC} == 3
CPUFLAGS=  -mcpu=i386
.else
a73 1
.endif
@


1.40
log
@Disable integrated assembler for files that use .code16 or .code32 for
now. Disable Clang completely for bootxx and netboot for now until the
size issue has been sorted out.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.39 2010/05/27 06:58:14 dholland Exp $
a4 2
UNSUPPORTED_COMPILER.clang=	# defined

d56 2
a57 1
COPTS=  -Os -momit-leaf-frame-pointer
a78 1
COPTS+=    -ffreestanding
@


1.40.2.1
log
@Catchup with rmind-uvmplock merge.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.42 2011/06/20 06:52:38 mrg Exp $
d5 2
d58 1
a58 2
.include "${.PARSEDIR}/../Makefile.inc"
COPTS=	${OPT_SIZE.${ACTIVE_CC}}
d72 3
d78 1
d80 1
@


1.39
log
@Introduce .WAIT into the cleandir rule for blasting the libsa/libkern/etc.
trees, because it can race with the libsa/libkern/etc. makefiles' own
cleandir rules. I think I've found all of the uses of the offending idiom...
Closes PR 43360.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.38 2009/11/30 21:40:35 dsl Exp $
d5 6
@


1.39.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.40 2011/05/20 22:29:55 joerg Exp $
a4 6
UNSUPPORTED_COMPILER.clang=	# defined

AFLAGS.bootxx.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
AFLAGS.label.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
AFLAGS.pbr.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}

@


1.38
log
@Move relocation address to lower memory (0x1000) further away from the
BIOS 40:0 segment than previously but giving more room for heap that 0x8800.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.37 2009/11/20 17:28:19 dsl Exp $
d127 1
a127 1
cleandir distclean: cleanlibdir
@


1.38.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
# $NetBSD$
d127 1
a127 1
cleandir distclean: .WAIT cleanlibdir
@


1.38.4.1
log
@sync with head
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.38 2009/11/30 21:40:35 dsl Exp $
d127 1
a127 1
cleandir distclean: .WAIT cleanlibdir
@


1.38.4.2
log
@sync with head
@
text
@d1 1
a1 1
# $NetBSD$
a4 6
UNSUPPORTED_COMPILER.clang=	# defined

AFLAGS.bootxx.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
AFLAGS.label.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
AFLAGS.pbr.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}

@


1.37
log
@Change relay address for mbr and bootxx code to be 0x8800.
I'm not sure why I used 0x600, but I have a feeling that might
sometimes corrupt bios data.
0x8800 is far enough above 0x7e00 for a sector read to the latter address.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.36 2009/04/03 10:38:12 tsutsui Exp $
d13 1
a13 1
PRIMARY_LOAD_ADDRESS=0x8800
@


1.36
log
@Remove obsolete LIBSA_USE_MEMCPY and LIBSA_USE_MEMSET.
They were removed from <lib/libsa/stand.h> on December 2007.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.35 2009/03/30 09:22:52 tsutsui Exp $
d13 1
a13 1
PRIMARY_LOAD_ADDRESS=0x600
d49 1
@


1.35
log
@Remove extra trailing slash in ${S} path.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.34 2009/03/12 17:16:59 abs Exp $
a83 2
		-DLIBSA_USE_MEMCPY \
		-DLIBSA_USE_MEMSET \
@


1.34
log
@Prefer MACHINE_ARCH to MACHINE in some tests
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.33 2008/10/20 03:02:07 christos Exp $
d3 1
a3 1
S=	${.CURDIR}/../../../../../
@


1.33
log
@disable PIE for boot code.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.32 2008/08/29 00:02:23 gmcgarry Exp $
d57 1
a57 1
.if ${MACHINE} == "amd64"
@


1.33.8.1
log
@Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.36 2009/04/03 10:38:12 tsutsui Exp $
d3 1
a3 1
S=	${.CURDIR}/../../../../..
d57 1
a57 1
.if ${MACHINE_ARCH} == "x86_64"
d84 2
@


1.33.8.2
log
@Sync with HEAD.
@
text
@@


1.33.8.3
log
@More sync fixes. And add the mbr_gpt files.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.39 2010/05/27 06:58:14 dholland Exp $
d13 1
a13 1
PRIMARY_LOAD_ADDRESS=0x1000
a48 1
# CPPFLAGS+= -DBOOT_MSG_COM0
d126 1
a126 1
cleandir distclean: .WAIT cleanlibdir
@


1.33.8.4
log
@Sync with HEAD. Most notably: uvm/pmap work done by rmind@@, and MP Xen
work of cherry@@.

No regression observed on suspend/restore.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.42 2011/06/20 06:52:38 mrg Exp $
a4 4
AFLAGS.bootxx.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
AFLAGS.label.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}
AFLAGS.pbr.S= ${${ACTIVE_CC} == "clang":?-no-integrated-as:}

d52 1
a52 2
.include "${.PARSEDIR}/../Makefile.inc"
COPTS=	${OPT_SIZE.${ACTIVE_CC}}
d66 3
d72 1
d74 1
@


1.33.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.36 2009/04/03 10:38:12 tsutsui Exp $
d3 1
a3 1
S=	${.CURDIR}/../../../../..
d57 1
a57 1
.if ${MACHINE_ARCH} == "x86_64"
d84 2
@


1.32
log
@Wrap compiler-specific flags with HAVE_GCC and HAVE_PCC as necessary. Add a few flags for PCC.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.31 2008/03/15 18:00:32 dsl Exp $
d5 3
@


1.31
log
@Add -momit-leaf-frame-pointer, saves a few bytes.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.30 2008/01/31 11:11:09 sborrill Exp $
d53 1
d68 1
@


1.31.4.1
log
@sync with head.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.31 2008/03/15 18:00:32 dsl Exp $
d3 1
a3 1
S=	${.CURDIR}/../../../../..
a4 3
PIE_CFLAGS=
PIE_LDFLAGS=
PIE_AFLAGS=
d53 1
a53 2
.if defined(HAVE_GCC)
.if ${MACHINE_ARCH} == "x86_64"
a66 1
.endif
d79 2
@


1.31.4.2
log
@sync with head
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.31.4.1 2009/05/04 08:11:18 yamt Exp $
d13 1
a13 1
PRIMARY_LOAD_ADDRESS=0x1000
a48 1
# CPPFLAGS+= -DBOOT_MSG_COM0
@


1.31.4.3
log
@sync with head.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.31.4.2 2010/03/11 15:02:30 yamt Exp $
d127 1
a127 1
cleandir distclean: .WAIT cleanlibdir
@


1.31.10.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.32 2008/08/29 00:02:23 gmcgarry Exp $
a52 1
.if defined(HAVE_GCC)
a66 1
.endif
@


1.31.10.2
log
@Update haad-dm branch to haad-dm-base2.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.33 2008/10/20 03:02:07 christos Exp $
a4 3
PIE_CFLAGS=
PIE_LDFLAGS=
PIE_AFLAGS=
@


1.31.6.1
log
@Sync with wrstuden-revivesa-base-2.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.31 2008/03/15 18:00:32 dsl Exp $
a52 1
.if defined(HAVE_GCC)
a66 1
.endif
@


1.30
log
@Add EPIA_HACK so that boot loaders work on EDEN 5000 processors.
This worked in NetBSD 3, but broke by NetBSD 4.

My offer of a development machine to fix this one and for all is still open!
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.29 2007/10/17 19:54:59 garbled Exp $
d48 1
a48 1
COPTS=  -Os
@


1.30.6.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
# $NetBSD$
d48 1
a48 1
COPTS=  -Os -momit-leaf-frame-pointer
@


1.30.6.2
log
@Sync with HEAD.
@
text
@a52 1
.if defined(HAVE_GCC)
a66 1
.endif
@


1.30.6.3
log
@Sync with HEAD.
@
text
@a4 3
PIE_CFLAGS=
PIE_LDFLAGS=
PIE_AFLAGS=
@


1.30.2.1
log
@sync with head.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.31 2008/03/15 18:00:32 dsl Exp $
d48 1
a48 1
COPTS=  -Os -momit-leaf-frame-pointer
@


1.29
log
@Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree.  Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches.  The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.27.14.1 2007/10/03 19:23:57 garbled Exp $
d60 1
@


1.29.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.30 2008/01/31 11:11:09 sborrill Exp $
a59 1
CPPFLAGS+= -DEPIA_HACK
@


1.28
log
@Remove -DBOOT_ELF64 to make build on amd64.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.27 2007/01/27 07:21:32 cbiere Exp $
@


1.27
log
@Don't define UNALIGNED_ACCESS, it's not used anymore.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.26 2006/12/03 19:14:08 dsl Exp $
a58 1
CPPFLAGS+= -DBOOT_ELF64
@


1.27.24.1
log
@sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.29 2007/10/17 19:54:59 garbled Exp $
d59 1
@


1.27.24.2
log
@sync with HEAD
@
text
@d1 1
a1 1
# Makefile.bootxx,v 1.27.24.1 2007/11/06 23:17:51 matt Exp
d48 1
a48 1
COPTS=  -Os -momit-leaf-frame-pointer
a59 1
CPPFLAGS+= -DEPIA_HACK
@


1.27.6.1
log
@Sync with head.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.27 2007/01/27 07:21:32 cbiere Exp $
d59 1
@


1.27.26.1
log
@sync with head.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.27 2007/01/27 07:21:32 cbiere Exp $
d59 1
@


1.27.14.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.28 2007/09/27 01:57:24 ad Exp $
d59 1
@


1.27.22.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.28 2007/09/27 01:57:24 ad Exp $
d59 1
@


1.26
log
@Add -DUNALIGNED_ACCESS here, libsa/dosfs.c seems to need it.
Probably it ought to come from some generic .h file, but I've no idea
which - nor if any existing define has the same effect.
In any case this saves oodles of bytes in bootxx_msdos.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.25 2006/10/23 21:57:46 christos Exp $
a72 2
CPPFLAGS+= -DUNALIGNED_ACCESS

@


1.25
log
@nuke $DBG, since it contains -O2; suggested by uwe.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.24 2006/06/25 15:01:00 lukem Exp $
d73 2
@


1.25.4.1
log
@Sync with netbsd-4.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.25.2.4 2008/03/19 19:23:03 bouyer Exp $
d48 1
a48 1
COPTS=  -Os -momit-leaf-frame-pointer
a60 1
CPPFLAGS+= -DEPIA_HACK
@


1.25.2.1
log
@Pull up following revision(s) (requested by sborrill in ticket #1064):
	sys/arch/i386/stand/bootxx/Makefile.bootxx: revision 1.30
Add EPIA_HACK so that boot loaders work on EDEN 5000 processors.
This worked in NetBSD 3, but broke by NetBSD 4.
@
text
@d1 1
a1 1
# $NetBSD$
a60 1
CPPFLAGS+= -DEPIA_HACK
@


1.25.2.2
log
@Revert ticket #1064, it breaks the i386 build:
### bootxx_msdos size 7688 is larger than 7680
--- bootxx_msdos ---
*** [bootxx_msdos] Error code 1
1 error
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.25 2006/10/23 21:57:46 christos Exp $
d61 1
@


1.25.2.3
log
@Pull up following revision(s) (requested by sborrill in ticket #1064):
	sys/arch/i386/stand/bootxx/Makefile.bootxx: revision 1.30
Add EPIA_HACK so that boot loaders work on EDEN 5000 processors.
This worked in NetBSD 3, but broke by NetBSD 4.
My offer of a development machine to fix this one and for all is still open!
Add EPIA_HACK so that boot loaders work on EDEN 5000 processors.
This worked in NetBSD 3, but broke by NetBSD 4.
pulled up to netbsd-4:
Pull up following revision(s) (requested by sborrill in ticket #1064):
        sys/arch/i386/stand/bootxx/Makefile.bootxx: revision 1.30
Add EPIA_HACK so that boot loaders work on EDEN 5000 processors.
This worked in NetBSD 3, but broke by NetBSD 4.
thanks !
--
Manuel Bouyer <bouyer@@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--
===========================================================================
X-Request-Action: Opened by bouyer@@antioche.eu.org.
X-Request-Action: sborrill@@netbsd.org notified by bouyer@@antioche.eu.org.
X-Request-Acted: Thu Feb 28 20:40:12 2008 (1204231212)
Return-Path: <owner-pullup-4@@netbsd.org>
X-Original-To: pullup-4@@releng.netbsd.org
Delivered-To: pullup-4@@releng.netbsd.org
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
        by narn.NetBSD.org (Postfix) with ESMTP id B26C563B90D
        for <pullup-4@@releng.netbsd.org>; Thu, 28 Feb 2008 20:40:11 +0000 (UTC)
Received: by mail.netbsd.org (Postfix)
        id A378563B198; Thu, 28 Feb 2008 20:40:11 +0000 (UTC)
Delivered-To: pullup-4@@netbsd.org
Received: from chassiron.antioche.eu.org (chassiron.antioche.eu.org [IPv6:2001:7a8:242c:1::1])
        by mail.netbsd.org (Postfix) with ESMTP id 904DC63B18C;
        Thu, 28 Feb 2008 20:40:09 +0000 (UTC)
Received: from rochebonne.antioche.eu.org (rochebonne [IPv6:2001:7a8:242c:0:240:95ff:fe45:4702])
        by chassiron.antioche.eu.org (8.13.8/8.12.11) with ESMTP id m1SKe7jq002295;
        Thu, 28 Feb 2008 21:40:07 +0100 (MET)
Received: (from bouyer@@localhost)
        by rochebonne.antioche.eu.org (8.13.5.20060308/8.12.8/Submit) id m1SKe7N3008428;
        Thu, 28 Feb 2008 21:40:07 +0100 (CET)
Date: Thu, 28 Feb 2008 21:40:07 +0100
From: Manuel Bouyer <bouyer@@antioche.eu.org>
To: Stephen Borrill <sborrill@@netbsd.org>
Cc: pullup-4@@netbsd.org
Subject: Re: [pullup-4 #1064] [Fwd: CVS commit: src/sys/arch/i386/stand/bootxx]
Message-Id: <20080228204006.GA9446@@antioche.eu.org>
References: <47A3061A.5020204@@netbsd.org> <20080222204932.GF2429@@antioche.eu.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20080222204932.GF2429@@antioche.eu.org>
User-Agent: Mutt/1.5.13 (2006-08-11)
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (chassiron.antioche.eu.org [IPv6:2001:7a8:242c:1::1]); Thu, 28 Feb 2008 21:40:08 +0100 (MET)
On Fri, Feb 22, 2008 at 09:49:32PM +0100, Manuel Bouyer wrote:
On Fri, Feb 01, 2008 at 11:44:26AM +0000, Stephen Borrill wrote:
> Please pull this up to netbsd-4 so that my boxes will boot!
>
> Module Name:	src
> Committed By:	sborrill
> Date:		Thu Jan 31 11:11:10 UTC 2008
>
> Modified Files:
> 	src/sys/arch/i386/stand/bootxx: Makefile.bootxx
>
> Log Message:
> Add EPIA_HACK so that boot loaders work on EDEN 5000 processors.
> This worked in NetBSD 3, but broke by NetBSD 4.
pulled up to netbsd-4:
Pull up following revision(s) (requested by sborrill in ticket #1064):
sys/arch/i386/stand/bootxx/Makefile.bootxx: revision 1.30
Add EPIA_HACK so that boot loaders work on EDEN 5000 processors.
This worked in NetBSD 3, but broke by NetBSD 4.
I reverted this change; it cause bootxx_msdos to overflow:
binary bootxx_msdos.sym bootxx_msdos
*** [bootxx_msdos] Error code 1
--
Manuel Bouyer <bouyer@@antioche.eu.org>
     NetBSD: 26 ans d'experience feront toujours la difference
--
@
text
@d1 1
a1 1
# $NetBSD$
a60 1
CPPFLAGS+= -DEPIA_HACK
@


1.25.2.4
log
@Pull up following revision(s) (requested by dsl in ticket #1101):
	sys/arch/i386/stand/bootxx/Makefile.bootxx: revision 1.31
Add -momit-leaf-frame-pointer, saves a few bytes.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.25.2.3 2008/03/19 19:22:09 bouyer Exp $
d48 1
a48 1
COPTS=  -Os -momit-leaf-frame-pointer
@


1.24
log
@Use ${TOOL_STAT} to get the size, instead of ls | tr | cut.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.23 2006/06/25 14:35:18 lukem Exp $
d49 1
@


1.24.6.1
log
@sync with head.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.24 2006/06/25 15:01:00 lukem Exp $
a48 1
DBG=
a71 2
CPPFLAGS+= -DUNALIGNED_ACCESS

@


1.24.4.1
log
@Sync with head.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.25 2006/10/23 21:57:46 christos Exp $
a48 1
DBG=
@


1.24.4.2
log
@Sync with head.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.26 2006/12/03 19:14:08 dsl Exp $
a72 2
CPPFLAGS+= -DUNALIGNED_ACCESS

@


1.24.4.3
log
@Sync with head.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.27 2007/01/27 07:21:32 cbiere Exp $
d73 2
@


1.23
log
@Use  -Wl,-Ttext,foo  instead of  -Ttext foo  when using $(CC)
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.22 2006/05/13 03:37:47 lukem Exp $
d136 1
a136 1
	@@ sz=$$(ls -ln ${PROG}|tr -s ' '|cut -d' ' -f5); \
@


1.22
log
@Convert to using CC instead of LD, as LDFLAGS is for CC not LD.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.20 2006/05/12 01:23:51 mrg Exp $
d133 1
a133 1
	${CC} -o ${PROG}.sym ${LDFLAGS} -Ttext ${PRIMARY_LOAD_ADDRESS} \
@


1.22.4.1
log
@Merge from HEAD.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.24 2006/06/25 15:01:00 lukem Exp $
d133 1
a133 1
	${CC} -o ${PROG}.sym ${LDFLAGS} -Wl,-Ttext,${PRIMARY_LOAD_ADDRESS} \
d136 1
a136 1
	@@ sz=$$(${TOOL_STAT} -f '%z' ${PROG}); \
@


1.21
log
@support MAKEVERBOSE
@
text
@d34 1
a34 1
LDFLAGS+= -N -e start
d53 1
a53 1
LD+=  -m elf_i386
d133 2
a134 2
	${LD} -o ${PROG}.sym ${LDFLAGS} -Ttext ${PRIMARY_LOAD_ADDRESS} \
		-Map ${PROG}.map -cref ${OBJS} ${LIBLIST}
@


1.20
log
@- -mcpu=i386 is gone in GCC4
- we need -Wno-attributes (to avoid __packed__ warnings)
- use -Wno-pointer-sign
- remove some redundancy from pxeboot/Makefile
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.19 2005/12/11 12:17:48 christos Exp $
d132 1
@


1.19
log
@merge ktrace-lwp.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.5.2.4 2005/11/10 13:56:53 skrll Exp $
d60 1
d62 3
@


1.19.4.1
log
@sync with head
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.24 2006/06/25 15:01:00 lukem Exp $
d34 1
a34 1
LDFLAGS+= -nostdlib -Wl,-N -Wl,-e,start
d53 1
a53 1
LDFLAGS+=  -Wl,-m,elf_i386
a59 1
.if ${HAVE_GCC} == 3
a60 3
.else
CPUFLAGS=  -march=i386 -mtune=i386
.endif
d128 2
a129 3
	${_MKTARGET_LINK}
	${CC} -o ${PROG}.sym ${LDFLAGS} -Wl,-Ttext,${PRIMARY_LOAD_ADDRESS} \
		-Wl,-Map,${PROG}.map -Wl,-cref ${OBJS} ${LIBLIST}
d131 1
a131 1
	@@ sz=$$(${TOOL_STAT} -f '%z' ${PROG}); \
@


1.19.6.1
log
@Sync with head.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.19 2005/12/11 12:17:48 christos Exp $
d34 1
a34 1
LDFLAGS+= -nostdlib -Wl,-N -Wl,-e,start
d53 1
a53 1
LDFLAGS+=  -Wl,-m,elf_i386
a59 1
.if ${HAVE_GCC} == 3
a60 3
.else
CPUFLAGS=  -march=i386 -mtune=i386
.endif
d128 2
a129 3
	${_MKTARGET_LINK}
	${CC} -o ${PROG}.sym ${LDFLAGS} -Ttext ${PRIMARY_LOAD_ADDRESS} \
		-Wl,-Map,${PROG}.map -Wl,-cref ${OBJS} ${LIBLIST}
@


1.19.12.1
log
@Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
@
text
@d1 1
a1 1
# $NetBSD$
d34 1
a34 1
LDFLAGS+= -nostdlib -Wl,-N -Wl,-e,start
d53 1
a53 1
LDFLAGS+=  -Wl,-m,elf_i386
a59 1
.if ${HAVE_GCC} == 3
a60 3
.else
CPUFLAGS=  -march=i386 -mtune=i386
.endif
d128 2
a129 3
	${_MKTARGET_LINK}
	${CC} -o ${PROG}.sym ${LDFLAGS} -Ttext ${PRIMARY_LOAD_ADDRESS} \
		-Wl,-Map,${PROG}.map -Wl,-cref ${OBJS} ${LIBLIST}
@


1.19.8.1
log
@sync with head.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.19 2005/12/11 12:17:48 christos Exp $
d34 1
a34 1
LDFLAGS+= -nostdlib -Wl,-N -Wl,-e,start
d53 1
a53 1
LDFLAGS+=  -Wl,-m,elf_i386
a59 1
.if ${HAVE_GCC} == 3
a60 3
.else
CPUFLAGS=  -march=i386 -mtune=i386
.endif
d128 2
a129 3
	${_MKTARGET_LINK}
	${CC} -o ${PROG}.sym ${LDFLAGS} -Ttext ${PRIMARY_LOAD_ADDRESS} \
		-Wl,-Map,${PROG}.map -Wl,-cref ${OBJS} ${LIBLIST}
@


1.19.8.2
log
@sync with head.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.19.8.1 2006/05/24 10:56:52 yamt Exp $
d133 1
a133 1
	${CC} -o ${PROG}.sym ${LDFLAGS} -Wl,-Ttext,${PRIMARY_LOAD_ADDRESS} \
d136 1
a136 1
	@@ sz=$$(${TOOL_STAT} -f '%z' ${PROG}); \
@


1.18
log
@use a .BEGIN target to make the various symlinks,
the previous way had problems with parallel make.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.17 2005/05/05 18:03:04 christos Exp $
@


1.17
log
@add dependall and realdepend to the targets that we need to call in the
beginning. XXX: The real fix (handle dependencies in .BEGIN) is forthcoming.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.16 2005/05/01 03:07:12 christos Exp $
a88 5
.if !make(obj) && !make(clean) && !make(cleandir)
.NOPATH: machine x86
.endif

depend dependall realdepend realall: machine x86 lib
d91 4
a94 11
machine::
	-rm -f $@@
	ln -s $S/arch/i386/include $@@

x86::
	-rm -f $@@
	ln -s $S/arch/x86/include $@@

${OBJS}: machine x86 lib

lib:
d96 3
a98 5
	-rm -f $@@
	ln -s ${LIBOBJ}/lib .
	[ -d ${LIBOBJ}/lib ] || mkdir ${LIBOBJ}/lib
.else
	mkdir lib
@


1.17.2.1
log
@sync with head.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.17 2005/05/05 18:03:04 christos Exp $
d34 1
a34 1
LDFLAGS+= -nostdlib -Wl,-N -Wl,-e,start
d53 1
a53 1
LDFLAGS+=  -Wl,-m,elf_i386
a59 1
.if ${HAVE_GCC} == 3
a60 3
.else
CPUFLAGS=  -march=i386 -mtune=i386
.endif
d89 5
d96 11
a106 4
.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN:
	-rm -f machine && ln -s $S/arch/i386/include machine
	-rm -f x86 && ln -s $S/arch/x86/include x86
d108 5
a112 3
	-rm -f lib && ln -s ${LIBOBJ}/lib lib
	mkdir -p ${LIBOBJ}/lib
.endif
d142 2
a143 3
	${_MKTARGET_LINK}
	${CC} -o ${PROG}.sym ${LDFLAGS} -Ttext ${PRIMARY_LOAD_ADDRESS} \
		-Wl,-Map,${PROG}.map -Wl,-cref ${OBJS} ${LIBLIST}
@


1.17.2.2
log
@sync with head.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.17.2.1 2006/06/21 14:52:44 yamt Exp $
a48 1
DBG=
a71 2
CPPFLAGS+= -DUNALIGNED_ACCESS

d133 1
a133 1
	${CC} -o ${PROG}.sym ${LDFLAGS} -Wl,-Ttext,${PRIMARY_LOAD_ADDRESS} \
d136 1
a136 1
	@@ sz=$$(${TOOL_STAT} -f '%z' ${PROG}); \
@


1.17.2.3
log
@sync with head.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.17.2.2 2006/12/30 20:46:19 yamt Exp $
d73 2
@


1.17.2.4
log
@sync with head.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.17.2.3 2007/02/26 09:07:04 yamt Exp $
d59 1
@


1.17.2.5
log
@sync with head.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.17.2.4 2007/10/27 11:26:51 yamt Exp $
a59 1
CPPFLAGS+= -DEPIA_HACK
@


1.17.2.6
log
@sync with head.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.17.2.5 2008/02/04 09:22:09 yamt Exp $
d48 1
a48 1
COPTS=  -Os -momit-leaf-frame-pointer
@


1.16
log
@More .BEGIN lossage.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.15 2004/09/03 21:55:17 thorpej Exp $
d93 1
a93 1
depend realall: machine x86 lib
@


1.15
log
@More complete fix for overriding CPUFLAGS and also apply fix to bootxx,
from Valeriy Ushakov.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.14 2004/06/21 18:20:08 jmc Exp $
a89 1
.BEGIN: machine x86 lib
d93 1
a93 1
realdepend realall: machine x86 lib
@


1.15.10.1
log
@Pull up following revision(s) (requested by chs in ticket #814):
	sys/arch/i386/stand/Makefile.booters: revision 1.61 via patch
	sys/arch/i386/stand/bootxx/Makefile.bootxx: revision 1.18 via patch
	sys/arch/i386/stand/boot/Makefile.boot: revision 1.24 via patch
use a .BEGIN target to make the various symlinks,
the previous way had problems with parallel make.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.15 2004/09/03 21:55:17 thorpej Exp $
d89 6
d97 11
a107 4
.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN:
	-rm -f machine && ln -s $S/arch/i386/include machine
	-rm -f x86 && ln -s $S/arch/x86/include x86
d109 5
a113 3
	-rm -f lib && ln -s ${LIBOBJ}/lib lib
	mkdir -p ${LIBOBJ}/lib
.endif
@


1.14
log
@Ignore errors on some rm -rf's for platforms that aren't quite
POSIX compliant
and return errors on r/o source (FreeBSD) for -rf. Fixes PR#25022
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.13 2003/10/15 03:49:57 gson Exp $
a5 1
STRIPFLAG=
d22 2
d55 1
a55 1
COPTS+=    -m32
d60 1
a60 1
COPTS+=    -mcpu=i386
@


1.13
log
@If a bootxx program already happened to be a multiple of 512 bytes in
length before padding, the shell command to conditionally pad it to
a multiple of 512 bytes returned a nonzero exit status, causing the
build to fail.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.12 2003/10/13 06:15:00 lukem Exp $
d135 1
a135 1
	rm -rf lib
@


1.13.2.1
log
@Pull up revision 1.14 (requested by jmc in ticket #531):
Ignore errors on some rm -rf's for platforms that aren't quite
POSIX compliant
and return errors on r/o source (FreeBSD) for -rf. Fixes PR#25022
@
text
@d1 1
a1 1
# $NetBSD$
d135 1
a135 1
	-rm -rf lib
@


1.12
log
@Instead of defining TERSE_ERROR by default (due to space constraints),
define NO_LBA_CHECK.  bootxx_msdos still needs TERSE_ERROR because its
BPB is larger than the default.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.11 2003/10/09 10:29:39 dsl Exp $
d153 1
a153 1
		[ $$pad != 512 ] && \
@


1.11
log
@Pick up X86_BOOT_MAGIC_* from bootblock.h
Move boot_params.S to lib (seems useful to use it in pxeboot).
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.10 2003/10/08 18:51:50 dsl Exp $
d49 1
a49 1
CPPFLAGS+= -DTERSE_ERROR
@


1.10
log
@Change the way the shared lib directory is handled.
Should now work if ${.OBJDIR} = ${.CURDIR}/obj.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.9 2003/10/08 04:25:45 lukem Exp $
a39 2
# Magic number also known by usr.sbin/installboot/arch/i386.c
CPPFLAGS+= -DX86_BOOT_MAGIC_1="('x' << 24 | 0x86b << 12 | 'm' << 4 | 1)"
@


1.9
log
@Overhaul MBR handling (part 1):

<sys/bootblock.h>:
    *	Added definitions for the Master Boot Record (MBR) used by
	a variety of systems (primarily i386), including the format
	of the BIOS Parameter Block (BPB).
	This information was cribbed from a variety of sources
	including <sys/disklabel_mbr.h> which this is a superset of.

	As part of this, some data structure elements and #defines
	were renamed to be more "namespace friendly" and consistent
	with other bootblocks and MBR documentation.
	Update all uses of the old names to the new names.

<sys/disklabel_mbr.h>:
    *	Deprecated in favor of <sys/bootblock.h> (the latter is more
	"host tool" friendly).

amd64 & i386:
    *	Renamed /usr/mdec/bootxx_dosfs to /usr/mdec/bootxx_msdos, to
	be consistent with the naming convention of the msdosfs tools.

    *	Removed /usr/mdec/bootxx_ufs, as it's equivalent to bootxx_ffsv1
	and it's confusing to have two functionally equivalent bootblocks,
	especially given that "ufs" has multiple meanings (it could be
	a synonym for "ffs", or the group of ffs/lfs/ext2fs file systems).

    *	Rework pbr.S (the first sector of bootxx_*):
	    +	Ensure that BPB (bytes 11..89) and the partition table
		(bytes 446..509) do not contain code.
	    +	Add support for booting from FAT partitions if BOOT_FROM_FAT
		is defined.  (Only set for bootxx_msdos).
	    +	Remove "dummy" partition 3; if people want to installboot(8)
		these to the start of the disk they can use fdisk(8) to
		create a real MBR partition table...
	    +	Compile with TERSE_ERROR so it fits because of the above.
		Whilst this is less user friendly, I feel it's important
		to have a valid partition table and BPB in the MBR/PBR.

    *	Renamed /usr/mdec/biosboot to /usr/mdec/boot, to be consistent
	with other platforms.

    *	Enable SUPPORT_DOSFS in /usr/mdec/boot (stage2), so that
    	we can boot off FAT partitions.

    *	Crank version of /usr/mdec/boot to 3.1, and fix some of the other
	entries in the version file.

installboot(8) (i386):
    *	Read the existing MBR of the filesystem and retain the BIOS
    	Parameter Block (BPB) in bytes 11..89 and the MBR partition
	table in bytes 446..509.  (Previously installboot(8) would
	trash those two sections of the MBR.)

mbrlabel(8):
    *	Use sys/lib/libkern/xlat_mbr_fstype.c instead of homegrown code
	to map the MBR partition type to the NetBSD disklabel type.


Test built "make release" for i386, and new bootblocks verified to work
(even off FAT!).
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.8 2003/08/30 18:25:07 fvdl Exp $
d91 1
a91 1
.BEGIN: machine x86
d95 1
a95 1
realdepend realall: machine x86
d106 10
a115 1
${OBJS}: machine x86
a118 1
I386DST= ${.OBJDIR}/../lib/i386
a123 1
SADST= ${.OBJDIR}/../lib/libsa
a129 1
KERNDST= ${.OBJDIR}/../lib/libkern
@


1.8
log
@Add -DBOOT_ELF64 for amd64.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.7 2003/08/30 15:15:01 fvdl Exp $
d7 1
a7 1
PROG= bootxx_${FS}
d50 2
@


1.7
log
@Add -m elf_i386 to ${LD}, not ${LDFLAGS}, since bsd.lib.mk doesn't
include ${LDFLAGS} when using ld -x on an object file.

XXX what's the point of these ld -x rules anyway?
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.6 2003/07/25 21:16:01 dsl Exp $
d57 1
@


1.6
log
@Report actual $MACHINE (so it will be amd64, not i386)
and filesystem type (could be useful)
in primary bootstrap banner message.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.5 2003/07/01 13:36:59 simonb Exp $
d52 1
a52 1
LDFLAGS+=  -m elf_i386
@


1.5
log
@Make this work without a populated destdir:
 machine and x86 symlinks.
 Include from right places.
 Don't depend on LIBCRT0,etc.

Also for the bootxx programs, keep the ELF object during the build
process.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.4 2003/05/12 14:34:55 dsl Exp $
d46 1
@


1.5.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.14 2004/06/21 18:20:08 jmc Exp $
d7 1
a7 1
PROG?= bootxx_${FS}
d40 2
a45 1
CPPFLAGS+= -DFS=${FS}
a49 2
CPPFLAGS+= -DNO_LBA_CHECK

d51 1
a51 1
LD+=  -m elf_i386
a55 1
CPPFLAGS+= -DBOOT_ELF64
d87 1
a87 1
.BEGIN: machine x86 lib
d91 1
a91 1
realdepend realall: machine x86 lib
d102 1
a102 10
${OBJS}: machine x86 lib

lib:
.ifdef LIBOBJ
	-rm -f $@@
	ln -s ${LIBOBJ}/lib .
	[ -d ${LIBOBJ}/lib ] || mkdir ${LIBOBJ}/lib
.else
	mkdir lib
.endif
d106 1
d112 1
d119 1
d127 1
a127 1
	-rm -rf lib
d145 1
a145 1
		[ $$pad = 512 ] || \
@


1.5.2.2
log
@Sync with HEAD.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.15 2004/09/03 21:55:17 thorpej Exp $
d6 1
a22 2
STRIPFLAG=	# nothing

d54 1
a54 1
CPUFLAGS=  -m32
d59 1
a59 1
CPUFLAGS=  -mcpu=i386
@


1.5.2.3
log
@Fix the sync with head I botched.
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.5.2.1 2004/08/03 10:36:19 skrll Exp $
@


1.5.2.4
log
@Sync with HEAD. Here we go again...
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.5.2.3 2004/09/21 13:17:10 skrll Exp $
d89 6
d97 11
a107 4
.if !make(obj) && !make(clean) && !make(cleandir)
.BEGIN:
	-rm -f machine && ln -s $S/arch/i386/include machine
	-rm -f x86 && ln -s $S/arch/x86/include x86
d109 5
a113 3
	-rm -f lib && ln -s ${LIBOBJ}/lib lib
	mkdir -p ${LIBOBJ}/lib
.endif
@


1.4
log
@Install into /usr/mdec
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.3 2003/04/26 19:14:17 fvdl Exp $
d87 2
a88 2
.BEGIN: machine
.NOPATH: machine
d91 2
a92 2
realdepend realall: machine
CLEANFILES+= machine
d98 5
a102 1
${OBJS}: machine
d131 1
a131 1
CLEANFILES+= ${PROG}.tmp ${PROG}.map
d134 1
a134 1
	${LD} -o ${PROG}.tmp ${LDFLAGS} -Ttext ${PRIMARY_LOAD_ADDRESS} \
d136 1
a136 2
	${OBJCOPY} -O binary ${PROG}.tmp ${PROG}
	rm -f ${PROG}.tmp
@


1.3
log
@x86_64 -> amd64
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.2 2003/04/16 22:34:00 dsl Exp $
d8 3
@


1.2
log
@Uncomment line that deletes tempory file
@
text
@d1 1
a1 1
# $NetBSD: Makefile.bootxx,v 1.1 2003/04/16 22:17:44 dsl Exp $
d47 1
a47 1
.if ${MACHINE} == "x86_64"
@


1.1
log
@bootxx: bootstrap code - installable by MI installboot.
Loads /boot using filesystem accesses (rather than a list of block numbers)
@
text
@d1 1
a1 1
# $NetBSD$
d130 1
a130 1
	# rm -f ${PROG}.tmp
@

