Commit Graph

71496 Commits

Author SHA1 Message Date
rwatson
60d6d81252 NAI DBA update 2002-03-14 16:53:39 +00:00
markm
02184350e0 Remove the use of random(3), and encapsulate the salt-generation in
its own function. The use of arc4random(3) is hopeless overkill here,
but that does not hurt anything.

Requested by:	ache
2002-03-14 16:41:36 +00:00
maxim
fb79ef5523 Teach REST how to restart a file transfer after 2^31 bytes: now yylex()
returns off_t in yylval.u.o. REST is the only user of yylval.u.o at the
moment.

NB: seems lukemftpd has the same bug.

PR:		misc/28629
Reviewed by:	ru
Approved by:	ru
MFC after:	1 month
2002-03-14 16:05:06 +00:00
dfr
614f8fef36 Add ia64_sync_i(), ia64_get_tpr() and ia64_set_tpr(). 2002-03-14 12:29:55 +00:00
maxim
92c24ff925 Be consistent with UFS in a way how devfs_setattr() checks credentials
for chmod(2), chown(2) and utimes(2) with respect to jail(2).

Reviewed by:		rwatson, ru
Not objected by:	phk
Approved by:		ru
2002-03-14 11:18:42 +00:00
maxim
1bda6219a2 Clarify fcntl(2) and flock(2) interoperability.
PR:		docs/23353
Reviewed by:	ru, dillon
Approved by:	ru
MFC after:	3 days
2002-03-14 11:02:35 +00:00
dfr
2de0b2ebe2 * Add some KTR messages for IPIs.
* Don't call ast() from interrupt() - if we switch, then we will miss
  writing cr.eoi which will prevent the current cpu from receiving
  interrupts until the current thread is resumed. The call to ast()
  happens magically in exception_restore where it is safe.
* Add DDB 'show irq' command to examine interrupt hardware state.
2002-03-14 10:24:00 +00:00
dfr
7138bad96c Add debug code to print SAPIC registers. 2002-03-14 10:17:08 +00:00
billf
24095e45dc minor grammar fixes 2002-03-14 10:09:19 +00:00
murray
9d61be7130 Add an ENVIRONMENT section, and document TARGET_ARCH and NO_WERROR.
Add a cross-build example.
2002-03-14 09:38:24 +00:00
dfr
c50266a708 * Use a mutex to protect the RID allocator.
* Use ptc.g instead of ptc.l so that TLB shootdowns are broadcast to the
  coherence domain.
* Use smp_rendezvous for pmap_invalidate_all to ensure it happens on all
  cpus.
* Dike out a DIAGNOSTIC printf which didn't compile.
* Protect the internals of pmap_install with cpu_critical_enter/exit.
2002-03-14 09:28:05 +00:00
dfr
8af7d2dfbb Move the call to pmap_bootstrap to after the initialisation of thread0.
This allows us to use mutexes in pmap safely. Also initialise fpcurthread
for cpu0 so that ia64_fpstate_check doesn't barf during boot.
2002-03-14 09:20:07 +00:00
alfred
1fde57f8aa Missed this file for select SMP fixes associated with rev 1.93 of
kern/sys_generic.c
2002-03-14 05:16:18 +00:00
alfred
bc5f1abaf3 Missed this file for select SMP fixes associated with rev 1.93 of
kern/sys_generic.c
2002-03-14 04:47:08 +00:00
murray
d3d9f61de4 Various mdoc fixes.
Submitted by:	ru
2002-03-14 04:21:50 +00:00
obrien
2ca8fb58ab Tune WARNS for Alpha. 2002-03-14 02:24:25 +00:00
green
9116fd1a97 Document faultstate.lookup_still_valid more than none.
Requested by:	alfred
2002-03-14 02:10:14 +00:00
bmah
ed97e4d42e Activate the sparc64 installation document. 2002-03-14 01:47:56 +00:00
bmah
a48dba8b2d Whitespace, no content or markup changes. 2002-03-14 01:40:47 +00:00
bmah
8e06bec884 s/Sparc/SPARC/ 2002-03-14 01:34:26 +00:00
alfred
2c16fbdd2a Fixes to make select/poll mpsafe.
Problem:
  selwakeup required calling pfind which would cause lock order
  reversals with the allproc_lock and the per-process filedesc lock.
