head	1.17;
access;
symbols
	RELENG_8_4:1.17.0.2
	RELENG_9_1_0_RELEASE:1.15.2.2.2.2
	RELENG_9_1:1.15.2.2.0.2
	RELENG_9_1_BP:1.15.2.2
	RELENG_8_3_0_RELEASE:1.13.2.1.8.1
	RELENG_8_3:1.13.2.1.0.8
	RELENG_8_3_BP:1.13.2.1
	RELENG_9_0_0_RELEASE:1.15.2.1.2.1
	RELENG_9_0:1.15.2.1.0.2
	RELENG_9_0_BP:1.15.2.1
	RELENG_9:1.15.0.2
	RELENG_9_BP:1.15
	RELENG_7_4_0_RELEASE:1.11.12.1
	RELENG_8_2_0_RELEASE:1.13.2.1.6.1
	RELENG_7_4:1.11.0.12
	RELENG_7_4_BP:1.11
	RELENG_8_2:1.13.2.1.0.6
	RELENG_8_2_BP:1.13.2.1
	RELENG_8_1_0_RELEASE:1.13.2.1.4.1
	RELENG_8_1:1.13.2.1.0.4
	RELENG_8_1_BP:1.13.2.1
	RELENG_7_3_0_RELEASE:1.11.10.1
	RELENG_7_3:1.11.0.10
	RELENG_7_3_BP:1.11
	RELENG_8_0_0_RELEASE:1.13.2.1.2.1
	RELENG_8_0:1.13.2.1.0.2
	RELENG_8_0_BP:1.13.2.1
	RELENG_8:1.13.0.2
	RELENG_8_BP:1.13
	RELENG_7_2_0_RELEASE:1.11.8.1
	RELENG_7_2:1.11.0.8
	RELENG_7_2_BP:1.11
	RELENG_7_1_0_RELEASE:1.11.6.1
	RELENG_6_4_0_RELEASE:1.9.12.1
	RELENG_7_1:1.11.0.6
	RELENG_7_1_BP:1.11
	RELENG_6_4:1.9.0.12
	RELENG_6_4_BP:1.9
	RELENG_7_0_0_RELEASE:1.11
	RELENG_6_3_0_RELEASE:1.9
	RELENG_7_0:1.11.0.4
	RELENG_7_0_BP:1.11
	RELENG_6_3:1.9.0.10
	RELENG_6_3_BP:1.9
	RELENG_7:1.11.0.2
	RELENG_7_BP:1.11
	RELENG_6_2_0_RELEASE:1.9
	RELENG_6_2:1.9.0.8
	RELENG_6_2_BP:1.9
	RELENG_5_5_0_RELEASE:1.8.8.1
	RELENG_5_5:1.8.8.1.0.4
	RELENG_5_5_BP:1.8.8.1
	RELENG_6_1_0_RELEASE:1.9
	RELENG_6_1:1.9.0.6
	RELENG_6_1_BP:1.9
	RELENG_6_0_0_RELEASE:1.9
	RELENG_6_0:1.9.0.4
	RELENG_6_0_BP:1.9
	RELENG_6:1.9.0.2
	RELENG_6_BP:1.9
	RELENG_5_4_0_RELEASE:1.8.8.1
	RELENG_5_4:1.8.8.1.0.2
	RELENG_5_4_BP:1.8.8.1
	RELENG_5_3_0_RELEASE:1.8
	RELENG_5_3:1.8.0.10
	RELENG_5_3_BP:1.8
	RELENG_5:1.8.0.8
	RELENG_5_BP:1.8
	RELENG_5_2_1_RELEASE:1.8
	RELENG_5_2_0_RELEASE:1.8
	RELENG_5_2:1.8.0.6
	RELENG_5_2_BP:1.8
	RELENG_5_1_0_RELEASE:1.8
	RELENG_5_1:1.8.0.4
	RELENG_5_1_BP:1.8
	RELENG_5_0_0_RELEASE:1.8
	RELENG_5_0:1.8.0.2
	RELENG_5_0_BP:1.8
	KSE_MILESTONE_2:1.2
	KSE_PRE_MILESTONE_2:1.2;
