Commit Graph

59052 Commits

Author SHA1 Message Date
imp
92b1af4042 When booting, turn on the 3E0 compatibility address for ricoh cardbus
parts.  This is based on the newcard code that turns it off :-).  We
can now reboot after NEWCARD or Windows and have OLDCARD work.  Add
support for the RL5C466 while I'm at it.

Treat TI1031 the same as the CLPD6832.  It doesn't work yet, but sucks
less than it did before.

Also add a few #defines for other changes in the pipe.
2001-04-17 23:15:00 +00:00
iedowse
023d47cd6f Various bugfixes and cleanups, mainly from Martin Blapp:
- Revert del_mlist() to its pre-tirpc prototype. Unlike NetBSD's version,
  ours lets the caller generate any syslog() messages, so that it
  can include the service name in the message.
- Initialise a few local variables to clarify the logic and avoid some
  compiler warnings.
- Remove a few unused functions and local variables, and fix some
  whitespace issues.
- Reinstate the logic for avoiding duplicate host entries that got
  removed accidentally in revision 1.41 (added in r1.5). This bit
  was submitted in a slightly different form by Thomas Quinot.

Submitted by:	Martin Blapp <mb@imp.ch>,
		Thomas Quinot <quinot@inf.enst.fr>
PR:		bin/26148
2001-04-17 22:25:48 +00:00
dd
c50aedd1ac Make this driver play ball with devfs(5).
Reviewed by:	brian
2001-04-17 20:53:11 +00:00
alfred
2c4a656351 Add a sanity check on ucred refcount.
Submitted by: Terry Lambert <terry@lambert.org>
2001-04-17 20:50:43 +00:00
alfred
f0669d6c9e Implement client side NFS locks.
Obtained from: BSD/os
Import Ok'd by: mckusick, jkh, motd on builder.freebsd.org
2001-04-17 20:45:23 +00:00
phk
676302e684 Write a switch statement as less obscure if statements. 2001-04-17 20:22:07 +00:00
bmah
b141e422b6 Update for security advisories: 01:32 (ipfilter), 01:33 (glob/ftp).
New release notes:  TCP ISS randomization, groff-1.17.
2001-04-17 19:22:07 +00:00
schweikh
6a476620d8 Fixed typos.
Approved by:	jkh
2001-04-17 19:08:41 +00:00
obrien
25ef5bec44 Optimize make invocations by using multiple targets. 2001-04-17 18:32:35 +00:00
jhb
2a45d7c9b1 Save are floating point state in cpu_switch() if needed instead of relying
completely on lazy floating point state saving.  This is needed for the
SMP case since processes can migrate to other CPUs.

Submitted by:	dfr
2001-04-17 18:27:55 +00:00
kris
3c55192143 I think this was supposed to be __const like in NetBSD: I have no idea
why I changed it to const.

Noticed by:	David Wolfskill <david@catwhisker.org>
2001-04-17 18:16:46 +00:00
kris
c6ccf71cc0 Note that the previous commit also restored some historical behaviour
in the TCP_COMPAT_42 case (e.g. choosing '1' as the initial sequence
number at boot-time, instead of randomizing it).  TCP_COMPAT_42 is the
repository for old security holes, too :-)
2001-04-17 18:14:37 +00:00
kris
0c55f2e6da Randomize the TCP initial sequence numbers more thoroughly.
Obtained from:	OpenBSD
Reviewed by:	jesper, peter, -developers
2001-04-17 18:08:01 +00:00
jhb
f2fbc423a1 Fix an old bug related to BETTER_CLOCK. Call forward_*clock if SMP
and __i386__ are defined rather than if SMP and BETTER_CLOCK are defined.
The removal of BETTER_CLOCK would have broken this except that kern_clock.c
doesn't include <machine/smptests.h>, so it doesn't see the definition of
BETTER_CLOCK, and forward_*clock aren't called, even on 4.x.  This seems to
fix the problem where a n-way SMP system would see 100 * n clk interrupts
and 128 * n rtc interrupts.
2001-04-17 17:53:36 +00:00
schweikh
8d48c36eaf Typos fixed.
Approved by:	jkh
2001-04-17 17:42:46 +00:00
n_hibma
666a229175 Regen. 2001-04-17 15:53:35 +00:00
n_hibma
6d8536593a Add the HP scanner 3400C 2001-04-17 15:53:20 +00:00
n_hibma
b7ba82d18a Regen. 2001-04-17 15:34:44 +00:00
n_hibma
d36374f53c Lexar jumpSHOT Id.
Submitted by:	gshapiro
2001-04-17 15:34:22 +00:00
n_hibma
af860f7491 Remove a bogus %s from a printf.
Submitted by:	kris
2001-04-17 15:00:03 +00:00
gallatin
36a5c45998 set gd_other_cpus later, when we have a better idea what the other cpus
are.

submitted by: jhb
2001-04-17 14:59:05 +00:00
gallatin
72d859dc84 Improved support for alpha SMP. The following commit gets dual AS2100s
and AS4100s into single user mode. This work was done jointly by jhb and
myself, and builds on dfr's earlier work.

smp_init_secondary() / smp_start_secondary()
- use the uniq val to pass the globalp (me)
- fancy footwork to take any pending machine checks (me)
- doing things the FreeBSD way and getting the per-cpu idleproc created
  correctly, and synchronizing the startup of secondaries (jhb)

mp_start()
- better recognition of available cpus (jhb)

smp_rendezvous()
- if smp hasn't started, only run the rendezvous function on the current
cpu.  Sleuthing and (prior) incorrect fix by me, correct fix by jhb

smp_handle_ipi()
- more verbose handling of console messages (jhb)
- grab sched lock around setting PS_ASTPENDING (jhb)