Solution:
  Instead of recording the pid of the select()'ing process into the
  selinfo structure, actually record a pointer to the thread.  To
  avoid dereferencing a bad address all the selinfo structures that
  are in use by a thread are kept in a list hung off the thread
  (protected by sellock).  When a selwakeup occurs the selinfo is
  removed from that threads list, it is also removed on the way out
  of select or poll where the thread will traverse its list removing
  all the selinfos from its own list.

Problem:
  Previously the PROC_LOCK was used to provide the mutual exclusion
  needed to ensure proper locking, this couldn't work because there
  was a single condvar used for select and poll and condvars can
  only be used with a single mutex.
Solution:
  Introduce a global mutex 'sellock' which is used to provide mutual
  exclusion when recording events to wait on as well as performing
  notification when an event occurs.

Interesting note:
  schedlock is required to manipulate the per-thread TDF_SELECT
  flag, however if given its own field it would not need schedlock,
  also because TDF_SELECT is only manipulated under sellock one
  doesn't actually use schedlock for syncronization, only to protect
  against corruption.

Proc locks are no longer used in select/poll.

Portions contributed by: davidc
2002-03-14 01:32:30 +00:00
bmah
ebb034597a Add a warning that URLs in this document are subject to change (in
fact, they're incorrect right now).  Point readers to the list
archives for current locations.
2002-03-14 01:29:31 +00:00
mckusick
670fad8a9e This corrects the first of two known deadlock conditions that
come from the presence of a snapshot file.
2002-03-14 01:21:13 +00:00
dfr
a679e26ad5 Don't restore r13 when returning to kernel mode. We may have migrated to
a different cpu since the exception_save and r13 needs to point at the
current cpu's pcpu structure.
2002-03-14 00:28:10 +00:00
green
9a5e1dcf21 Rename SI_SUB_MUTEX to SI_SUB_MTX_POOL to make the name at all accurate.
While doing this, move it earlier in the sysinit boot process so that the
VM system can use it.

After that, the system is now able to use sx locks instead of lockmgr
locks in the VM system.  To accomplish this, some of the more
questionable uses of the locks (such as testing whether they are
owned or not, as well as allowing shared+exclusive recursion) are
removed, and simpler logic throughout is used so locks should also be
easier to understand.

This has been tested on my laptop for months, and has not shown any
problems on SMP systems, either, so appears quite safe.  One more
user of lockmgr down, many more to go :)
2002-03-13 23:48:08 +00:00
rwatson
0de282ee42 DBA update: pick the right DBA for various LOMAC copyrights. 2002-03-13 22:55:20 +00:00
des
4b05a4140f Remove a bogus cast and deconstification that broke the Alpha kernel build. 2002-03-13 19:16:41 +00:00
des
3f3959c142 Back out previous commit, it was the wrong patch! 2002-03-13 19:13:41 +00:00
des
9d36319658 Remove a bogus cast that breaks the Alpha kernel build due to -Werror. 2002-03-13 19:12:31 +00:00
rnordier
2eb4d9e8c2 Clarify the cylinder > 1023 issue, now that EDD support is automatic.
Also drop a note about undocumented features that was intended to
cover the since-documented slice-selection syntax.
2002-03-13 19:00:19 +00:00
keramida
e863d43634 Fix syntax error. 2002-03-13 18:37:40 +00:00
obrien
908b6d102f Support linking with -z combreloc (combine and sort reloc sections) and with
--shared -z combreloc (shared library, combine & sort relocs)

Submitted by:		peter
Bribed by:		peter
Fixes:			IA-64, Kaffe, and QT
Doesn't fix ports by:	kris
Tested on:		make(1) release w/docproj
Desired for:		5.0-DP#1
Approved by:		murray
Seconded by:		jhb
2002-03-13 18:26:59 +00:00
imp
93a919ffc1 Add 5th parameter to pci_read_device specifying the size of the object
to create.
2002-03-13 16:32:11 +00:00
ue
7918719dc7 SGML fixes, part2: block elements like lists do not belong into inline
elements like paragraphs

