head	1.25;
access;
symbols
	RELENG_8_4:1.25.0.2
	RELENG_9_1_0_RELEASE:1.22.2.3.2.2
	RELENG_9_1:1.22.2.3.0.2
	RELENG_9_1_BP:1.22.2.3
	RELENG_8_3_0_RELEASE:1.20.2.1.8.1
	RELENG_8_3:1.20.2.1.0.8
	RELENG_8_3_BP:1.20.2.1
	RELENG_9_0_0_RELEASE:1.22.2.1.2.1
	RELENG_9_0:1.22.2.1.0.2
	RELENG_9_0_BP:1.22.2.1
	RELENG_9:1.22.0.2
	RELENG_9_BP:1.22
	RELENG_7_4_0_RELEASE:1.19.10.1.8.1
	RELENG_8_2_0_RELEASE:1.20.2.1.6.1
	RELENG_7_4:1.19.10.1.0.8
	RELENG_7_4_BP:1.19.10.1
	RELENG_8_2:1.20.2.1.0.6
	RELENG_8_2_BP:1.20.2.1
	RELENG_8_1_0_RELEASE:1.20.2.1.4.1
	RELENG_8_1:1.20.2.1.0.4
	RELENG_8_1_BP:1.20.2.1
	RELENG_7_3_0_RELEASE:1.19.10.1.6.1
	RELENG_7_3:1.19.10.1.0.6
	RELENG_7_3_BP:1.19.10.1
	RELENG_8_0_0_RELEASE:1.20.2.1.2.1
	RELENG_8_0:1.20.2.1.0.2
	RELENG_8_0_BP:1.20.2.1
	RELENG_8:1.20.0.2
	RELENG_8_BP:1.20
	RELENG_7_2_0_RELEASE:1.19.10.1.4.1
	RELENG_7_2:1.19.10.1.0.4
	RELENG_7_2_BP:1.19.10.1
	RELENG_7_1_0_RELEASE:1.19.10.1.2.1
	RELENG_6_4_0_RELEASE:1.19.2.1.2.1
	RELENG_7_1:1.19.10.1.0.2
	RELENG_7_1_BP:1.19.10.1
	RELENG_6_4:1.19.2.1.0.2
	RELENG_6_4_BP:1.19.2.1
	RELENG_7_0_0_RELEASE:1.19
	RELENG_6_3_0_RELEASE:1.19
	RELENG_7_0:1.19.0.14
	RELENG_7_0_BP:1.19
	RELENG_6_3:1.19.0.12
	RELENG_6_3_BP:1.19
	RELENG_7:1.19.0.10
	RELENG_7_BP:1.19
	RELENG_6_2_0_RELEASE:1.19
	RELENG_6_2:1.19.0.8
	RELENG_6_2_BP:1.19
	RELENG_5_5_0_RELEASE:1.18
	RELENG_5_5:1.18.0.8
	RELENG_5_5_BP:1.18
	RELENG_6_1_0_RELEASE:1.19
	RELENG_6_1:1.19.0.6
	RELENG_6_1_BP:1.19
	RELENG_6_0_0_RELEASE:1.19
	RELENG_6_0:1.19.0.4
	RELENG_6_0_BP:1.19
	RELENG_6:1.19.0.2
	RELENG_6_BP:1.19
	RELENG_5_4_0_RELEASE:1.18
	RELENG_5_4:1.18.0.6
	RELENG_5_4_BP:1.18
	RELENG_4_11_0_RELEASE:1.7.2.2
	RELENG_4_11:1.7.2.2.0.18
	RELENG_4_11_BP:1.7.2.2
	RELENG_5_3_0_RELEASE:1.18
	RELENG_5_3:1.18.0.4
	RELENG_5_3_BP:1.18
	RELENG_5:1.18.0.2
	RELENG_5_BP:1.18
	RELENG_4_10_0_RELEASE:1.7.2.2
	RELENG_4_10:1.7.2.2.0.16
	RELENG_4_10_BP:1.7.2.2
	RELENG_5_2_1_RELEASE:1.13
	RELENG_5_2_0_RELEASE:1.13
	RELENG_5_2:1.13.0.6
	RELENG_5_2_BP:1.13
	RELENG_4_9_0_RELEASE:1.7.2.2
	RELENG_4_9:1.7.2.2.0.14
	RELENG_4_9_BP:1.7.2.2
	RELENG_5_1_0_RELEASE:1.13
	RELENG_5_1:1.13.0.4
	RELENG_5_1_BP:1.13
	RELENG_4_8_0_RELEASE:1.7.2.2
	RELENG_4_8:1.7.2.2.0.12
	RELENG_4_8_BP:1.7.2.2
	RELENG_5_0_0_RELEASE:1.13
	RELENG_5_0:1.13.0.2
	RELENG_5_0_BP:1.13
	RELENG_4_7_0_RELEASE:1.7.2.2
	RELENG_4_7:1.7.2.2.0.10
	RELENG_4_7_BP:1.7.2.2
	RELENG_4_6_2_RELEASE:1.7.2.2
	RELENG_4_6_1_RELEASE:1.7.2.2
	RELENG_4_6_0_RELEASE:1.7.2.2
	RELENG_4_6:1.7.2.2.0.8
	RELENG_4_6_BP:1.7.2.2
	RELENG_4_5_0_RELEASE:1.7.2.2
	RELENG_4_5:1.7.2.2.0.6
	RELENG_4_5_BP:1.7.2.2
	RELENG_4_4_0_RELEASE:1.7.2.2
	RELENG_4_4:1.7.2.2.0.4
	RELENG_4_4_BP:1.7.2.2
	KSE_MILESTONE_2:1.11
	KSE_PRE_MILESTONE_2:1.11
	RELENG_4_3_0_RELEASE:1.7.2.2
	RELENG_4_3:1.7.2.2.0.2
	RELENG_4_3_BP:1.7.2.2
	RELENG_4_2_0_RELEASE:1.7.2.1
	RELENG_4_1_1_RELEASE:1.7.2.1
	PRE_SMPNG:1.9
	RELENG_4_1_0_RELEASE:1.7.2.1
	RELENG_3_5_0_RELEASE:1.5.2.2
	RELENG_4_0_0_RELEASE:1.7
	RELENG_4:1.7.0.2
	RELENG_4_BP:1.7
	RELENG_3_4_0_RELEASE:1.5.2.2
	RELENG_3_3_0_RELEASE:1.5.2.1
	RELENG_3_2_PAO:1.5.0.4
	RELENG_3_2_PAO_BP:1.5
	RELENG_3_2_0_RELEASE:1.5
	POST_VFS_BIO_NFS_PATCH:1.5
	PRE_VFS_BIO_NFS_PATCH:1.5
	POST_SMP_VMSHARE:1.5
	PRE_SMP_VMSHARE:1.5
	POST_NEWBUS:1.5
	PRE_NEWBUS:1.5
	RELENG_3_1_0_RELEASE:1.5
	RELENG_3:1.5.0.2
	RELENG_3_BP:1.5
	RELENG_3_0_0_RELEASE:1.5
	v0_80:1.1.1.1
	RNORDIER:1.1.1;
