Commit Graph

83676 Commits

Author SHA1 Message Date
Marcel Moolenaar
ea16741fc0 The boot manager sets the watchdog timer to 5 minutes before invoking
a boot option. When the timer expires the machine is rebooted.
Disable the watchdog timer for 2 reasons:
o  We're an interactive program. We cannot guarantee that we've
   booted the kernel in the time available to us. There have been
   situations where netbooting the right kernel took 2 tries and
   more time than given. Not to speak of the normal behaviour to
   have the loader sitting at the prompt while the user is off
   doing other things (such as figuring out what to type next ;-)
o  We may not boot a kernel at all. We may exit as the result of
   the user typing quit (assuming it took less than 5 minutes to
   type it :-). It is documented that loaders should have disabled
   the watchdog timer if they return to the boot manager. Not doing
   so would cause a reboot while in the boot manager. This appears
   to be harmless, besides of course the actual reboot.

Approved by: re (weisse karte)
2002-12-08 20:04:00 +00:00
Marcel Moolenaar
487d404b1b In efi_cons_poll we check if a key is present (pending) by checking
the signaled state of the apropriate event. As a side-effect of
checking the event, it's signaled state is cleared if it was set.
In efi_cons_getchar we used to wait for the apropriate event to be
signaled before reading a character. This however does not work if
we poll before reading the characteri, such as during autoboot. On
a more compliant EFI implementation this resulted in the behaviour
that hitting a key during autoboot would stop the countdown, but
would then wait for a new character to arrive instead of reading
the already pending key that stopped the countdown.

The correct behaviour for efi_cons_getchar is to try to read a key
and if none is pending, to wait for the apropriate event to signal
the arrival of a new key.

Note that with the previous behaviour, the second key would determine
how the autoboot was interrupted. This would indicate that the first
key got lost. This indicates that EFI does not necessarily maintain
a queue of pending keys. FWIW...

Approved by: re (carte blanche)
French corrected by: various people :-)
2002-12-08 19:46:11 +00:00
Murray Stokely
9b7e3080cf We use .tbz packages in -CURRENT now.
Approved by:	re
2002-12-08 18:31:03 +00:00
Ian Dowse
42d5b03cfc Fix emulation of the fcntl64() syscall. In Linux, this is exactly
the same as fcntl() except that it supports the new 64-bit file
locking commands (LINUX_F_GETLK64 etc) that use the `flock64'
structure. We had been interpreting all flock structures passed to
fcntl64() as `struct flock64' instead of only the ones from F_*64
commands.

The glibc in linux_base-7 uses fcntl64() by default, but the bug
was often non-fatal since the misinterpretation typically only
causes junk to appear in the `l_len' field and most junk values are
accepted as valid range lengths. The result is occasional EINVAL
errors from F_SETLK and a few bytes after the supplied `struct
flock' getting clobbered during F_GETLK.

PR:		kern/37656
Reviewed by:	marcel
Approved by:	re
MFC after:	1 week
2002-12-08 18:30:44 +00:00
Robert Watson
f7883a793c Correct alphabetization of awi entry.
Inane act of:	re
Spotted by:	bde
2002-12-08 17:59:44 +00:00
Scott Long
9449f0dc90 Add FAQ entries on dealing with ACPI issues and enabling the ISA drivers
that were recently disabled.
There still are several references to the now-gone userconfig; these need to
be fixed before 5.0-RELEASE.

Approved by:	re (rwatson)
2002-12-08 17:24:38 +00:00
Alan Cox
2e29a1f21f To avoid lock order reversals in getnewvnode(), the call to uma_zfree()
must be delayed until the vnode interlock is released.

Reported by:	kris@
Approved by:	re (jhb)
2002-12-08 05:06:50 +00:00
Robert Watson
e6f88402ff Move the awi module build dependency into the MACHINE_ARCH=i386 entry. 2002-12-08 03:55:35 +00:00
Giorgos Keramidas
0333ea509d Avoid using perl in the periodic & security scripts. This brings the
base system one step closer to being totally perl-free.