This is a markup-only commit (just like the last one)

MFC after:	14 days
2002-03-13 15:29:51 +00:00
rwatson
7422a22d60 Document the "lomac_enable" rc.conf switch.
Reminded by:	Makoto Matsushita <matusita@jp.FreeBSD.org>
2002-03-13 15:28:37 +00:00
nyan
dfdd4c8eb4 Use the dx register for the destination port address. A immediate port
address of outb is only 8 bits.

Submitted by:	chi@bd.mbn.or.jp (Chiharu Shibata)
MFC after:	3 days
2002-03-13 13:59:41 +00:00
nyan
d58e833adf MFi386: revision 1.502 2002-03-13 13:45:00 +00:00
ue
7f733cd94b Fix some of the worst sgml mistakes in this document:
- paragraphs are closed with </para>, not <para>
- for each opening tag, there should be a closing tag

Not fixed (yet): block elements inside inline elements
Noticed during translation, hunted down with suppe/slashexpand
2002-03-13 13:10:22 +00:00
ru
0cfbf187d6 Document the "slice" syntax.
Prodded by:	ambrisko
2002-03-13 12:30:46 +00:00
ru
bb48189d63 Implement -m and -p loader(8) "boot" command options in boot2.
(This is more useful for 4.x where boot blocks can still load
kernels, modulo the PR kern/17422.)
2002-03-13 11:03:36 +00:00
ru
4eb95bc05a Further document "console" (nullconsole). 2002-03-13 10:55:22 +00:00
obrien
ded92cd9de Tokens after #endif are not strict ISO. 2002-03-13 10:29:06 +00:00
brian
783a07fdf2 Use the return value from snprintf() to keep a track of the length of
the display string in MPPEDispOpts.

PR:		35836
MFC After:	2 weeks
2002-03-13 10:21:19 +00:00
murray
e7306442d5 * Simplify the synopsis.
* Remove trailing whitespace at EOL.
* Various grammar cleanups.
* Note that MAKE_ISOS is disabled by default.
* Use more descriptive mdoc markup.
* Use proper references for the online FDP documents.

Submitted by:	dd
2002-03-13 09:54:31 +00:00
luigi
d4a3339ee0 Add a readonly sysctl variable of type string, kern.bootp_cookie,
which is initialized with whatever string a dhcp/bootp server passes
as vendor tag 134.
There is no standard tag that I know with this information, and
no vendor-defined tag that applies to FreeBSD that I could find
doing the same thing.

The intended use is to pass information to userland for run-time
configuration of a diskless client without having to run a bootp/dhcp
client for the third time (after the one in pxeboot/etherboot, and
the one in the kernel bootp), also because these clients generally
screwup the interface configuration, which is not exactly what you
want when you have your disks nfs-mounted.

Manpage update to follow soon.

MFC-after: 3 days
2002-03-13 09:23:11 +00:00
murray
e11d2515d5 Add information about multi-session CDs from the log message of r1.4.
Also, add an examples section and show how to mount a Kodak Photo-CD.

PR:		docs/35206
2002-03-13 08:27:27 +00:00
grog
f48d7937af Add encounter between Flinders and Baudin. 2002-03-13 07:57:24 +00:00
obrien
b376655374 Add note about genscripts.sh. 2002-03-13 07:16:00 +00:00
murray
aa8b8d80dc Reference release(7) in SEE ALSO. 2002-03-13 06:59:39 +00:00
murray
a07f296c34 Add a makefile to document the release building process.
Specifically, this documents the available targets and relevant
environment variables for "make release".  LOCAL_PATCHES,
RELEASEDISTFILES, RELEASENOUPDATE, etc.. are covered.

A future commit should add more information about drivers.conf,
boot_crunch.conf, and other less well-known aspects of the release
build.

Reviewed and history section added by:	phk
2002-03-13 06:33:26 +00:00