locks; strict;
comment	@# @;


1.25
date	2012.11.17.01.51.16;	author svnexp;	state Exp;
branches
	1.25.2.1;
next	1.24;

1.24
date	2012.05.09.08.04.29;	author avg;	state Exp;
branches;
next	1.23;

1.23
date	2012.02.28.18.30.18;	author dim;	state Exp;
branches;
next	1.22;

1.22
date	2011.02.20.19.33.47;	author dim;	state Exp;
branches
	1.22.2.1;
next	1.21;

1.21
date	2010.06.03.17.42.32;	author ed;	state Exp;
branches;
next	1.20;

1.20
date	2008.02.27.23.35.39;	author jhb;	state Exp;
branches
	1.20.2.1;
next	1.19;

1.19
date	2004.12.21.08.47.13;	author ru;	state Exp;
branches
	1.19.2.1
	1.19.10.1;
next	1.18;

1.18
date	2004.04.27.19.45.15;	author ru;	state Exp;
branches;
next	1.17;

1.17
date	2004.04.25.20.36.43;	author obrien;	state Exp;
branches;
next	1.16;

1.16
date	2004.04.25.19.50.20;	author obrien;	state Exp;
branches;
next	1.15;

1.15
date	2004.02.11.08.42.37;	author ru;	state Exp;
branches;
next	1.14;

