Commit Graph

164847 Commits

Author SHA1 Message Date
garbled 39fda4680b add verbose flag to usage statement. 2007-12-20 18:00:18 +00:00
garbled 690f8887fc Port over the code from rs6000/stand/mkbootimage. Now the unified
mkbootimage can build both prep and rs6000 images.
2007-12-20 17:58:49 +00:00
apb f228d2e41d Pass NETBSDSRCDIR in the environment to make. This is insurance against
Makefiles that should have an early .include <bsd.own.mk> but that fail
to do so.  It's also slightly more efficient.
2007-12-20 17:04:57 +00:00
apb 3501e2d554 .include <bsd.own.mk> early, otherwise the .PATH doesn't always work.
Now "etcupdate -s /path/to/src" should no longer complain about being
unable to make atf-run.hooks.  build.sh passes NETBSDSRCDIR in the
environment, so it used to work even without this include.
2007-12-20 16:53:59 +00:00
dyoung a3f7b0e7a0 Constify. 2007-12-20 16:19:38 +00:00
dyoung c9b4d7e0b1 Call genfs_node_init a little earlier to avoid a vput()ing an
uninitialized node, later, which leads to a kernel panic.  Patch
by Antti Kantee.
2007-12-20 16:18:57 +00:00
joerg 5b91827faa Document MP support for ACPI S3. 2007-12-20 16:08:51 +00:00
martin 53a105b083 Disable the umac-64 MAC for now, it needs to be rewritten from scractch.
Addresses PR bin/37562.
2007-12-20 14:14:04 +00:00
skrll f63ceafc74 typo in comment. 2007-12-20 08:11:31 +00:00
apb 2912d6fb40 Comment out an example, which was accidentally uncommented in my previous
change to this file.  This is where the mystery /dev/foo came from.
2007-12-20 07:30:25 +00:00
uebayasi bbd52a396e Use TAB in .Bd -literal. 2007-12-20 03:21:47 +00:00
ad 163e94a67e 64-bit atomic ops for i386. 2007-12-20 01:27:24 +00:00
joerg bc8d3e534e It seems like ACPICA can't deal with GPEs being handled before the GPE
handler is called, so clear the GPE bit in the callout as well.
This fixes the EC issues on T42 models.
2007-12-19 20:48:56 +00:00
dsl d975bc8ffa Remove all the __P 2007-12-19 20:31:35 +00:00
garbled f97bd8894f bring over bootrec.h from rs6000/stand/mkbootimage 2007-12-19 19:50:14 +00:00
garbled a3af60a95e s/prep_magic.h/magic.h/ 2007-12-19 19:47:08 +00:00
garbled 4fcef35aac Add rs6000 stuff in here now. 2007-12-19 19:46:31 +00:00
garbled ec9be1a886 Changed my mind on naming this prep_magic.h. Change it back to magic.h.
Sorry for the churn.
2007-12-19 19:45:32 +00:00
garbled 2f6e46a275 Change the prep bootloader to reach over into the
powerpc/stand/mkbootimage directory for the magic.h file.
2007-12-19 18:28:50 +00:00
macallan 6f048fd242 build the glint driver on sparc64 2007-12-19 17:33:55 +00:00
macallan 930f62ff15 -DGLINT_AVOID_INT10 on archs where we're seriously unlikely to encounter a
GLint in VGA legacy mode
2007-12-19 17:15:54 +00:00
joerg 358c956d05 Also recognize year-month as suggested by Alan Barrett. 2007-12-19 16:45:41 +00:00
joerg c98485db44 Make syntax checking more strict and recognize year/month.
One Finish and German developer agree that month year is a stupid
order, the French and British guys disagree and the only natural
choice left is to make it understand ISO style.
2007-12-19 15:52:50 +00:00
rillig 5adf6fa315 Added myself. I must have forgotten to do this some years ago. 2007-12-19 15:03:26 +00:00
pooka 4d243cfc9d use generic getattr 2007-12-19 14:01:30 +00:00
pooka a8e13cb420 Add generic getattr routine. 2007-12-19 14:01:16 +00:00
dogcow 3a04c46a48 Your friendly neighborhood 64-bit architecture here to remind you that
strlen returns size_t, and printf's precision specifier uses int.
2007-12-19 05:48:33 +00:00
riz 0673bc57e4 Add disk-info properties to vnd(4), for use by userland tools
such as gpt(8).
2007-12-18 23:22:18 +00:00
riz 0fac2edb7f Fix the usage strings for each command, and print them all for the
"global" usage.  It's still a little ugly, but hopefully not as
fantastically confusing as before...
2007-12-18 21:46:45 +00:00
agc daa7a94cfb When defining extents, the new keyword "size" can be used in the place
of the physical size of the regular file. This is useful for presenting
ISO images to initiators, as in the following:

	In /etc/iscsi/targets:
	# present an ISO image
	extent2         /usr/sets/20071214/release/iso/i386cd.iso 0 size
	target2         ro      extent2         any

	% priv /etc/rc.d/iscsi_target restart
	Stopping iscsi_target.
	Starting iscsi_target.
	Reading configuration from `/etc/iscsi/targets'
	target0:rw:any
		extent0:/tmp/iscsi-target0:0:104857600
	target1:rw:any
		extent1:/tmp/iscsi-target1:0:52428800
	target2:ro:any
		extent2:/usr/sets/20071214/release/iso/i386cd.iso:0:354906112
	DISK: 1 logical unit (204800 blocks, 512 bytes/block), type iscsi fs
	DISK: LUN 0: 100 MB disk storage for "target0"
	DISK: 1 logical unit (102400 blocks, 512 bytes/block), type iscsi fs
	DISK: LUN 0: 50 MB disk storage for "target1"
	DISK: 1 logical unit (693176 blocks, 512 bytes/block), type iscsi fs
	DISK: LUN 0: 338 MB readonly disk storage for "target2"
	TARGET: TargetName is iqn.1994-04.org.netbsd.iscsi-target
	%

Please note that the NetBSD initiator can mount (via vnd) an iSCSI target
presented in this manner. The Microsoft iSCSI initiator sees the read-only
target as a normal SCSI disk, and fails (not surprisingly) to initialize
the disk. It's now possible to make ISO images available via iSCSI, and
NetBSD will DTRT.

In read-only targets, don't attempt to seek to the last block and rewrite
it, it may not work.

Don't assign 8 MB of unused space for use in each iSCSI disk - just use
1MB, which will be enough for the scatter gather iovecs.

Get rid of some dead code.
2007-12-18 20:31:50 +00:00
garbled 4849f95d59 First crack at a new unified mkbootimage for powerpc. Still some work
left to do here, so the build isn't enabled yet.
2007-12-18 18:26:36 +00:00
garbled 67049908f4 Copy prep/stand/mkbootimage over to powerpc/stand/mkbootimage. The
makefile still needs work, and I still need to do some additional
fiddling here, but this is to be the unified rs6000/prep/bebox
mkbootimage eventually.
2007-12-18 18:19:07 +00:00
joerg 0adaef6553 Restore suspend handler. Put the disc into standby on suspend and for
powerdown, but not for normal halt or reboot or panic. Fixes PR 37508.
2007-12-18 15:30:40 +00:00
agc f327aec7bc Update portable version of the iSCSI software to 20071218, to
include various minor build fixes.
2007-12-18 11:19:06 +00:00
martin 3abe4cb17d Remove *64 versions identical to their 32 bit version and aliased differently
now.
2007-12-18 11:05:53 +00:00
dogcow 779352d8d0 hello to libssh.so.7. 2007-12-18 09:17:21 +00:00
dogcow d642d06d3d fixes for alpha: %ld -> %zd, signals are long. 2007-12-18 09:00:30 +00:00
dogcow 7a14aed5b2 more __dead fallout: these two files are built for the native host, not
for the target host - and thus do not necessarily have __dead defined in
<sys/cdefs.h>.
2007-12-18 08:45:03 +00:00
dogcow ceafeaa9bc Eliminate "endian_convert defined but not used" on big-endian platforms;
instead of using the "generic" functions for byteswapping in this file,
use le32toh() and friends.
2007-12-18 08:32:21 +00:00
joerg 8a23ca4c5f Distribute blame for ACPI even further. 2007-12-18 07:37:57 +00:00
dogcow 881509a404 The blunt instrument approach to dealing with optional compiler sugar:
arbitrarily use the formerly-unused variable. Everybody's happy.
2007-12-18 07:33:54 +00:00
dogcow 90ee124aaf This should have been all on one line anyway - and hey, it fixes my build
issue.
2007-12-18 07:25:00 +00:00
dogcow 4750a01617 on NetBSD, use %zu for sizeof() 2007-12-18 07:22:32 +00:00
joerg 870cffb0ab Add new IPI for saving CPU state explicitly, share high-level part of
ACPI wakeup code and teach it how to start the APs again. As a side
effect the CPU_START interface allows choosing between different
bootstrap codes more easily now.
2007-12-18 07:17:08 +00:00
garbled 49a3869ae1 Import the config documentation from FreeBSD into the smm. Rather than
name the directory "02.config" as it historically was, name it config, so
that if we ever want to update this book for the modern age, we can move
chapters around, delete them, etc, without mass confusion.
2007-12-18 03:35:51 +00:00
christos 512c2e7e60 merge conflicts 2007-12-18 02:35:25 +00:00
christos cd7947efb0 update to 4.7 2007-12-18 02:34:32 +00:00
christos 6e9e025b28 update for 4.7 2007-12-18 02:33:37 +00:00
christos 68066588aa bump for 4.7 2007-12-18 02:32:36 +00:00
oster 257eb7f26a Fix a 'use after free' issue with wedges and RAIDframe.
Problem reported and fix tested by Jeff Rizzo (Thanks!).
2007-12-18 01:09:46 +00:00