locks; strict;
comment	@# @;


1.17
date	2012.11.17.01.51.18;	author svnexp;	state Exp;
branches
	1.17.2.1;
next	1.16;

1.16
date	2012.05.12.20.27.33;	author avg;	state Exp;
branches;
next	1.15;

1.15
date	2010.08.23.01.50.34;	author imp;	state Exp;
branches
	1.15.2.1;
next	1.14;

1.14
date	2010.07.12.00.49.22;	author nwhitehorn;	state Exp;
branches;
next	1.13;

1.13
date	2008.09.19.19.49.58;	author sobomax;	state Exp;
branches
	1.13.2.1;
next	1.12;

1.12
date	2008.09.19.11.00.14;	author sobomax;	state Exp;
branches;
next	1.11;

1.11
date	2007.06.17.00.17.15;	author marius;	state Exp;
branches
	1.11.2.1
	1.11.6.1
	1.11.8.1
	1.11.10.1
	1.11.12.1;
next	1.10;

1.10
date	2006.10.09.04.43.06;	author kmacy;	state Exp;
branches;
next	1.9;

1.9
date	2004.10.24.15.32.50;	author ru;	state Exp;
branches
	1.9.2.1
	1.9.12.1;
next	1.8;

1.8
date	2002.11.10.19.17.36;	author jake;	state Exp;
branches
	1.8.8.1;
next	1.7;

1.7
date	2002.05.13.11.09.07;	author ru;	state Exp;
branches;
next	1.6;

1.6
date	2002.05.12.13.54.41;	author obrien;	state Exp;
branches;
next	1.5;

1.5
date	2002.05.11.18.02.32;	author obrien;	state Exp;
branches;
next	1.4;

1.4
date	2002.02.23.04.36.15;	author jake;	state Exp;
branches;
next	1.3;

1.3
date	2001.10.07.13.22.21;	author benno;	state Exp;
branches;
next	1.2;

1.2
date	2000.11.10.06.39.53;	author benno;	state Exp;
branches;
next	1.1;

1.1
date	2000.10.16.10.46.22;	author obrien;	state Exp;
branches;
next	;

1.17.2.1
date	2012.11.17.01.51.18;	author svnexp;	state dead;
branches;
next	1.17.2.2;

1.17.2.2
date	2013.03.28.13.04.02;	author svnexp;	state Exp;
branches;
next	;

1.15.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.15.2.1.2.1;
next	1.15.2.2;

1.15.2.2
date	2012.06.29.10.19.15;	author avg;	state Exp;
branches
	1.15.2.2.2.1;
next	1.15.2.3;

1.15.2.3
date	2012.11.17.11.36.48;	author svnexp;	state Exp;
branches;
next	;

1.15.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.15.2.1.2.2;

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

1.15.2.2.2.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.15.2.2.2.2;

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

1.13.2.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.13.2.1.2.1
	1.13.2.1.4.1
	1.13.2.1.6.1
	1.13.2.1.8.1;
next	1.13.2.2;

1.13.2.2
date	2012.06.29.10.18.36;	author avg;	state Exp;
branches;
next	1.13.2.3;

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

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

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

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

1.13.2.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.13.2.1.8.2;

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

1.11.2.1
date	2012.11.17.08.04.55;	author svnexp;	state Exp;
branches;
next	;

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

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

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

1.11.12.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.11.12.2;

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

1.9.2.1
date	2012.11.17.07.42.40;	author svnexp;	state Exp;
branches;
next	;

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

1.8.8.1
date	2005.02.13.07.23.31;	author obrien;	state Exp;
branches;
next	;


desc
@@


1.17
log
@Switching exporter and resync
@
text
@# $FreeBSD: head/sys/boot/ofw/libofw/Makefile 235364 2012-05-12 20:27:33Z avg $

LIB=		ofw
INTERNALLIB=

SRCS=	devicename.c elf_freebsd.c ofw_console.c ofw_copy.c ofw_disk.c \
	ofw_memory.c ofw_module.c ofw_net.c ofw_reboot.c \
	ofw_time.c openfirm.c