1.14
date	2004.02.09.14.11.56;	author ru;	state Exp;
branches;
next	1.13;

1.13
date	2002.09.17.01.48.54;	author peter;	state Exp;
branches;
next	1.12;

1.12
date	2001.11.03.22.09.30;	author jhb;	state Exp;
branches;
next	1.11;

1.11
date	2001.07.21.14.32.42;	author rnordier;	state Exp;
branches;
next	1.10;

1.10
date	2000.10.02.17.23.15;	author rnordier;	state Exp;
branches;
next	1.9;

1.9
date	2000.08.24.20.57.44;	author jhb;	state Exp;
branches;
next	1.8;

1.8
date	2000.05.23.12.18.48;	author jhb;	state Exp;
branches;
next	1.7;

1.7
date	99.10.12.21.33.48;	author jhb;	state Exp;
branches
	1.7.2.1;
next	1.6;

1.6
date	99.08.28.00.40.04;	author peter;	state Exp;
branches;
next	1.5;

1.5
date	98.10.13.18.29.18;	author rnordier;	state Exp;
branches
	1.5.2.1;
next	1.4;

1.4
date	98.09.25.17.14.15;	author peter;	state Exp;
branches;
next	1.3;

1.3
date	98.09.17.23.52.04;	author msmith;	state Exp;
branches;
next	1.2;

1.2
date	98.09.14.18.27.05;	author msmith;	state Exp;
branches;
next	1.1;

1.1
date	98.09.12.04.29.23;	author rnordier;	state Exp;
branches
	1.1.1.1;
next	;

1.25.2.1
date	2012.11.17.01.51.16;	author svnexp;	state dead;
branches;
next	1.25.2.2;

1.25.2.2
date	2013.03.28.13.04.01;	author svnexp;	state Exp;
branches;
next	;

1.22.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.22.2.1.2.1;
next	1.22.2.2;

1.22.2.2
date	2012.03.13.18.39.57;	author dim;	state Exp;
branches;
next	1.22.2.3;

1.22.2.3
date	2012.06.29.10.01.56;	author avg;	state Exp;
branches
	1.22.2.3.2.1;
next	1.22.2.4;

1.22.2.4
date	2012.11.17.11.36.47;	author svnexp;	state Exp;
branches;
next	;

1.22.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.22.2.1.2.2;

1.22.2.1.2.2
date	2012.11.17.08.36.46;	author svnexp;	state Exp;
branches;
next	;

1.22.2.3.2.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.22.2.3.2.2;

1.22.2.3.2.2
date	2012.11.17.08.47.36;	author svnexp;	state Exp;
branches;
next	;

1.20.2.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.20.2.1.2.1
	1.20.2.1.4.1
	1.20.2.1.6.1
	1.20.2.1.8.1;
next	1.20.2.2;

1.20.2.2
date	2012.06.29.10.01.52;	author avg;	state Exp;
branches;
next	1.20.2.3;

1.20.2.3
date	2012.11.17.10.36.27;	author svnexp;	state Exp;
branches;
next	;

1.20.2.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.20.2.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.20.2.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.20.2.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.20.2.1.8.2;

1.20.2.1.8.2
date	2012.11.17.08.25.07;	author svnexp;	state Exp;
branches;
next	;

1.19.2.1
date	2008.03.18.17.44.28;	author jhb;	state Exp;
branches
	1.19.2.1.2.1;
next	1.19.2.2;

1.19.2.2
date	2012.11.17.07.42.38;	author svnexp;	state Exp;
branches;
next	;

1.19.2.1.2.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;

1.19.10.1
date	2008.03.18.17.43.36;	author jhb;	state Exp;
branches
	1.19.10.1.2.1
	1.19.10.1.4.1
	1.19.10.1.6.1
	1.19.10.1.8.1;
