Commit Graph

253 Commits

Author SHA1 Message Date
pk dca752e34a Make pmap_map() work on sun4 machines.
Thanks to Matthew and Julian for finding this.
2005-01-23 17:04:26 +00:00
he c05b6145f4 Remove extraneous parenthesis, so that this compiles again. 2005-01-18 23:04:40 +00:00
chs 831b9cc380 remove some dead code, simplify and wrap some long lines. 2005-01-16 23:26:19 +00:00
grant 068c31fe44 tweak an error message. 2004-11-13 08:12:50 +00:00
simonb e25bd305b6 Define LIB{CRT0,C,CRTBEGIN,CRTEND} as nothing, we don't need to link
against them.
2004-07-28 01:05:35 +00:00
jmc 84fafa3db5 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
2004-06-21 18:20:08 +00:00
martin 4c2f43b8cf Better support for booting from partitions != a or at the start of the
disk, allow commands like "boot disk:d disk:d/netbsd" to work.
Use the real RF_PROTECTED_SECTORS define instead of a local magic number.
While there, minor cosmetics in diagnostics/output format.
2004-06-18 21:04:39 +00:00
martin 31895478bc Use RF_PROTECTED_SECTORS instead of a (wrong) magic value.
The bootblock now is able to load ofwboot from a raid1 root.
2004-06-18 18:42:15 +00:00
martin 9c57555f1b When calculating the allocated symbol table size, round up the section
sizes with ELF_ALIGN().
Fixes PR port-sparc64/25429.
2004-05-02 19:45:55 +00:00
pk f95fd4f56f compat mode: skip double map at VA 0 if the physical load address is 0.
This allows a much wider range of historic kernels to be booted (w/ `-C').
2004-04-08 07:35:34 +00:00
pk 24bb95542f Add openfirmware() entry point. 2004-03-23 15:36:08 +00:00
martin fe91b9b277 Create a symlink for <sparc/...> include paths as well, the new openfirm.h
needs it.
2004-03-21 23:41:21 +00:00
hannken ac4d48d92e Rename PROM_getpropstring* => prom_getpropstring* 2004-03-18 12:26:51 +00:00
pk 0c91b926ac Replace myetheraddr() by prom_getether(). Convert the file descriptor to
deivce tree node (if possible) to support the "local-mac-address' property.
2004-03-15 23:57:27 +00:00
wiz d20841bb64 Uppercase CPU, plural is CPUs. 2004-02-13 11:36:08 +00:00
jmc d9948df6dd Clean up tmp files on exit. Fixes PR#23723 2003-12-15 20:07:39 +00:00
martin 170c19e9bf Rename the JavaStation network boot loader: bootjs.elf -> bootjs.net. 2003-12-15 17:34:36 +00:00
martin ef9590543d Add support to build bootjs.elf - the secondary bootstrap used to netboot
JavaStations. Based on patches from Valeriy E. Ushakov.
2003-12-12 22:15:59 +00:00
mrg a777988c2a ofwboot.net is gone. from hannken@ 2003-12-07 23:16:03 +00:00
mrg 8ae92b7455 merge ultrasparc ofwboot / ofwboot.net. 2003-12-07 09:05:18 +00:00
keihan 29c72c57f0 netbsd.org -> NetBSD.org
All "netbsd.org" is now gone from src/sys/arch.
2003-12-04 13:05:15 +00:00
keihan 8476e6755a NetBSD.ORG -> NetBSD.org
Now all "NetBSD.ORG" are gone from src/sys.
2003-12-04 12:42:54 +00:00
wiz ee1b406595 Spell address with two d's. Inspired by similar changes in OpenBSD,
originating from Jonathon Gray and forwarded by jmc@openbsd.
2003-11-10 08:51:51 +00:00
lukem f85d2d1c14 Use ${HOST_SH} instead of `sh'.
If necessary, pull in <bsd.sys.mk> to get the definition of HOST_SH;
Makefiles that pull in one of (most of) <bsd.*.mk> will get this anyway.
2003-10-26 07:25:33 +00:00
pk 48b10bb77d pmap_map_srmmu: use the `map-pages' Forth word to let prom map all pages
at once.
2003-10-24 09:48:08 +00:00
agc aad01611e7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
mrg 8a8d2aa063 sprinkle some: libkern.h, some -ffreestanding and some cast-y goodness,
all for the pleasure of the gcc 3 :-)
2003-07-30 15:58:36 +00:00
lukem 001c68bd94 Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO".  The new variables are:
	TOOL_ASN1_COMPILE  TOOL_CAP_MKDB  TOOL_CAT  TOOL_CKSUM  TOOL_COMPILE_ET
	TOOL_CONFIG  TOOL_CRUNCHGEN  TOOL_CTAGS  TOOL_DB  TOOL_EQN  TOOL_FGEN
	TOOL_GENCAT  TOOL_GROFF  TOOL_HEXDUMP  TOOL_INDXBIB  TOOL_INSTALLBOOT
	TOOL_INSTALL_INFO  TOOL_M4  TOOL_MAKEFS  TOOL_MAKEINFO  TOOL_MAKEWHATIS
	TOOL_MDSETIMAGE  TOOL_MENUC  TOOL_MKCSMAPPER  TOOL_MKESDB
	TOOL_MKLOCALE  TOOL_MKMAGIC  TOOL_MKTEMP  TOOL_MSGC  TOOL_MTREE
	TOOL_PAX  TOOL_PIC  TOOL_PREPMKBOOTIMAGE  TOOL_PWD_MKDB  TOOL_REFER
	TOOL_ROFF_ASCII  TOOL_ROFF_DVI  TOOL_ROFF_HTML  TOOL_ROFF_PS
	TOOL_ROFF_RAW  TOOL_RPCGEN  TOOL_SOELIM  TOOL_SUNLABEL  TOOL_TBL
	TOOL_UUDECODE  TOOL_VGRIND  TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
	TOOL_FOO?=	foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
	TOOL_FOO=	${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
2003-07-10 10:33:58 +00:00
pk f9dc3a73e0 compat mode:
* print warning if kernel image is too large.
	* adjust `required space' computation to be more compatible to
	  what it was before.
	* since there's still no code to recognise `old kernels', provide
	  a way to turn on `compatmode' manually, using the `-C' boot option.
2003-07-10 09:06:52 +00:00
pk 95ca576fc1 pmap_map(): round up size to compute # of pages. 2003-07-10 09:00:33 +00:00
lukem 82bd1c0ce3 shell coding tweaks 2003-07-10 04:48:34 +00:00
uwe 5fe7a8a85c Only JavaStations have OFW, so set cpu type to CPU_SUN4M in is_openfirm. 2003-06-28 00:59:09 +00:00
uwe 94e7210074 Drop redundant argument to printf("\n"). Obvious pasto. 2003-06-27 21:27:24 +00:00
thorpej 22a1ce1e9d Add -ffreestanding. 2003-06-01 00:43:47 +00:00
nakayama ca7665c318 Don't traverse here in case of sparc64 32-bit environment. 2003-05-17 02:45:04 +00:00
nakayama 6256a4034a Make sure to remove lib directories. 2003-05-17 02:30:14 +00:00
nakayama cd35e5f630 Make sure to remove proper link. 2003-05-17 02:26:27 +00:00
he b44c5e8370 Track changes introduced when UFS2 was merged, so that this builds again. 2003-04-05 08:58:55 +00:00
christos 14e617d80f try to make this work with ufs1 only. 2003-04-03 22:10:12 +00:00
hannken f2746edc5b Explicit cast for netif.
Approved by: Matthias Drochner <drochner@netbsd.org>
2003-03-13 12:02:54 +00:00
pk 1b5340d327 Add support for large kernels by searching for a physical memory segment
to fit it in. As a bonus, the kernel is now also mapped to the virtual
address (i.e. KERNBASE) it is linked at.
2003-03-01 13:01:55 +00:00
pk 4eb3db09d9 Move all `ID prom' stuff into the prom library. 2003-02-26 17:39:05 +00:00
pk b69aef5f3e * Use fdloadfile() to avoid opening the the underlying device twice.
* Cleanup old stuff.
2003-02-25 08:09:30 +00:00
pk dd87308a05 Note which network boot protocol we're trying. 2003-02-25 08:06:29 +00:00
mrg d06249b555 KNF. 2003-01-01 06:33:29 +00:00
jdc 0a3a2262cb Increment version number for match function and Cycle 5 IP changes. 2002-12-16 13:02:58 +00:00
jdc 079b83cafa Extend the matching routine to take a function pointer, so that additional
(arbitrary) matching can be done.
Add match function and patch for Cycle 5 IP (Sparc 5 clone).

Reviewed by Uwe.
2002-12-16 13:01:01 +00:00
pk e675712f0d * loadfile() return a file descriptor that must be closed.
* check the kernel size before loading
2002-12-11 10:35:06 +00:00
uwe 7e95293c56 Use BOOT_FLAG() macro to process flags. 2002-11-09 01:35:54 +00:00
petrov 71614764a4 Compile with an ISO C preprocessor. 2002-10-30 01:46:09 +00:00