Commit Graph

114494 Commits

Author SHA1 Message Date
maxim
7481c52399 o Tweak the comment a bit. 2005-04-08 08:43:21 +00:00
maxim
062c651951 o Disable random port allocation when ip.portrange.first ==
ip.portrange.last and there is the only port for that because:
a) it is not wise; b) it leads to a panic in the random ip port
allocation code.  In general we need to disable ip port allocation
randomization if the last - first delta is ridiculous small.

PR:		kern/79342
Spotted by:	Anjali Kulkarni
Glanced at by:	silby
MFC after:	2 weeks
2005-04-08 08:42:10 +00:00
silby
d4665b92c7 A simple regression test for msdosfs. Not the best, but it would have caught
the recent trouble msdosfs had.
2005-04-08 07:21:07 +00:00
imp
3ddc60e842 Minor style(9) changes
o use prototype definition
o use mse_{isa,cbus}_{probe,attach,detach} in preference to
  mse_{probe,attach,detach}.
2005-04-08 05:22:58 +00:00
alc
795592cb95 Add machine-specific, optimized implementations of bcmp and memcmp.
PR: 73111
Submitted by: Ville-Pertti Keinonen <will@iki.fi> (taken from NetBSD)
MFC after: 3 weeks
2005-04-08 05:15:55 +00:00
peter
507f9dad0f Change the embedded module name from "bluetooth" to "ng_bluetooth" to match
the rest of the names assigned to this object.
2005-04-08 05:13:53 +00:00
alc
5382a820b8 Eliminate unneeded instructions that are a vestige of mechanical
translation from i386.
2005-04-08 05:10:18 +00:00
nyan
7d0c60fb8c Fix pc98 includes. 2005-04-08 03:38:13 +00:00
ups
5057a8f224 Sprinkle some volatile magic and rearrange things a bit to avoid race
conditions in critical_exit now that it no longer blocks interrupts.

Reviewed by:	jhb
2005-04-08 03:37:53 +00:00
nyan
a2a1ac91e0 Don't use 'i386/include' directly. 2005-04-08 03:37:20 +00:00
nyan
4a86aaf26a Remove the wl driver. The devices don't work on pc98. 2005-04-08 03:36:32 +00:00
das
9e535d4519 Add roundl(), lroundl(), and llroundl(). 2005-04-08 01:24:08 +00:00
das
f6ba87d746 These files should include s_lround.c instead of s_lrint.c.
This only matters for efficiency, not for correctness.
2005-04-08 00:52:27 +00:00
das
0e893416ea Fix a (coincidentally harmless) bug. 2005-04-08 00:52:16 +00:00
sobomax
ffccab6cf0 Backout previous diffs - this functionality is already provided by the
hints to the atkbd(4).

Submitted by:   jhb
2005-04-07 23:59:38 +00:00
sobomax
f9a9a318c1 Backout previous diffs - this functionality is already provided by the
hints to the atkbd(4).

PR:
Submitted by:   jhb
2005-04-07 23:59:37 +00:00
cognet
af797f5e45 Treat arm as i386. 2005-04-07 22:09:02 +00:00
cognet
54e3c328b3 Get more love from GEOM on arm. 2005-04-07 22:06:56 +00:00
cognet
e8d51f9d09 Use the new atomic_cmpset_32(). 2005-04-07 22:06:05 +00:00
cognet
e5793c22b5 No need to provide atomic_cmpset_32() anymore. 2005-04-07 22:04:49 +00:00
cognet
e1cd030061 Don't announce the range SDRAM_START-freemempos until I figure out what's
going on, it produces random memory corruption.
2005-04-07 22:04:18 +00:00
cognet
42d91d88c7 pmap_update() is gone. 2005-04-07 22:03:34 +00:00
cognet
36756c5ce0 Import a basic implementation of the restartable atomic sequences to provide
atomic operations to userland (this is OK for UP only, but SMP is still so
far away).
2005-04-07 22:03:04 +00:00
cognet
d50f4f728e - Try harder to report dirty page.
- Garbage-collect pmap_update(), it became quite useless.
2005-04-07 22:01:53 +00:00
rwatson
5989725697 Add rudimentary man pages for kernel options sched_4bsd and sched_ule,
which document some of the sysctls available for configuring 4bsd, some
of the bullet features of ule, and that ule is considered experimental
still.

MFC after:	3 days
2005-04-07 21:57:19 +00:00
scottl
598f32982f Document problems with writing to disks under GEOM. 2005-04-07 20:50:38 +00:00
brooks
6f57dec63d When accessing the sysctl vfs.nfs.iodmax, don't report errors as being
from accessing vfs.nfs.iodmin.
2005-04-07 20:37:04 +00:00
scottl
f8a82a3bbe Document how to make boot0cfg work on mounted disks. 2005-04-07 20:04:55 +00:00
scottl
b1274d12dc Document the GEOM debug flags. 2005-04-07 19:59:28 +00:00
nectar
5ef2c40c86 An array was mistaken for a pointer in the previous commit.
Noticed by:	tinderbox, stefanf
Pointy hat to:	nectar
2005-04-07 19:26:35 +00:00
sobomax
440f43458e Make previous commit actually working by replacing TUNABLE_INT() with
TUNABLE_INT_FETCH(). Apparently keyboard init is performed earlier
in the boot process than fetching all static tunables.