next	1.19.10.2;

1.19.10.2
date	2012.11.17.08.04.52;	author svnexp;	state Exp;
branches;
next	;

1.19.10.1.2.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.19.10.1.4.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.19.10.1.6.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.19.10.1.8.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.19.10.1.8.2;

1.19.10.1.8.2
date	2012.11.17.08.17.05;	author svnexp;	state Exp;
branches;
next	;

1.7.2.1
date	2000.07.06.23.04.28;	author obrien;	state Exp;
branches;
next	1.7.2.2;

1.7.2.2
date	2000.12.28.12.08.22;	author ps;	state Exp;
branches;
next	1.7.2.3;

1.7.2.3
date	2008.03.18.18.28.09;	author jhb;	state Exp;
branches;
next	1.7.2.4;

1.7.2.4
date	2012.11.17.07.25.20;	author svnexp;	state Exp;
branches;
next	;

1.5.2.1
date	99.08.29.16.20.48;	author peter;	state Exp;
branches;
next	1.5.2.2;

1.5.2.2
date	99.11.10.02.38.33;	author jhb;	state Exp;
branches;
next	;

1.1.1.1
date	98.09.12.04.29.23;	author rnordier;	state Exp;
branches;
next	;


desc
@@


1.25
log
@Switching exporter and resync
@
text
@# $FreeBSD: head/sys/boot/i386/btx/btx/Makefile 235154 2012-05-09 08:04:29Z avg $

PROG=	btx
INTERNALPROG=
NO_MAN=
SRCS=	btx.S

.if defined(BOOT_BTX_NOHANG)
BOOT_BTX_FLAGS=0x1
.else
BOOT_BTX_FLAGS=0x0
.endif

CFLAGS+=-DBTX_FLAGS=${BOOT_BTX_FLAGS}
CFLAGS+=-I${.CURDIR}/../../common

.if defined(BTX_SERIAL)
BOOT_COMCONSOLE_PORT?= 0x3f8
BOOT_COMCONSOLE_SPEED?= 9600
B2SIOFMT?=	0x3

CFLAGS+=-DBTX_SERIAL -DSIOPRT=${BOOT_COMCONSOLE_PORT} \
	-DSIOFMT=${B2SIOFMT} -DSIOSPD=${BOOT_COMCONSOLE_SPEED}
.endif

ORG=	0x9000

LDFLAGS=-e start -Ttext ${ORG} -Wl,-N,-S,--oformat,binary

.include <bsd.prog.mk>

# XXX: clang integrated-as doesn't grok .codeNN directives yet
CFLAGS.btx.S=		${CLANG_NO_IAS}
CFLAGS+=		${CFLAGS.${.IMPSRC:T}}
@


1.25.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:04:01 +0000
@
text
@d1 34
@


1.25.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 30
# $FreeBSD: releng/8.4/sys/boot/i386/btx/btx/Makefile 237755 2012-06-29 10:01:52Z avg $

PROG=	btx
INTERNALPROG=
NO_MAN=
SRCS=	btx.S

.if defined(BOOT_BTX_NOHANG)
BOOT_BTX_FLAGS=0x1
.else
BOOT_BTX_FLAGS=0x0
.endif

CFLAGS+=-DBTX_FLAGS=${BOOT_BTX_FLAGS}
CFLAGS+=-I${.CURDIR}/../../common

.if defined(BTX_SERIAL)
BOOT_COMCONSOLE_PORT?= 0x3f8
BOOT_COMCONSOLE_SPEED?= 9600
B2SIOFMT?=	0x3

CFLAGS+=-DBTX_SERIAL -DSIOPRT=${BOOT_COMCONSOLE_PORT} \
	-DSIOFMT=${B2SIOFMT} -DSIOSPD=${BOOT_COMCONSOLE_SPEED}
.endif

ORG=	0x9000

LDFLAGS=-N -e start -Ttext ${ORG} -Wl,-S,--oformat,binary

.include <bsd.prog.mk>
@


1.24
log
@SVN rev 235154 on 2012-05-09 08:04:29Z by avg

btxldr: future-proof argument passing from boot1/2-ish to loader

