Commit Graph

178570 Commits

Author SHA1 Message Date
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
joerg 70588139b2 Explicitly escape : in .It. 2009-03-10 21:18:35 +00:00
joerg 552c38146a Specify width for tag list 2009-03-10 21:12:23 +00:00
joerg e85762f4cf Specify width for tag list 2009-03-10 21:00:47 +00:00
joerg ed0b365527 Use .An for the author instead of more physical .Bl. 2009-03-10 20:59:49 +00:00
christos ae87843e53 make el_gets set the count to -1 on error to distinguish between EOF and
error.
2009-03-10 20:46:15 +00:00
joerg 1cc1109801 Specify width for tag list. 2009-03-10 20:23:47 +00:00
bouyer f5f016d356 More i386PAE fixes:
- x86_round_page, x86_trunc_page, x86_btop and x86_ptob macros are used with
  physical addresses; cast to paddr_t instead of u_long. Issue pointed out
  by jym@
- machine_to_phys_mapping[] is a long. This is fine as it holds page
  frame numbers (and this fits in a 32bit int as physical addresses are
  only 36bits), but cast to paddr_t before << PAGE_SHIFT
- xen_start_info.store_mfn is a long; cast it to paddr_t before << PAGE_SHIFT.
  should fix issue pointed out by cegger@
2009-03-10 20:05:30 +00:00
joerg aea22a43d4 Specify width for tag list. 2009-03-10 19:54:43 +00:00
joerg 4154d53ea2 Use item list instead of tag list 2009-03-10 19:36:33 +00:00
joerg 442e8df612 Use item list as no tag is present. Fix markup for item. 2009-03-10 19:34:18 +00:00
bouyer f6fc3b0ebe physical addresses may not fit in u_long, use paddr_t 2009-03-10 18:56:18 +00:00
bouyer 5d84b92a6d When ioapic is used, for ISA interrupts, reuse the legacy ISA interrupt
number instead of allocating a new one. Force allocating a new interrupt number
for PCI devices, as the number stored in the PCI interrupt register
may be wrong.
This should help using a pciide controller in compat mode or ISA devices
in a non-0 domain.
2009-03-10 17:21:57 +00:00
bouyer e50e3a5ff8 Make sure xenkernfs_init() is called for XEN2 too. 2009-03-10 17:17:30 +00:00
msaitoh 3589a8fdf0 some bug fixes
- Set the flag to use multicast filter...
   Without this flag and with a shared hub, the MAC gets ALL packets and the
   packets will be forwarded if the forwarding is enabled. It results in DUP!

 - Workaround for "Non-Intel XScale Technology Eratta" No. 29.
   AA:BB:CC:DD:EE:xF's packet (the 2nd nibble from LSB is the same as the
   MAC's one) had matched the filter (both unicast and multicast).

 - Check if too {short,long} frame.

 - Add the MD hook to get MAC address
2009-03-10 17:09:48 +00:00
mrg 0f95b6d897 fix build libX11 1.2. 2009-03-10 16:36:07 +00:00