MFC after:	1 day
2005-04-07 18:18:17 +00:00
njl
da451d51ec Revert part of 1.19. We do want to set the count to 0 since otherwise
it would give false info to other parts of the driver.
2005-04-07 17:33:22 +00:00
njl
6cbae40cdc Hook up new man page for devclass_get_drivers() to build
Reminded by:	ru
2005-04-07 17:27:14 +00:00
sobomax
c1f0f3740a Provide a new tunable hw.atkbdc.broken_kit_cmd, which if set to 1
instructs the driver to avoid using Keyboard Interface Test command.
This command causes problems with some non-compliant hardware, resulting
in machine being abruptly powered down early in the boot process.

Particularly it's known that HP ZV5000 and Compaq R3000Z notebooks
are affected by this problem.

Due to popularity of those models this patch is good MFC5.4 candidate.

PR:		67745
Submitted by:	Jung-uk Kim jkim at niksun.com
MFC after:	1 days
2005-04-07 17:15:10 +00:00
pjd
48c7a11a30 Allow classes to specify local source files.
MFC after:	3 weeks
2005-04-07 15:57:38 +00:00
glebius
706e38163b s/foobar/mekmitasdigoat/g
Requested by:	ceri, des
2005-04-07 15:28:14 +00:00
harti
32fe258978 When Parse_Error is called after the top-level Makefile is closed we
have no CURFILE anymore so we cannot print a file name or line number.

When ParseSkipLine() returns NULL (it does this when it has detected an
EOF in an .if block) try to pop the input stack and process the next line
2005-04-07 14:39:38 +00:00
glebius
842b80c69a - Be more informative about advbase and advskew. [1]
- Fix ifconfig commands. Replace 'mekmitasdigoat' with
  'foobar'. While the former is more cool, the latter
  makes example lines shorter.

Wording by:     scottl
MFC after:	3 days
2005-04-07 14:20:34 +00:00
harti
962d0440fe Handle popping of the input stack in ParseReadLine() instead of
Parse_File(). Remove a comment and a piece of code comming from
ancient times when the if-directive read like #if and not .if.
Correctly analyze the first character of a line.
2005-04-07 11:29:39 +00:00
harti
c24ff5be7a Mostly stylistic changes: remove the noPLen field from the Shell
structure - it is just the strlen() of noPrint. Inline JobCondPassSig()
in the only function JobPassSig() using it. Fix the argument types
of JobPrintCommand(). Better parsing for the .SHELL target keywords.
2005-04-07 11:26:15 +00:00
phk
ef6cef8f41 Give msdosfs a unique inode number which is really the byteoffset of
the directory entry.

This solves the corruption problem I belive.

Regression test script by:	silby
2005-04-07 07:55:37 +00:00
phk
00d755d423 Fix bug in vfs_hash_rehash(): use correct bucket. This only affected
msdosfs which is broken in other ways too.
2005-04-07 07:54:08 +00:00
pjd
290ead1331 Empty error buffer is not an error.
MFC after:	3 weeks
2005-04-07 06:46:11 +00:00
davidxu
70cc2b7368 Adjust hash function for smaller pthread structure size. 2005-04-07 06:09:17 +00:00
alc
8a09ae8295 Eliminate an unneeded instruction that is a vestige of mechanical
translation from i386.
2005-04-07 05:46:46 +00:00
peter
4e9e14d84a Fix strict-alias warnings by removing excessive (and wrong) casts. 2005-04-07 04:33:15 +00:00
alc
2a04601bdc Add machine-specific, optimized implementations of bcopy, bzero, memcpy,
memmove, and memset.

PR: 73111
Submitted by: Ville-Pertti Keinonen <will@iki.fi> (taken from NetBSD)
MFC after: 3 weeks
2005-04-07 03:56:03 +00:00
delphij
6edea251cf MFen 1.843
Obtained from:	The FreeBSD Simplified Chinese Project CVS
2005-04-07 02:59:18 +00:00
emax
e4aec3f70f Correct typo that could cause FIFO overflow.
PR:		kern/78431
MFC after:	3 days
2005-04-06 22:09:32 +00:00
emax
83b8034a84 Remove PR_ATOMIC flag in ng_btsocket_protosw[] for BLUETOOTH_PROTO_RFCOMM
protocol. RFCOMM is a SOCK_STREAM protocol not SOCK_SEQPACKET. This was a
serious bug caused by cut-and-paste. I'm surprised it did not bite me before.
Dunce hat goes to me.

MFC after:	3 days
2005-04-06 20:54:05 +00:00