Commit Graph

104370 Commits

Author SHA1 Message Date
njl
f3e20d3d7b Get rid of the strict aliasing error by retrieving the ECDT via a table
header pointer and then casting it to the ecdt pointer.  This fixes the
-O2 build.  I'm unsure what changed recently to reveal this error since
this code has been unchanged for months.
2004-07-02 19:17:27 +00:00
jhb
1b16b181d1 - Change mi_switch() and sched_switch() to accept an optional thread to
switch to.  If a non-NULL thread pointer is passed in, then the CPU will
  switch to that thread directly rather than calling choosethread() to pick
  a thread to choose to.
- Make sched_switch() aware of idle threads and know to do
  TD_SET_CAN_RUN() instead of sticking them on the run queue rather than
  requiring all callers of mi_switch() to know to do this if they can be
  called from an idlethread.
- Move constants for arguments to mi_switch() and thread_single() out of
  the middle of the function prototypes and up above into their own
  section.
2004-07-02 19:09:50 +00:00
ru
4b39413aeb Removed trailing whitespace. 2004-07-02 19:07:33 +00:00
arun
c0b5079fea Bump up the date and add spaces around commas. Thanks to ru@ for noticing. 2004-07-02 18:39:15 +00:00
ru
08228faf09 Deal with harmful leading whitespace. 2004-07-02 18:37:52 +00:00
philip
f09173747a Fix the '\' next to lshift for users of Belgian keyboards.
Submitted by:	Glenn Matthys <glenn@opengate.be>
Approved by:	njl
2004-07-02 18:19:01 +00:00
ru
4498f82b4e Fixed spelling of the document date. 2004-07-02 18:00:03 +00:00
des
711ff21aae Explain that -O2 is supported, but known to expose bugs in ppp(8). 2004-07-02 17:08:39 +00:00
des
9f17069c38 We support -O2 now. 2004-07-02 17:06:19 +00:00
ru
9d678b540a Markup tidying. 2004-07-02 16:45:56 +00:00
ru
627ed40f49 Bump document date on behalf of the previous change. 2004-07-02 16:19:28 +00:00
scottl
4ee5f5f697 Small grammar fix. 2004-07-02 15:52:44 +00:00
maxim
9739bce6b2 Document net.inet.ip.process_options sysctl.
Improved by:	ru
Reviewed by:	andre
2004-07-02 15:47:47 +00:00
netchild
14b36b7b44 Implement SNDCTL_DSP_SETDUPLEX. This may fix sound apps which want to
use full duplex mode.