.PATH:	${.CURDIR}/../../zfs
SRCS+=  devicename_stubs.c

CFLAGS+=	-I${.CURDIR}/../../../../lib/libstand/

# Pick up the bootstrap header for some interface items
CFLAGS+=	-I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I.

CFLAGS+=	-ffreestanding
.if ${MACHINE_CPUARCH} == "powerpc"
CFLAGS+=	-msoft-float
SRCS+=		ppc64_elf_freebsd.c
.endif

.ifdef(BOOT_DISK_DEBUG)
# Make the disk code more talkative
CFLAGS+= -DDISK_DEBUG
.endif

machine:
	ln -sf ${.CURDIR}/../../../${MACHINE_CPUARCH}/include machine

CLEANFILES+=	machine

.include <bsd.lib.mk>

beforedepend ${OBJS}: machine
@


1.17.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:04:02 +0000
@
text
@d1 35
@


1.17.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 34
# $FreeBSD: releng/8.4/sys/boot/ofw/libofw/Makefile 237765 2012-06-29 10:18:36Z avg $

LIB=		ofw
INTERNALLIB=

SRCS=	devicename.c elf_freebsd.c ofw_console.c ofw_copy.c ofw_disk.c \
	ofw_memory.c ofw_module.c ofw_net.c ofw_reboot.c \
	ofw_time.c openfirm.c
.PATH:	${.CURDIR}/../../zfs
SRCS+=  devicename_stubs.c

CFLAGS+=	-I${.CURDIR}/../../../../lib/libstand/

# Pick up the bootstrap header for some interface items
CFLAGS+=	-I${.CURDIR}/../../common -I${.CURDIR}/../../.. -I.

CFLAGS+=	-ffreestanding
.if ${MACHINE_ARCH} == "powerpc"
CFLAGS+=	-msoft-float
.endif

.ifdef(BOOT_DISK_DEBUG)
# Make the disk code more talkative
CFLAGS+= -DDISK_DEBUG
.endif

machine:
	ln -sf ${.CURDIR}/../../../${MACHINE_ARCH}/include machine

CLEANFILES+=	machine

.include <bsd.lib.mk>

beforedepend ${OBJS}: machine
@


1.16
log
@SVN rev 235364 on 2012-05-12 20:27:33Z by avg

sparc64/zfs boot: take advantage of new libzfsboot capabilities

Also drop the now unneeded compatibility shims.

Tested by:	marius
MFC after:	1 month
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.15
log
@SVN rev 211680 on 2010-08-23 01:50:34Z by imp

MF tbemd: Minor tweaks, prefer MACHINE_CPUARCH generally to MACHINE_ARCH (which simplifies some powerpc/powerpc64 ifs)
@
text
@d9 2
@


1.15.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.15.2.2
log
@SVN rev 237766 on 2012-06-29 10:19:15Z by avg

MFC r235329,235343,235361,235364: zfsboot/zfsloader: support accessing
filesystems within a pool
@
text
@a8 2
.PATH:	${.CURDIR}/../../zfs
SRCS+=  devicename_stubs.c
@


1.15.2.3
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/ofw/libofw/Makefile 237766 2012-06-29 10:19:15Z avg $
@


1.15.2.2.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.15.2.2.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.1/sys/boot/ofw/libofw/Makefile 237766 2012-06-29 10:19:15Z avg $
@


1.15.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.15.2.1.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.0/sys/boot/ofw/libofw/Makefile 211680 2010-08-23 01:50:34Z imp $
@


1.14
log
@SVN rev 209920 on 2010-07-12 00:49:22Z by nwhitehorn

Provide support in loader for booting 64-bit PowerPC kernels. Like amd64,
64-bit PowerPC kernels are loaded by a 32-bit loader, since nearly all
powerpc64 firmwares execute in 32-bit mode.
@
text
@d16 1
a16 1
.if ${MACHINE_ARCH} == "powerpc" || ${MACHINE_ARCH} == "powerpc64"
d27 1
a27 1
	ln -sf ${.CURDIR}/../../../${MACHINE_ARCH}/include machine