Place the arguments at a fixed offset of 0x800 withing the argument area
(of size 0x1000).  Allow variable size extended arguments first of which
should be a size of the extended arguments (including the size
parameter).

Consolidate all related definitions in a new i386/common/bootargs.h header.

Many thanks to jhb and bde for their guidance and reviews.

Reviewed by:	jhb, bde
Approved by:	jhb
MFC after:	1 month
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.23
log
@SVN rev 232263 on 2012-02-28 18:30:18Z by dim

Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, to
get rid of testing explicitly for clang (using ${CC:T:Mclang}) in
individual Makefiles.

Instead, use the following extra macros, for use with clang:
- NO_WERROR.clang       (disables -Werror)
- NO_WCAST_ALIGN.clang  (disables -Wcast-align)
- NO_WFORMAT.clang	(disables -Wformat and friends)
- CLANG_NO_IAS		(disables integrated assembler)
- CLANG_OPT_SMALL	(adds flags for extra small size optimizations)

As a side effect, this enables setting CC/CXX/CPP in src.conf instead of
make.conf!  For clang, use the following:

CC=clang
CXX=clang++
CPP=clang-cpp

MFC after:	2 weeks
@
text
@d15 1
@


1.22
log
@SVN rev 218893 on 2011-02-20 19:33:47Z by dim

Upgrade our copy of llvm/clang to r126079, from upstream's trunk.

This contains many improvements, primarily better C++ support, an
integrated assembler for x86 and support for -pg.
@
text
@a15 5
.if ${CC:T:Mclang} == "clang"
# XXX: clang integrated-as doesn't grok .codeNN directives yet
CFLAGS+=${.IMPSRC:T:Mbtx.S:C/^.+$/-no-integrated-as/}
.endif

d30 4
@


1.22.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.22.2.2
log
@SVN rev 232930 on 2012-03-13 18:39:57Z by dim

MFC r232263:

Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, to
get rid of testing explicitly for clang (using ${CC:T:Mclang}) in
individual Makefiles.

Instead, use the following extra macros, for use with clang:
- NO_WERROR.clang       (disables -Werror)
- NO_WCAST_ALIGN.clang  (disables -Wcast-align)
- NO_WFORMAT.clang	(disables -Wformat and friends)
- CLANG_NO_IAS		(disables integrated assembler)
- CLANG_OPT_SMALL	(adds flags for extra small size optimizations)

As a side effect, this enables setting CC/CXX/CPP in src.conf instead of
make.conf!  For clang, use the following:

CC=clang
CXX=clang++
CPP=clang-cpp
@
text
@d16 5
a34 4

# XXX: clang integrated-as doesn't grok .codeNN directives yet
CFLAGS.btx.S=		${CLANG_NO_IAS}
CFLAGS+=		${CFLAGS.${.IMPSRC:T}}
@


1.22.2.3
log
@SVN rev 237756 on 2012-06-29 10:01:56Z by avg

MFC r235154,r235158: btxldr: future-proof argument passing from
boot1/2-ish to loader
@
text
@a14 1
CFLAGS+=-I${.CURDIR}/../../common
@


1.22.2.4
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/9/sys/boot/i386/btx/btx/Makefile 237756 2012-06-29 10:01:56Z avg $
@


1.22.2.3.2.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.22.2.3.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.1/sys/boot/i386/btx/btx/Makefile 237756 2012-06-29 10:01:56Z avg $
@


1.22.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.22.2.1.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.0/sys/boot/i386/btx/btx/Makefile 218893 2011-02-20 19:33:47Z dim $
@


1.21
log
@SVN rev 208789 on 2010-06-03 17:42:32Z by ed

Use -Wl,-N instead of the undocumented -N option for GCC.

GCC forwards the -N flag directly to ld. This flag is not documented and
not supported by (for example) Clang. Just use -Wl,-N.

Submitted by:	Pawel Worach
@
text
@d16 5
@


1.20
log
@Retire the support for using paging in BTX.  It hasn't been used since
before 4.0.

Submitted by:	kib
@
text
@d27 1
a27 1
LDFLAGS=-N -e start -Ttext ${ORG} -Wl,-S,--oformat,binary
@


