Commit Graph

178585 Commits

Author SHA1 Message Date
joerg f623bd13d6 Fix markup 2009-03-11 13:51:47 +00:00
joerg 10354fe284 Fix preamble 2009-03-11 13:50:39 +00:00
joerg e5073964e7 Fix markup 2009-03-11 13:49:54 +00:00
yamt 0bbefb72ab fix breakage where db_regs_t != trapframe.
the problem pointed out by Martin Husemann on tech-kern@.
2009-03-11 13:48:47 +00:00
joerg edbcd7c8fd Fix preamble 2009-03-11 13:39:33 +00:00
joerg d23280d626 Fix markup 2009-03-11 13:36:55 +00:00
joerg 0e5f0af7e9 Fix preamble 2009-03-11 13:35:21 +00:00
nakayama 3a99fdb328 Avoid "warning: cast from pointer to integer of different size"
on 32-bit sparc64 kernels.
2009-03-11 13:29:44 +00:00
msaitoh b9c2a5054c Read MAC address register before reset (to get IPL(e.g. redboot)'s setting). 2009-03-11 13:20:30 +00:00
tsutsui b057550bcf u_intNN_t -> uintNN_t 2009-03-11 13:12:41 +00:00
joerg aee82d7c52 Fix preamble 2009-03-11 13:06:10 +00:00
joerg a62737a7d9 Remove redundant .br 2009-03-11 13:05:59 +00:00
joerg c173c17186 Fix markup 2009-03-11 13:05:46 +00:00
nonaka 16877da791 check pmap_enter() return value. 2009-03-11 13:05:05 +00:00
joerg 25e7748736 Fix preamble 2009-03-11 13:01:49 +00:00
joerg e8103a8e17 Fix markup 2009-03-11 13:00:37 +00:00
joerg ec28f83cbc Give the full prototype for all ctype functions/macros.
Remove redundant .br.
2009-03-11 12:57:03 +00:00
joerg d8c2d82715 Remove redundant tabs 2009-03-11 12:44:19 +00:00
joerg 0739fbbbf2 Don't workaround macro argument limit in ancient troff. 2009-03-11 12:43:58 +00:00
msaitoh 816cf5b87a Bug fixes phase 3 (and one enhancement).
- fix if_init(), if_stop(), if_start() and ifioctl().
   Some of these bugfixes are required to use multicast filter's fix(rev. 1.11)

 - Prevent linkdown when only the promisc flag changed.
2009-03-11 12:16:12 +00:00
msaitoh a69b43fe31 Change TX threshold from 0x08 to 0x18. This value is the same as CSR 2.4.
Use macro.
2009-03-11 11:36:33 +00:00
cegger c920c4baa3 use paddr_t for physical addresses. u_long may not be large enough. 2009-03-11 10:30:52 +00:00
roy ab72df6eb5 Revert r1.119 as the implementation is broken. 2009-03-11 09:26:27 +00:00
nonaka 2dfa5fff78 collect same processing. 2009-03-11 09:10:39 +00:00
nonaka 04bd9a8218 fix typo. 2009-03-11 09:04:50 +00:00
nonaka a17a94caeb Reports the residual quantity of the battery in detail. 2009-03-11 09:04:31 +00:00
nonaka 15d23a2f88 Added kloader support. 2009-03-11 09:02:04 +00:00
wiz 58a4d459ff Do not mark up "and". Bump date for previous. 2009-03-11 08:29:56 +00:00
mrg 932fbc87d9 use SIMPLEQ_FOREACH_SAFE(), to avoid a use-after-free.
picked up by coverity.
2009-03-11 06:53:25 +00:00
mrg d31da7cb16 add a SIMPLEQ_FOREACH_SAFE() macro.
document it, and the TAILQ versions.
2009-03-11 06:51:53 +00:00
mrg 9ba87b8cc3 completely rework the way that orphaned sockets that are being fdpassed
via SCM_RIGHTS messages are dealt with:

1. unp_gc: make this a kthread.

2. unp_detach: go not call unp_gc directly. instead, wake up unp_gc kthread.

3. unp_scan: do not close files here. instead, put them on a global list
   for unp_gc to close, along with a per-file "deferred close count". if
   file is already enqueued for close, just increment deferred close count.
   this eliminates the recursive calls.

3. unp_gc: scan files on global deferred close list. close each file N
   times, as specified by deferred close count in file. continue processing
   list until it becomes empty (closing may cause additional files to be
   queued for close).

4. unp_gc: add additional bit to mark files we are scanning. set during
   initial scan of global file list that currently clears FMARK/FDEFER.
   during later scans, never examine / garbage collect descriptors that
   we have not marked during the earlier scan. do not proceed with this
   initial scan until all deferred closes have been processed. be careful
   with locking to ensure no races are introduced between deferred close
   and file scan.

5. unp_gc: use dummy file_t to mark position in list when scanning. allow
   us to drop filelist_lock. in turn allows us to eliminate kmem_alloc()
   and safely close files, etc.

6. prohibit transfer of descriptors within SCM_RIGHTS messages if
   (num_files_in_transit > maxfiles / unp_rights_ratio)

7. fd_allocfile: ensure recycled filse don't get scanned.


this is 97% work done by andrew doran, with a couple of minor bug fixes
and a lot of testing by yours truly.
2009-03-11 06:05:29 +00:00
mrg 01a13dba2c convert getfiles() to use KERN_FILE2 sysctl.
now it can survive "struct file" changing, as is upcoming.
2009-03-11 06:00:11 +00:00
mrg ce98775552 like KERN_FILE2: *do* update "needed" when there is no count. we want
userland to know what sort of size to provide..

while here, slightly normalise the previous to init_sysctl.c.
2009-03-11 05:55:22 +00:00
yamt aa75a65af2 add a missing _KERNEL_OPT ifdef. 2009-03-11 04:16:43 +00:00
yamt 2f719ad315 wrap opt_* includes with _KERNEL_OPT.
(i forgot to commit this with the tprof modules yesterday.)
2009-03-11 03:34:43 +00:00
mrg 47fb2b7401 always calculate "needed" for KERN_FILE2 calls. this allows a caller
to get an estimate of the needed space, like the intention is.
2009-03-11 01:30:27 +00:00
christos df68463076 fix warnings. 2009-03-11 01:10:05 +00:00
christos ba6a866c95 semi-colon before charset. From Anon Ymous 2009-03-11 01:08:23 +00:00
martin 66170437ce Work in progress from a colaborative effort of mrg and me (all bugs are
mine) - not quite working, but improves the situation for non-MULTIPROCESSOR
kernels (makes LOCKDEBUG kernels work) and does not make SMP kernels worse:

Rearange cpu_info access and hide the actual implementation of the mapping
from all parts of the code that do not directly deal with it. Do the
mapping early in pmap_bootstrap, so that post-vmlocking2 kernels have
a chance to work.

The actual mapping of the cpus array for SMP kernels has to be fixed still,
but both mrg and me ran out of time and this lay around in our trees far
too long.
2009-03-10 23:58:20 +00:00
joerg 86a5a95669 Remove redundant .br. 2009-03-10 23:49:07 +00:00
joerg 10d66a712f Remove use of .Xo/.Xc to workaround ancient macro argument limit. 2009-03-10 23:42:45 +00:00
joerg edc0d6c151 Fix prologue. 2009-03-10 23:37:01 +00:00
joerg fa91a1ac51 Use .An for author list. 2009-03-10 23:36:10 +00:00
joerg 4213d1261a Remove use of .Xo/.Xc to workaround ancient macro argument limit. 2009-03-10 23:32:26 +00:00
joerg a7d7c3857f Remove redundant .IP. Remove use of .Xo/Xc to workaround ancient macro
argument limit.
2009-03-10 23:25:32 +00:00
joerg bfe775a869 Remove redundant .Pp 2009-03-10 23:14:40 +00:00
wiz 097d2fd1a6 -1 is not a defined value, it is just a value.
On the other hand, minuses need backslashes, otherwise they become hyphens.
2009-03-10 22:55:14 +00:00
plunky 32813437a3 repair the SIOCSIFPHYADDR ioctl handler to be compatible with previous
versions which used a "struct sockaddr"
2009-03-10 22:14:57 +00:00
plunky 7a71a8c7db use the generic SIOCALIFADDR to add an active link layer address
instead of the (soon to be) deprecated SIOCSIFPHYADDR
2009-03-10 22:12:17 +00:00
roy 9fa1d120a0 el_gets now sets el_len to -1 on error so we can distinguish
between a NULL string and an error.
This fixes sh from exiting with libedit now allowing EINTR to return.
We may need to expand this to an errno check in the future.
2009-03-10 21:21:11 +00:00