@


1.13
log
@SVN rev 183198 on 2008-09-19 19:49:58Z by sobomax

Backout rev 183181. It appears that I should have been using boot-device
of "cd:,\\:tbxi" with properly configured boot.tbxi, instead of booting
\boot\loader directly. Rev 183168 could probably stay, since it can be
viewed as an anti-foot-shooting measure and has no impact on normal
operation. I can revert it as well, if anybody objects.
@
text
@d16 1
a16 1
.if ${MACHINE_ARCH} == "powerpc"
d18 1
@


1.13.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.13.2.2
log
@SVN rev 237765 on 2012-06-29 10:18:36Z by avg

MFC r235329,235343,235361,235364: zfsboot/zfsloader: support accessing
filesystems within a pool
@
text
@a8 2
.PATH:	${.CURDIR}/../../zfs
SRCS+=  devicename_stubs.c
@


1.13.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/ofw/libofw/Makefile 237765 2012-06-29 10:18:36Z avg $
@


1.13.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.13.2.1.8.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/8.3/sys/boot/ofw/libofw/Makefile 183198 2008-09-19 19:49:58Z sobomax $
@


1.13.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.13.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.13.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.12
log
@SVN rev 183181 on 2008-09-19 11:00:14Z by sobomax

On PowerPC send output to both "/chosen/stdout" and "screen" nodes, unless
they point to the very same device. This should make loader usable on
some (all?) PowerMacs, where "/chosen/stdout" is disconneted from the
"screen" by the OF init process by default, except when user actually
has requested interaction with OF by holding ALT-CMD-O-F. Along with
rev 183168 this should provide a way to build bootable FreeBSD/ppc
installation or live CD that works OOB. Also, it should bring PowerMac
experience closer to that on other arches.

MFC after:	1 week
		(assiming re@@ blessing)
@
text
@d17 1
a17 1
CFLAGS+=	-msoft-float -DPOWERMAC_SCREEN_HACK
@


1.11
log
@- Make better use of the global chosen, memory and mmu handles instead
  of obtaining them over and over again and pretending we could do
  anything useful without them (for chosen this includes adding a
  declaration and initializing it in OF_init()).
- In OF_init() if obtaining the memory or mmu handle fails just call
  OF_exit() instead of panic() as the loader hasn't initialized the
  console at these early stages yet and trying to print out something
  causes a hang. With OF_exit() one at least has a change to get back
  to the OFW boot monitor and debug the problem.
- Fix OF_call_method() on 64-bit machines (this is a merge of
  sys/dev/ofw/openfirm.c rev 1.6).
- Replace OF_alloc_phys(), OF_claim_virt(), OF_map_phys() and
  OF_release_phys() in the MI part of the loader with wrappers around
  OF_call_method() in the sparc64. Beside the fact that they duplicate
  OF_call_method() the formers should never have been in the MI part
  of the loader as contrary to the OFW spec they use two-cell physical
  addresses.
- Remove unused functions which are also MD dupes of OF_call_method().
- In sys/boot/sparc64/loader/main.c add __func__ to panic strings as
  different functions use otherwise identical panic strings and make
  some of the panic strings a tad more user-friendly instead of just
  mentioning the name of the function that returned an unexpected
  result.
@
text
@d17 1
a17 1
CFLAGS+=	-msoft-float
@


1.11.2.1
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/7/sys/boot/ofw/libofw/Makefile 170854 2007-06-17 00:17:15Z marius $
@


1.11.12.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.11.12.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/7.4/sys/boot/ofw/libofw/Makefile 170854 2007-06-17 00:17:15Z marius $
@


1.11.10.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.11.8.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.11.6.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.10
log
@add sun4v support to the sparc64 boot loader

Approved by: rwatson (mentor)
Reviewed by: jmg
Tested by: kris, dwhite, and jmg
@
text
@d8 1
a8 1
	ofw_time.c openfirm.c openfirm_mmu.c
@


1.9
log
@For variables that are only checked with defined(), don't provide
any fake value.
@
text
@d8 1
a8 1
	ofw_time.c openfirm.c