Approved by:	re (jhb)
2002-12-07 23:37:44 +00:00
Udo Erdelhoff
f22dda7a29 MFbed
a) track changes in the english version (aka chase Bruce)
hardware/alpha/proc-alpha.sgml:         1.48  -> 1.49
hardware/common/dev.sgml:               1.117 -> 1.119
hardware/i386/article.sgml:             1.3   -> 1.4
installation/i386/article.sgml:         1.3   -> 1.4
relnotes/common/new.sgml:               1.461 -> 1.466
relnotes/i386/article.sgml:             1.3   -> 1.4

b) use /doc/de_DE.ISO8859-1 where possible
early-adopter/article.sgml (also bumped marker for translation no-op)
installation/common/install.sgml
installation/common/upgrade.sgml
installation/sparc64/install.sgml
readme/article.sgml
relnotes/common/new.sgml

Approved by:	re (blanket)
2002-12-07 22:32:31 +00:00
Ian Dowse
9d580d7c5f Slow down the operation of background fsck so as to leave some disk
bandwidth for other processes. Since the sleeping is done from
userland, this avoids the locking issues that affected the kernel
version.

The algorithm used here is to measure a moving average of the times
taken by a sample of read operations and then delay 1 in 8 reads
by 16 times the measured average. This should correspond to a factor
of 3 slowdown, but in practice the factor is larger (3.5 to 4) due
to hz rounding effects.

Reviewed by:	mckusick
Approved by:	re
2002-12-07 21:40:31 +00:00
Maxim Sobolev
16199bf2d3 MFS: recognize gre packets used in the WCCP protocol.
Approved by:	re
2002-12-07 14:22:05 +00:00
Robert Watson
3358dbd039 Hook up the awi module for build on i386 and pc98, which appear to be
the supported platforms.  We build it into GENERIC, and it is currently
listed on the supported module list for drivers.conf on i386, which
breaks the release build.  This may fix the release build for RC1 on
i386.

Conspiracy of:	re
2002-12-07 14:06:56 +00:00
Roger Hardiman
1f3e23743d Fix a bug which caused signals on YUV images to fail.
PR: i386/45678  (this also allowed kern/21305 and kern/33715 to be closed)
Submitted by: Tommy Johnson <tjohnson@bobdbob.com>
2002-12-07 09:00:19 +00:00
Max Khon
cf37bfb0ec fix connecting to (samba) server when share-level security is in effect
(do not send second password at all)

Approved by:	bp, re
MFC after:	1 week
2002-12-07 08:28:56 +00:00
Warner Losh
3054f218eb MFp4 (imp_freebsd branch): snapshot of devd work:
o improve parsing and lexing
o create data structures based on the parsed file now.
o Still need to rewrite main loop and add regex (still uses hard coded
  devd-generic)
o minor man page updates.

# There should be one more commit before rc2

Approved by: re (blanket)
2002-12-07 08:04:36 +00:00
Robert Watson
b77b2b6ed3 Provide enhanced information on configuring SMP support in a kernel.
Approved by:	re
2002-12-07 01:50:06 +00:00
Robert Watson
fe93f598bb Take a pass at updating this man page a bit to at least mention SMPng,
that we do MP on more than just i386, and add some cross-references.
This is far from a perfect update, but at least it's a start.  More
will no doubt follow.