1.20.2.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.20.2.2
log
@SVN rev 237755 on 2012-06-29 10:01:52Z by avg

MFC r235154,r235158: btxldr: future-proof argument passing from
boot1/2-ish to loader
@
text
@a14 1
CFLAGS+=-I${.CURDIR}/../../common
@


1.20.2.3
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/8/sys/boot/i386/btx/btx/Makefile 237755 2012-06-29 10:01:52Z avg $
@


1.20.2.1.8.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.20.2.1.8.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/8.3/sys/boot/i386/btx/btx/Makefile 176631 2008-02-27 23:35:39Z jhb $
@


1.20.2.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.20.2.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.20.2.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.19
log
@Start the dreaded NOFOO -> NO_FOO conversion.

OK'ed by:	core
@
text
@a7 4
.if defined(PAGING)
CFLAGS+=-DPAGING
.endif

@


1.19.2.1
log
@MFC: Use real moder to invoke BIOS routines rather than virtual 86 mode.
@
text
@d8 4
@


1.19.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/6/sys/boot/i386/btx/btx/Makefile 177357 2008-03-18 17:44:28Z jhb $
@


1.19.2.1.2.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.19.10.1
log
@MFC: Use real mode to invoke BIOS routines rather than virtual 86 mode.
@
text
@d8 4
@


1.19.10.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/7/sys/boot/i386/btx/btx/Makefile 177356 2008-03-18 17:43:36Z jhb $
@


1.19.10.1.8.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.19.10.1.8.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/7.4/sys/boot/i386/btx/btx/Makefile 177356 2008-03-18 17:43:36Z jhb $
@


1.19.10.1.6.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.19.10.1.4.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.19.10.1.2.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.18
log
@Removed now redundant CLEANFILES assignments.

Not read enough of my patch by:	obrien ;)
@
text
@d5 1
a5 1
NOMAN=
@


1.17
log
@Use a more compact syntax for passing the "binary" options to 'ld'.
@
text
@a6 1
CLEANFILES= btx
@


1.16
log
@Simplify the building of our i386 'binary' boot components by directly
producing them using 'ld' options rather than post-processing with 'objcopy'.

Idea by:	Ryan Sommers <ryans@@gamersimpact.com>
@
text
@d32 1
a32 1
LDFLAGS=-N -e start -Ttext ${ORG} -Wl,-S -Wl,--oformat -Wl,binary
@


1.15
log
@Get rid of unnecessary use of m4(1) by using cpp(1) instead.
(John tells me there were problems when trying this before,
but it appears to be safe these day.)

OK'ed by:	jhb
Repocopied by:	joe
@
text
@d3 1
a3 1
PROG=	btx.out
d32 1
a32 6
all: btx

LDFLAGS=-N -e start -Ttext ${ORG}

btx: btx.out
	objcopy -S -O binary btx.out ${.TARGET}
@


1.14
log
@- Factor out -nostdlib to an upper level Makefile.inc.

- Now that bsd.prog.mk deals with programs linked with -nostdlib
  better, and has a notion of an "internal" program, use PROG
  where possible.  This has a good impact on the contents of
  .depend files and causes programs to be linked with cc(1).

XXX: boot2 couldn't be converted as it's actually two programs.

Tested on:	i386, amd64
@
text
@d6 1
a6 1
SRCS=	btx.s
a8 2
M4?=	m4

d10 1
a10 1
M4FLAGS+=	-DPAGING
d19 1
a19 1
AFLAGS+=	--defsym BTX_FLAGS=${BOOT_BTX_FLAGS}
d26 2
a27 2
M4FLAGS+=	-DBTX_SERIAL -DSIOPRT=${BOOT_COMCONSOLE_PORT} \
		-DSIOFMT=${B2SIOFMT} -DSIOSPD=${BOOT_COMCONSOLE_SPEED}
a37 4

btx.o: btx.s
	(cd ${.CURDIR}; ${M4} ${M4FLAGS} btx.s) | \
	   ${AS} ${AFLAGS} -o ${.TARGET}
@