@


1.9.2.1
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/6/sys/boot/ofw/libofw/Makefile 136910 2004-10-24 15:33:08Z ru $
@


1.9.12.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.8
log
@Change the device path representation in libofw to use the full firmware
path, instead of an internal i386 specific one.  Don't try to interpret
a disklabel in ofw_disk.c, open the partition's device node directly and
let the firmware do it.  This fixes booting from a partition other than 'a'
on sparc64, which is needed to support more installation methods.

No objection:	ppc
@
text
@d4 1
a4 1
INTERNALLIB=	true
@


1.8.8.1
log
@MFC: For variables that are only checked with defined(), don't provide
     any fake value.
@
text
@d4 1
a4 1
INTERNALLIB=
@


1.7
log
@Removed now unused INTERNALSTATICLIB.
INTERNALLIB now implies NOPIC and NOPROFILE.
Removed gratuitous NOMAN.
@
text
@d6 2
a7 2
SRCS=	devicename.c elf_freebsd.c ofw_console.c ofw_copy.c ofw_devsearch.c \
	ofw_disk.c ofw_memory.c ofw_module.c ofw_net.c ofw_reboot.c \
@


1.6
log
@Back out last commit.  I expect our bsd.*.mk gods to remove the need for
defining so many extra things in addition to INTERNALLIB.  We don't like
repetitive C code and we shouldn't for make code either.
@
text
@a3 2
NOPIC=		true
NOPROFILE=	true
a4 1
INTERNALSTATICLIB=	true
@


1.5
log
@NOPIC, NOPROFILE, NOMAN, and INTERNALSTATICLIB are redundant when using
INTERNALLIB now.
@
text
@d4 2
d7 1
@


1.4
log
@Add -ffreestanding to CFLAGS.
@
text
@a3 2
NOPIC=		true
NOPROFILE=	true
a4 1
INTERNALSTATICLIB=	true
@


1.3
log
@Mega-patch for OpenFirmware loader support.

- Flesh out ofw_readin routine.
- Add OpenFirmware load and exec routines.
- Make sure memory allocation for the kernel is done correctly.
- Change the way the heap is allocated so as to make it easier to deallocate
  when we hand over.
- Add a command to print memory maps similar to the one for ia64.

With this patch, I can now load and hand over to a kernel on my iMac.  There
are some problems with OpenFirmware routines failing after the hand over that
still need to be addressed.
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/boot/ofw/libofw/Makefile,v 1.2 2000/11/10 06:39:53 benno Exp $
d18 1
@


1.2
log
@OpenFirmware/PowerPC loader, part 2.

As of this patchset, the loader builds (under NetBSD/macppc), boots, interacts
and talks to BOOTP/NFS servers.

(main.c was moved from boot/ofw/libofw to boot/ofw/common but has no revision
 history)

Reviewed by:	obrien
@
text
@d1 1
a1 1
# $FreeBSD: src/sys/boot/ofw/libofw/Makefile,v 1.1 2000/10/16 10:46:22 obrien Exp $
d9 3
a11 2
SRCS=	devicename.c ofw_copy.c ofw_module.c ofw_disk.c ofw_net.c \
	ofw_console.c ofw_time.c ofw_devsearch.c ofw_reboot.c openfirm.c
@


1.1
log
@"Ok, my loader's now up to putting up a prompt.  It probes disks partially
but can't boot from them yet."

Thanks to Stephane Potvin for the some of the code in this set.

Submitted by:	Benno Rice <benno@@jeamland.net>
@
text
@d1 1
a1 1
# $FreeBSD$
d9 2
a10 2
SRCS=	devicename.c main.c ofw_copy.c ofw_module.c ofw_disk.c ofw_console.c \
	ofw_time.c ofw_devsearch.c ofw_reboot.c openfirm.c
d15 1
a15 2
CFLAGS+=	-I${.CURDIR}/../../common -msoft-float \
		-I${.CURDIR}/../../.. -I.
d17 5
a21 1
.ifdef(BOOT_BIOSDISK_DEBUG)
d26 5
d32 2
@