Reviewed by:	jhb
Approved by:	re
2002-12-07 01:37:12 +00:00
Wilko Bulte
b845aa8b6d AS200's sound works better with irq 10.
Submitted by: Paul Halliday <dp@dove.penix.org>
Approved by: re (bmah>
2002-12-06 20:04:34 +00:00
Søren Schmidt
9dec0f3de0 Fix linking problem when atadisk is not use in ata-all.c
Add dummy intr_func and lock_func to ata-card.c

Dont call ad_print if the driver decided there is no disk.
2002-12-06 19:29:53 +00:00
Giorgos Keramidas
17d47eb38a Add an entry for sparc64 users to warn them about potential problems
with kernels & modules that are not in sync, after the latest upgrade
of binutils.

Reviewed by:	tmm
Approved by:	re (rwatson)
2002-12-06 13:19:35 +00:00
Thomas Moestl
a9dace022e Exclude yet more interrupt mapping registers from the OBIO INO search,
namely the ones for the timers, error handling and power management.
The registers for the timers, power management and PCI bus b errors are
reserved on Sabres (US-IIi) and can lead to false matches there.
Since all of them are never used for devices on the bus, they can be omitted
safely.

Approved by:	re
2002-12-06 13:16:52 +00:00
Murray Stokely
04242a0840 Move awi to mfsroot floppy. There is no space for 802.11 drivers on
the boot floppy.

Approved by:	re
2002-12-06 08:09:56 +00:00
Warner Losh
c1b4ec662a Make pccardd have -z by default. This fixes a few startup problems
where people want to have the cards configured.  Lack of -z is a speed
optimization.

Submitted by: many voices on mobile@
Approved by: re@ (rwatson)
MFC after: 3 days
2002-12-06 05:23:37 +00:00
Hidetoshi Shimokawa
17c3d42c9e Reduce and improve debug messages.
Approved by: re
2002-12-06 02:17:30 +00:00
SUZUKI Shinsuke
45289b43fb corrected buffer lengths for memset()
obtained from: KAME
MFC after: 3 days
2002-12-06 02:11:31 +00:00
Kirk McKusick
8d6754f289 More tightly verify the preference returned for the new inode.
Submitted by:	Kris Kennaway <kris@obsecurity.org>
Sponsored by:   DARPA & NAI Labs.
Approved by:	re
2002-12-06 02:08:46 +00:00
John Baldwin
55d7b94047 Add "disabled" hints to all of the uncommon ISA devices that are in
GENERIC.  Each device can be re-enabled at startup time by unsetting the
disabled hint in the loader.

Requested by:	mdodd
Approved by:	re
Prodded by:	rwatson
2002-12-05 22:49:47 +00:00
John Baldwin
f179ebe91e - Use some macros to define common text between the dialog boxes to set the
type of new slices and to change the type of existing slices.  This also
  has the advantage of moving a few #ifdef PC98's up to where the macros
  are defined instead of in the middle of the code.
- Change the behavior of the 'T' option in the slice editor so that the
  default value in the dialog box is the current type of the existing
  slice rather than defaulting to changing the slice to a FreeBSD slice as
  this is more intuitive.

Approved by:	re
2002-12-05 22:10:39 +00:00
Peter Wemm
878c9687ec Do not guarantee an overflow of tm_year when doing the binary search in
localtime/mktime/tmcomp and friends on ia64.

Approved by:	re
2002-12-05 19:54:47 +00:00
David E. O'Brien
ca894c66e0 _NIH, __NIH__, __N_I_H__, __nih__, _niH_.
*sigh* GCC developers can't seem to make up their mind which pre-defined arch
symbols are the official ones.  So make them, and the Sparc64 using Martians
happy with every permutation.

This fixes f77 and possibly changes some 'long long' handling.

Approved by:	re(bmah)
2002-12-05 18:40:24 +00:00
David E. O'Brien
b07af2c4b2 Back out rev 1.7 -- I'm not sure we're ready for it and I can't test it.
Marcel will find out RSN if it is needed and I'll let him fix this up if
need be.
2002-12-05 18:35:44 +00:00
David E. O'Brien
dfe585cc69 Our binary output format is now "elf64-ia64-little-freebsd". 2002-12-05 18:28:01 +00:00
David E. O'Brien
52678bf874 We need to support the bfd_efi_app_ia64_vec vector for loader support.
Submitted by:	Marcel
Approved by:	RE
2002-12-05 18:27:22 +00:00
David E. O'Brien
3e17ea404e Change the default emulation to elf64_sparc_fbsd. This emulation knows the
correct spelling of our rtld.
2002-12-05 18:25:09 +00:00
David E. O'Brien
978f043ed0 Set WARNS=0 as a temp work around until I can get access to an IA-64 box
to do this right.

Approved by:	RE
2002-12-05 18:24:34 +00:00
David E. O'Brien
a91d8d9644 Change the default emulation to elf64_ia64_fbsd. This knows the proper
spelling of our rtld.
2002-12-05 18:23:08 +00:00
David E. O'Brien
51c79e7572 Don't dike out ELF_DYNAMIC_INTERPRETER, we need this copy now.
This should have been committed with ia64/bfd.h rev 1.6.

Approved by:	RE
2002-12-05 18:19:18 +00:00
Alexander Kabaev
8e44609c92 C++ exceptions with shared libraries are working on sparc64 now.
Build shared libstdc++so on sparc64 platform too.

Approved:	re (rwatson)
2002-12-05 17:04:03 +00:00
Alexander Kabaev
f94cc7e9ca Fix rtld to handle SPARC_R_UA{16,64} relocations correctly.
Approved by:	re (rwatson)
2002-12-05 16:58:31 +00:00
Ian Dowse
2f07688e82 In the NFSv3 `fsinfo' procedure reply, don't claim that we support
32k read and write operations on datagram sockets when in fact we
reject requests larger than 16k. It must be the case that virtually
all clients use data sizes of 16k or less for UDP transport (FreeBSD's
client defaults to 8k and never exceeds 16k), as this bug has been
present ever since NFSv3 support was added.

Reported by:	Senthil <lihtnes78@netscape.net>
Reviewed by:	dillon
Approved by:	re
MFC-after:	1 week
2002-12-05 16:58:11 +00:00
Bruce A. Mah
a66504b36e Update hardware notes for new ata(4) controller and platform. bge(4)
seems to work on ia64, so add that arch.

Approved by:	re (implicitly)
2002-12-05 16:46:45 +00:00
Bruce A. Mah
f5ba56c721 New release notes: ata(4) support for Acard controllers, ata(4) works
on pc98.
2002-12-05 16:45:14 +00:00
Yoshihiro Takahashi
65e261ce04 Add ATA_NOPCI option for small kern.flp floppy.
Approved by:	re (murray)
2002-12-05 13:07:55 +00:00
Ruslan Ermilov
db8993ce9e Capitalize ASCII code names.
Approved by:	re
2002-12-05 08:50:00 +00:00
Bruce A. Mah
f7d655d51e Version bump for 5.0-RC.
Approved by:	re
2002-12-05 06:06:21 +00:00
Murray Stokely
16c4307462 Welcome to 5.0-RC.
Approved by:	re
2002-12-05 05:27:49 +00:00
Scott Long
8528a71202 The sequencer downloading code assumes that all jump
labels are acurate in relation to a fully compiled
sequencer program (all patches downloaded).  Correct
a few occurances of a relative jump across a macro
that ended up jumping us into the last instruction
of the macro.

Spproved by:	re (bmah)
2002-12-05 00:47:27 +00:00
Chris Costello
1f1ba8aea6 Forced commit:
Credit Hiten M. Pandya <hiten@angelica.unixdaemons.com> with reporting that
 suser_cred(9) should've been suser(9).
2002-12-05 00:40:31 +00:00
Chris Costello
3ebc28efa8 Document the following MAC policies:
o Biba: A data integrity policy
o BSD Extended: Support for the firewall-like access controls (ugidfw(8))
o MLS: Multi-level security, a confidentiality policy

(These files originally lived in src/share/man/man9)

Approved by:	re (blanket)
Sponsored by:	DARPA, Network Associates Labs
Obtained from:	TrustedBSD Project
2002-12-05 00:05:38 +00:00