1.13
log
@Initiate deorbit burn for the i386-only a.out related support.  Moves are
under way to move the remnants of the a.out toolchain to ports.  As the
comment in src/Makefile said, this stuff is deprecated and one should not
expect this to remain beyond 4.0-REL.  It has already lasted WAY beyond
that.

Notable exceptions:
gcc - I have not touched the a.out generation stuff there.
ldd/ldconfig - still have some code to interface with a.out rtld.
old as/ld/etc - I have not removed these yet, pending their move to ports.
some includes - necessary for ldd/ldconfig for now.

Tested on: i386 (extensively), alpha
@
text
@d3 6
d36 3
a38 2
btx: btx.o
	${LD} -N -e start -Ttext ${ORG} -o btx.out btx.o
a43 2

CLEANFILES+= btx btx.out btx.o
@


1.12
log
@Add support for sending messages to the serial console which is helpful
when debugging boot problems.  It is not on by default but is enabled via
the BTX_SERIAL variable.  The port and speed can be set via the same
variables used by boot2 and the loader.
@
text
@a30 4
.if ${OBJFORMAT} == aout
	${LD} -nostdlib -N -s -T ${ORG} -o btx.out btx.o
	dd if=btx.out of=${.TARGET} ibs=32 skip=1
.else
a32 1
.endif
@


1.11
log
@Unset MAINTAINER.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/boot/i386/btx/btx/Makefile,v 1.10 2000/10/02 17:23:15 rnordier Exp $
d16 9
@


1.10
log
@Set MAINTAINER.
@
text
@d1 1
a1 3
# $FreeBSD: src/sys/boot/i386/btx/btx/Makefile,v 1.9 2000/08/24 20:57:44 jhb Exp $

MAINTAINER=	rnordier
@


1.9
log
@Add a new compile-time tweak to BTX.  If you set the make(1) variable
BOOT_BTX_NOHANG, then BTX will be compiled with the appropriate flags so
that it reboots after a fault instead of hanging forever.

Requested by:	ps
Approved by:	rnordier
@
text
@d1 3
a3 1
# $FreeBSD: src/sys/boot/i386/btx/btx/Makefile,v 1.8 2000/05/23 12:18:48 jhb Exp $
@


1.8
log
@Clean up all of the 16-bit assembly code in the x86 bootstrap to work
with the new binutils.  Now that we have a decent assembler, all the old
m4 macros are no longer needed.  Instead, straight assembly can be used
since as(1) now understands 16-bit addressing, branches, etc.  Also,
several bugs have been fixed in as(1), allowing boot0.s to be further
cleaned up.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/boot/i386/btx/btx/Makefile,v 1.7 1999/10/12 21:33:48 jhb Exp $
d8 8
@


1.7
log
@aThis patch updates the BTX to emulate the BIOS function "Copy Extended
Memory" called as function 0x87 of interrupt 0x15.  Since the Mylex RAID
adapter's BIOS used this function to access memory (actually PCI bus
space) beyond 16 MB, this patch also allows BTX to address all 4 Gig of
possible address space on i386+.  Since the loader does not have room for
4 MB of page tables, this was done by turning off paging.

Paging was turned off via a compile time setting which defaults to off.
To enable paging, simply define the make variable PAGING.

rnordier might want to clean this up later.

Submitted by:	W. Gerald Hicks <wghicks@@bellsouth.net>,
		Bosko Milekic <bmilekic@@ares.dsuper.net>
Reviewed by:	msmith
Required by:	Mylex RAID adapter's BIOS
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/boot/i386/btx/btx/Makefile,v 1.6 1999/08/28 00:40:04 peter Exp $
d22 2
a23 2
btx.o: btx.m4 btx.s
	(cd ${.CURDIR}; ${M4} ${M4FLAGS} btx.m4 btx.s) | \
@


1.7.2.1
log
@MFC:  clean up all of the 16-bit assembly code in the x86 bootstrap to work
      with Binutils 2.10.0 -- all the old m4 macros are no longer needed.