forward_*clock()
- commented out.  Joint decision by dfr, jhb and myself

 General synchronization improvements (more mb()s, etc) (jhb)

 Printf cleanups (joint)

 Whitespace cleanups (jhb)
2001-04-17 14:55:09 +00:00
ru
9a9e1be01c Update upgrade instructions. 2001-04-17 14:31:56 +00:00
ru
45d5a00555 Remove share/tmac/locale/ and share/tmac/mdoc/locale/. 2001-04-17 14:22:50 +00:00
gallatin
46b69f69df Changes to support SMP:
- don't do the stack overflow sanity check on MP systems -- p->p_addr
will be malloc'ed memory (not K0SEG) and the check will fail.

- don't ignore clock interrupts on secondaries.  Alphas apparently
roundrobin clock interrupts to all cpus, so we're going to take clock
interrupts on all CPUS and not forward them.
2001-04-17 14:20:33 +00:00
gallatin
6d75f2cafd changes to smp_init_secondary_glue():
- use the unique value to save the per-cpu globalp struct like the
  comment says

- don't lower the ipl to ALPHA_PSL_IPL_HIGH: we may have a pending machine
  check to take and we're not prepared for that yet, as we haven't setup
  our interrupt entry points. (this may only happen on sable/lynx)

- indicate the fact that the working version of smp_init_secondary() doesn't
  return (this is tied up in other changes and hasn't yet been committed).
2001-04-17 14:15:12 +00:00
ru
fd0735f916 FreeBSD provides its own version of this OS-specific file. 2001-04-17 13:32:10 +00:00
sobomax
2ebe223069 Add Ukrainian language support for FreeBSD console.
Submitted by:	Olexander Kunytsa <kunia@istc.kiev.ua>
Reviewed by:	ache, phantom, ru, sobomax
2001-04-17 12:51:27 +00:00
ru
8cadefed21 Synch template with one documented in the new mdoc(7) manpage. 2001-04-17 12:51:21 +00:00
ru
fa75077aa7 mdoc.samples(7) is superseded by mdoc(7). 2001-04-17 12:49:42 +00:00
ru
7da3053737 Use Groff versions of man(7) and mdoc(7) manpages.
mdoc.samples(7) is superseded by mdoc(7).
2001-04-17 12:48:14 +00:00
ru
52dfeb6121 Synch with new contrib/groff/ directory layout. 2001-04-17 12:40:46 +00:00
ru
d59fb64c3d Upgrade to Groff 1.17. 2001-04-17 12:37:18 +00:00
ru
ce2596bad6 Removed yacc(1) output files. 2001-04-17 12:29:43 +00:00
ru
23037f0339 Merge Groff 1.17 changes. 2001-04-17 12:28:31 +00:00
ru
9fef68f9b1 Use stock (FSF) version of this file. 2001-04-17 12:28:00 +00:00
ru
61352401d3 This commit was generated by cvs2svn to compensate for changes in r75587,
which included commits to RCS files with non-trunk default branches.
2001-04-17 12:23:50 +00:00
ru
42d565388e Removed files not present in v1.17 import. 2001-04-17 12:23:50 +00:00
ru
78a36d2109 This commit was generated by cvs2svn to compensate for changes in r75584,
which included commits to RCS files with non-trunk default branches.
2001-04-17 12:12:05 +00:00
ru
0e0a0e6429 Virgin import of FSF groff v1.17 2001-04-17 12:12:05 +00:00
sobomax
3b4ec64f28 Update/improve Ukrainian translation.
Submitted by:	Olexander Kunytsa <kunia@istc.kiev.ua> (author of translation)
2001-04-17 11:00:58 +00:00
brian
9d60715bcd Dont (ab)use drv2 to know if (si_flags & SI_NAMED) (pointed out by dd)
Call cdevsw_remove when we unload.
2001-04-17 09:59:34 +00:00
dougb
7ab9ec9338 By popular demand, have adduser preserve comments at the top of the
group file. Because of the way the group sorting works while printing
out the new file it's not possible at this time to restore comments
in other locations, but at least they won't just disappear altogether.
2001-04-17 09:42:07 +00:00
phk
378e561228 This patch removes the VOP_BWRITE() vector.
VOP_BWRITE() was a hack which made it possible for NFS client
side to use struct buf with non-bio backing.

This patch takes a more general approach and adds a bp->b_op
vector where more methods can be added.

The success of this patch depends on bp->b_op being initialized
all relevant places for some value of "relevant" which is not
easy to determine.  For now the buffers have grown a b_magic
element which will make such issues a tiny bit easier to debug.
2001-04-17 08:56:39 +00:00
kris
922e3083cc Correct a typo; prefered -> preferred. 2001-04-17 08:01:54 +00:00
kris
0f958ee746 Add fmtcheck(), a function for checking consistency of format string
arguments where the format string is obtained from user data, or
otherwise difficult to verify statically.

Example usage:

printf(fmtcheck(user_format, standard_format), arg1, arg2);

checks the format string user_format for consistency (same number/order/
type of format operators) with standard_format.  If they differ,
standard_format is used instead to avoid potential crashes or security
violations.

Obtained from:  NetBSD
Reviewed by:    -arch
2001-04-17 07:59:52 +00:00
kris
b6da0fca77 -Wnon-const-format sweep: make format strings const char *'s, add
__printflike()/__printf0like() to function prototypes, as appropriate.

Reviewed by:	bde, -audit
2001-04-17 07:46:38 +00:00
kris
9acb56a18a '%' is not a valid format string :-) 2001-04-17 07:35:41 +00:00
kris
981a5bef19 Remove spurious extra format string argument. 2001-04-17 07:32:37 +00:00
kris
5dc1c9a555 Add a missing argument to an error message format string. 2001-04-17 07:21:48 +00:00