Approved by:	matk
2004-07-02 15:31:44 +00:00
davidxu
e4bfd01864 Use %esi to store next ucp pointer. Mark end of stack by
setting %ebp to zero, this avoids new gdb to dump a weird
backtrace.
2004-07-02 14:19:44 +00:00
imp
d4df3eec34 Disable native ata support for now, too much breaks 2004-07-02 13:42:36 +00:00
den
6e24bc95d8 Fix <small> tags 2004-07-02 13:13:20 +00:00
eik
8ba39a47b0 manlint
Obtained from:	ru
2004-07-02 12:34:13 +00:00
eik
71279faf28 New variable `.MAKEFILE_LIST', useful for tracing, debugging and dependency tracking.
Use
  make -V .MAKEFILE_LIST | tr \  \\n | awk '$0==".." {l--; next} {l++; printf "%*s%s\n", l, " ", $0}'
to print a tree of all included makefiles.

Approved by:	joerg
MFC after:	1 week
2004-07-02 12:30:28 +00:00
mlaier
7bc770a254 Bring in the first chunk of altq driver modifications. This covers the
following drivers: bfe(4), em(4), fxp(4), lnc(4), tun(4), de(4) rl(4),
sis(4) and xl(4)

More patches are pending on: http://peoples.freebsd.org/~mlaier/ Please take
a look and tell me if "your" driver is missing, so I can fix this.

Tested-by:	many
No-objection:	-current, -net
2004-07-02 12:16:02 +00:00
tjr
1ddf2fdcc0 Hook strnlen.c up to the build - the i18n patch uses it. 2004-07-02 11:09:55 +00:00
tjr
ceb7da92e5 Add support for multi-byte character sets.
Obtained from:	Mitsuru Chinen (IBM) via The Fedora Project
2004-07-02 11:07:42 +00:00
tjr
64efc9f020 Update build infrastructure for sort from GNU coreutils 5.2.1. 2004-07-02 09:34:37 +00:00
tjr
d286426955 Resolve conflicts. 2004-07-02 09:27:09 +00:00
davidxu
e7a5dd69ac Allow ptrace to deal with lwpid.
Reviewed by: marcel
2004-07-02 09:19:22 +00:00
tjr
a6d7df1ec2 This commit was generated by cvs2svn to compensate for changes in r131447,
which included commits to RCS files with non-trunk default branches.
2004-07-02 09:18:31 +00:00
tjr
7e89f68317 Import of GNU sort from coreutils 5.2.1 (trimmed) 2004-07-02 09:18:31 +00:00
ru
41d36aefb3 Markup overhaul and minor word smithing. 2004-07-02 08:52:09 +00:00
marks
5d8d564126 Local change: Allow access to the field if it is within the region
size rounded up to a multiple of the access byte width.  This overcomes
"off-by-one" programming errors in the AML often found in Toshiba
laptops.
2004-07-02 08:38:55 +00:00
marks
166cdec76e Local diff: allow use of the disassembler. 2004-07-02 08:37:56 +00:00
marks
9643d091f6 Unchanged files that are off the vendor branch. 2004-07-02 08:34:19 +00:00
marks
495d5925ec This commit was generated by cvs2svn to compensate for changes in r131440,
which included commits to RCS files with non-trunk default branches.
2004-07-02 08:14:36 +00:00
marks
4a971257d3 Vendor import of Intel ACPI-CA 20040527 2004-07-02 08:14:36 +00:00
alfred
f05df8a881 We allocate an array of pointers to the global file table while
not holding the filelist_lock.  This means the filelist can change
size while allocating.  Detect this race and retry the allocation.
2004-07-02 07:40:10 +00:00
ru
a6f97943ad Bring this manpage more up-to-date with the current code.
Submitted by:	Gleb Smirnoff
Reviewed by:	julian, ru
2004-07-02 06:05:04 +00:00
jhb
ca6f6cfd39 Tidy up uprof locking. Mostly the fields are protected by both the proc
lock and sched_lock so they can be read with either lock held.  Document
the locking as well.  The one remaining bogosity is that pr_addr and
pr_ticks should be per-thread but profiling of multithreaded apps is
currently undefined.
2004-07-02 03:50:48 +00:00
jhb
2c858bc6df - Assert that any process that has statclock called on it has both a
stats structure and a vmspace as this should always be true rather
  than checking the always true condition in an if statement.
- Remove never-false check: if ((ru = &pstats->p_ru) != NULL)
- Remove pstats variable that is only used once and inline its one use
  instead.
2004-07-02 03:48:09 +00:00
scottl
1f03137b23 Allocate s/g segments in the tag rather than on the stack. 2004-07-02 03:47:28 +00:00
jhb
ce31015cd1 - Don't use a variable to point to the user area that we only use once.
Just use p2->p_uarea directly instead.
- Remove an old and mostly bogus assertion regarding p2->p_sigacts.
- Use RANGEOF macro ala fork1() to clean up bzero/bcopy of p_stats.
2004-07-02 03:45:07 +00:00
jhb
38f4fdd957 Add support for the VIA Apollo KT400/400A/600 AGP host bridges which use
the VIA v3 register offsets.

PR:		68545
Submitted by:	Ariff Abdullah <skywizard@mybsd.org.my>
2004-07-02 03:39:33 +00:00
marcel
622fe058c9 Change the thread ID (thr_id_t) used for 1:1 threading from being a
pointer to the corresponding struct thread to the thread ID (lwpid_t)
assigned to that thread. The primary reason for this change is that
libthr now internally uses the same ID as the debugger and the kernel
when referencing to a kernel thread. This allows us to implement the
support for debugging without additional translations and/or mappings.

To preserve the ABI, the 1:1 threading syscalls, including the umtx
locking API have not been changed to work on a lwpid_t. Instead the
1:1 threading syscalls operate on long and the umtx locking API has
not been changed except for the contested bit. Previously this was
the least significant bit. Now it's the most significant bit. Since
the contested bit should not be tested by userland, this change is
not expected to be visible. Just to be sure, UMTX_CONTESTED has been
removed from <sys/umtx.h>.

Reviewed by: mtm@
ABI preservation tested on: i386, ia64
2004-07-02 00:40:07 +00:00
marcel
e84fdd61ba Regen. 2004-07-02 00:38:56 +00:00
eik
c8846623ed Bump __FreeBSD_version for package tools revision 20040629 2004-07-02 00:01:34 +00:00
truckman
9ed03e6eb3 When shutting down the syncer kernel thread, first tell it to run
faster and iterate to over its work list a few times in an attempt
to empty the work list before the syncer terminates.  This leaves
fewer dirty blocks to be written at the "syncing disks" stage and
keeps the the "giving up on N buffers" problem from being triggered
by the presence of a large soft updates work list at system shutdown
time.  The downside is that the syncer takes noticeably longer to
terminate.

Tested by:	"Arjan van Leeuwen" <avleeuwen AT piwebs DOT com>
Approved by:	mckusick
2004-07-01 23:59:19 +00:00
jayanth
657c0f9155 On receiving 3 duplicate acknowledgements, SACK recovery was not being entered correctly.
Fix this problem by separating out the SACK and the newreno cases. Also, check
if we are in FASTRECOVERY for the sack case and if so, turn off dupacks.

Fix an issue where the congestion window was not being incremented by ssthresh.

Thanks to Mohan Srinivasan for finding this problem.
2004-07-01 23:34:06 +00:00
tackerman
266fbe3791 PR kern/68474:
Changed if_ipending to if_flags
2004-07-01 22:37:47 +00:00
arun
dce79fc81a Added the ability to create and display Linux/Windows GPT partitions to gpt(8). 2004-07-01 22:27:12 +00:00
scottl
29f2bc7642 Remove stray i386 math emulator references. 2004-07-01 22:18:06 +00:00
le
1a49f27fe6 MFNetBSD.
rev 1.66, author: mycroft
   Fix an endianness problem (EHCI_NULL was being double-swapped).

Obtained from:  NetBSD
2004-07-01 21:17:50 +00:00
le
4925f692a6 MFNetBSD.
rev. 1.68, author: mycroft
   Ignore a port error that happens to come in at the same time as a
   connect status change.  Some root hubs seem to report both.

Obtained from:   NetBSD
2004-07-01 21:14:03 +00:00