Also MFC rev 1.18-22 sys/boot/i386/btx/btx/btx.s (change string and support
                     new instructions).
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/boot/i386/btx/btx/Makefile,v 1.7 1999/10/12 21:33:48 jhb Exp $
d22 2
a23 2
btx.o: btx.s
	(cd ${.CURDIR}; ${M4} ${M4FLAGS} btx.s) | \
@


1.7.2.2
log
@MFC: Add new compile-time tweak BOOT_BTX_NOHANG which reboots after
a fault instead of hanging forever.
@
text
@d1 1
a1 1
# $FreeBSD$
a7 8

.if defined(BOOT_BTX_NOHANG)
BOOT_BTX_FLAGS=0x1
.else
BOOT_BTX_FLAGS=0x0
.endif

AFLAGS+=	--defsym BTX_FLAGS=${BOOT_BTX_FLAGS}
@


1.7.2.3
log
@MFC: Use real moder to invoke BIOS routines rather than virtual 86 mode.
@
text
@d5 4
@


1.7.2.4
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/4/sys/boot/i386/btx/btx/Makefile 177359 2008-03-18 18:28:09Z jhb $
@


1.6
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
d5 4
d23 2
a24 1
	(cd ${.CURDIR}; ${M4} btx.m4 btx.s) | ${AS} ${AFLAGS} -o ${.TARGET}
@


1.5
log
@Don't use an absolute path to objcopy.
Noticed by: Scott Mace <smace@@intt.org>
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.4 1998/09/25 17:14:15 peter Exp $
@


1.5.2.1
log
@$Id$ -> $FreeBSD$
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.5.2.2
log
@MFC the support for the BIOS function to copy extended memory,
interrupt 0x15, function 0x87.  Also, MFC the PAGING conditional
compilation knob to allow paging to be disabled in btx.

This is needed for the Mylex and AMI Megaraid controllers.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/boot/i386/btx/btx/Makefile,v 1.5.2.1 1999/08/29 16:20:48 peter Exp $
a4 4
.if defined(PAGING)
M4FLAGS+=	-DPAGING
.endif

d19 1
a19 2
	(cd ${.CURDIR}; ${M4} ${M4FLAGS} btx.m4 btx.s) | \
	   ${AS} ${AFLAGS} -o ${.TARGET}
@


1.4
log
@Make these compile when there is an obj dir.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.3 1998/09/17 23:52:04 msmith Exp $
d15 1
a15 1
	/usr/libexec/elf/objcopy -S -O binary btx.out ${.TARGET}
@


1.3
log
@Initial integration of the i386 bootloader and BTX.

 - Discard large amounts of BIOS-related code in favour of the more compact
   BTX vm86 interface.
 - Build the loader module as ELF, although the resulting object is a.out,
   make gensetdefs 32/64-bit sensitive and use a single copy of it.
 - Throw away installboot, as it's no longer required.
 - Use direct bcopy operations in the i386_copy module, as BTX
   maps the first 16M of memory.  Check operations against the
   detected size of actual memory.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.2 1998/09/14 18:27:05 msmith Exp $
d19 1
a19 1
	${M4} btx.m4 btx.s | ${AS} ${AFLAGS} -o ${.TARGET}
d21 1
a21 2
clean:
	rm -f btx btx.out btx.o
d23 1
a23 5
depend:

cleandepend:

install:
@


1.2
log
@Resynch with working sources before BTX integration.

 - Use format-independant module allocator.
 - Conditionalise ISA PnP support.
 - Simplify PnP enumerator interface.
 - Improve module/object searching.
 - Add missing depend/install targets in BTX makefiles.
 - Pass the kernel environment and module data in extended bootinfo fields.
 - Add a pointer to the end of the kernel + modules in bootinfo.
 - Fix parsing of old-style kernel arguments.
@
text
@d1 1
a1 1
#	$Id: Makefile,v 1.1.1.1 1998/09/12 04:29:23 rnordier Exp $
d25 2
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
#	$Id:$
d23 4
@


1.1.1.1
log
@BTX (aka the boot extender) is an i386 kernel that hosts 32-bit
bootstrap programs, and provides page-level protection, hardware
interrupt reflection, a virtual-8086 mode interface to BIOS, etc.
@
text
@@
