Commit Graph

87955 Commits

Author SHA1 Message Date
isaki
38bf980ecb Use do { } while (0) to macro. 2007-05-19 14:25:26 +00:00
isaki
2440803ee4 Adapt to the merge of yamt-idlelwp branch.
tested on my X68030.
2007-05-19 14:19:39 +00:00
he
57451082bc Adapt to the merge of the yamt-idlelwp branch.
curcpu()->ci_want_resched is now required, so get rid of the
want_resched global.  Also, cpu_need_resched() now takes two arguments.
The l_next and l_back fields in struct lwp no longer exists, so delete
references to it from genassym.cf.
Also, m68k/m68k/proc_subr.s is no longer used, says mhitch, so remove its use.

This brings the atari BOOT kernel back to a buildable state.
2007-05-18 22:58:51 +00:00
riz
72c8d580f7 Add 'options TCP_SIGNATURE' to hopefully keep this code from
invisibly breaking periodically, as it's done a couple times.
2007-05-18 22:38:51 +00:00
pavel
224217a90e from FreeBSD's src/sys/dev/bge/if_bgereg.h rev 1.22:
Fix a typo. BGE_HCC_TX_MAX_COAL_BDS_INT is at offset 0x3C24, not 0x3C34
Noticed by Patrick Welche on tech-kern@, ok cube.
2007-05-18 22:30:24 +00:00
riz
711b142f07 Fix compilation in the TCP_SIGNATURE case:
- don't use void * for pointer arithmetic
	- don't try to modify const parameters

A kernel with 'options TCP_SIGNATURE' works as well as it ever did, now.
(ie, clunky, but passable)
2007-05-18 21:48:43 +00:00
riz
89c9ca415d Revert a small part of revision 1.254 - remove const qualifier from
the struct tcphdr * argument of tcp_dooptions().  RFC2385 support
(options TCP_SIGNATURE) needs to modify the header during options
processing, and this revision broke it.

OK yamt@.
2007-05-18 21:31:16 +00:00
mhitch
da59486c27 Fix alpha build after idlelwp merge. I don't know why machine/cpu.h was
added here, but it does not seem to be needed now, and was resulting in a
circular dependency when sys/sched.h was changed in the yamt-idlelpw branch.
2007-05-18 19:58:06 +00:00
pooka
e99cb62bcc Introduce noref setbacks, which the file server can use to signal
the kernel it has 0 references to the node in question.  In other
words, this can be used to avoid inactive(), or, if the file server
does not implement inactive, prompt reclaim for removed nodes.
2007-05-18 15:46:09 +00:00
pooka
93dd832918 selrecord() before calling userspace to avoid (very theoretical) race
where selinfo contains uninitialized garbage
2007-05-18 14:25:30 +00:00
joerg
1044d56390 If the interrupt status register reads as 0xffff in rtk_intr, assume
that the card is gone and abort the loop. This fixes hot-plugging of
cardbus cards.

From FreeBSD's rl(4).
2007-05-18 14:10:37 +00:00
joerg
a6f33abf23 Make rtk_list_tx_init return void. The return value was constant and
never used.
2007-05-18 14:08:57 +00:00
pooka
9d9f624f97 Support VOP_POLL. This requires some acrobatics on the puffs_node,
as we give a reference to userspace for the puffs_node for the
duration of the poll call.  So reference count puffs_node separately
from the parent vnode.  vref()/vrele() is not possible due to a possible
surprise visit from VOP_INACTIVE.
2007-05-18 13:53:08 +00:00
skrll
a56f764868 Minor KNF and make some output a bit easier to read. 2007-05-18 13:32:18 +00:00
skrll
0aab2380d9 Use the CALL macro. No functional change. 2007-05-18 13:29:37 +00:00
skrll
e73c12d2eb de-__P() 2007-05-18 12:54:46 +00:00
skrll
b7d1ae48e0 Shave an instruction by using a delay slot. 2007-05-18 12:43:41 +00:00
skrll
2efe58ec6b Some minor nits, no functional change:
- s/64/HPPA_FRAME_SIZE/
	- cpu_die is more a leaf than anything else
	- whitespace
2007-05-18 12:42:24 +00:00
rjs
d42d58ab33 Fix for yamt-idlelwp merge. 2007-05-18 11:16:27 +00:00
tsutsui
570ffc1b5b Update comments to sync yamt-km merge (Sysmap has been moved).
See also:
http://mail-index.netbsd.org/source-changes/2005/02/23/0004.html
2007-05-18 10:45:58 +00:00
tsutsui
f9527bedb6 Remove an obsolete file. (superseded by MI mk48txx(4)) 2007-05-18 10:29:25 +00:00
tsutsui
bd2911249c Adapt sun68k ports to yamt-idlelwp.
Tested on TME (sun2 and sun3) and 3/80 (sun3x).
2007-05-18 10:18:24 +00:00
tsutsui
ed39f92a7f Adapt hp300 to yamt-idlelwp. Tested on 9000/382. 2007-05-18 10:15:08 +00:00
tsutsui
bbf9e3d14a Adapt news68k to yamt-idlelwp. Tested on NWS-1750. 2007-05-18 10:13:25 +00:00
skrll
843d692d5a pmap_activate shouldn't play with the trap frame - especially not now it's
called by the MI code.

Implement a way of tracking the vmspace allocated to a process and its
LWPs so that if it changes underneath us we can correct the space id in
the trapframe in pmap_activate for now.

An example of when this happens is vfork/exec.

An exec hook is probably the way to go.
2007-05-18 09:10:50 +00:00
skrll
fbf7d918bc Whitespace and wrao a long line. 2007-05-18 08:49:36 +00:00
mhitch
38ee607428 Fix a couple of problems when starting the idle lwp on secondary
cpus:  Set curlwp, and allow interrupts before entering idle loop
(otherwise, IPI interrupts won't be handled on an idle cpu).
2007-05-18 02:48:06 +00:00
mhitch
bf0f43741a Fix alpha MP for idlelwp: ci_idle_lwp was added to cpu_info
structure, but never initialized.  There's already a cpu_idlelwp
in ci_data, which appears to be the same thing, so use that instead.
2007-05-18 02:45:18 +00:00
uwe
1d63bcac56 Implement fast path TLB miss handling. Walk the page table without
creating a trapframe, with exceptions disabled and using only BANK1
registers.  If a valid pte is found, load it and return.  Otherwise
create a trapframe and proceed to the full-blown C handler.
2007-05-18 02:31:06 +00:00
mhitch
36e70d8e10 Common m68k changes for idlelwp. 2007-05-18 01:46:39 +00:00
mhitch
795d4ea06e Amiga changes for idlelwp. 2007-05-18 01:39:52 +00:00
rjs
66b9a823ea Start yamt-idlelwp fixes. 2007-05-17 22:15:22 +00:00
uwe
b348c690b7 Print pc/pr when faulting in ddb, it comes in handy. 2007-05-17 22:12:08 +00:00
christos
885ed2ab13 return POLLERR instead of ENXIO since we are expecting an revents mask not
an errno.
2007-05-17 18:01:57 +00:00
christos
1425884c9e Coverity CID 3157: remove bogus break. 2007-05-17 17:04:12 +00:00
yamt
6ba36ace69 bump to 4.99.20. yamt-idlelwp merge. 2007-05-17 14:53:33 +00:00
yamt
f03010953f merge yamt-idlelwp branch. asked by core@. some ports still needs work.
from doc/BRANCHES:

	idle lwp, and some changes depending on it.

	1. separate context switching and thread scheduling.
	   (cf. gmcgarry_ctxsw)
	2. implement idle lwp.
	3. clean up related MD/MI interfaces.
	4. make scheduler(s) modular.
2007-05-17 14:51:11 +00:00
pooka
339652951e Make it possible for the file server to specify the root vnode type
and other information instead of always using VDIR.  To make this
possible without races, require all root node information already
in puffs_mount() and nuke puffs_start2() and the associated start
operation completely.

requested/inspired by Tobias Nygren
2007-05-17 13:59:22 +00:00
yamt
1edd331e30 mark lwp_exit() and exit1() __noreturn__. 2007-05-17 12:05:03 +00:00
hannken
d34d506c7f Remove an assertion that causes non-diagnostic kernels to fail. 2007-05-17 12:00:31 +00:00
yamt
c8a34d8e58 remove net.inet6.ip6.rht0 sysctl.
it's too dangerous compared to its benefit.

strongly requested by itojun@.  ok'ed by core@.
2007-05-17 11:48:42 +00:00
fvdl
961ad7addf Fix broken constraint in asm. 2007-05-17 10:42:42 +00:00
hannken
64b7e5637e Fstrans_start() always returns zero, so change its type to void. 2007-05-17 07:26:21 +00:00
hubertf
ae218465f7 Add GENERIC.NOACPI kernel that offers - surprise! - no ACPI
(in contrast to GENERIC).
2007-05-17 01:50:48 +00:00
dyoung
1db31a59af Fix the memory leak reported in kern/36337. Thanks Matthias Scheler
for the heads-up.  My fix is based on the following patches from
FreeBSD, however, I extracted the code into a subroutine,
nd6_llinfo_release_pkts():

http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/netinet6/nd6.c.diff?r1=1.48.2.18;r2=1.48.2.19
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/netinet6/nd6_nbr.c.diff?r1=1.29.2.8;r2=1.29.2.9
2007-05-17 00:53:26 +00:00
christos
50ab9d6934 - since mknod now can create regular files, make sure veriexec allows it.
Done in a way to minimize ifdefs. Per discussions with elad.
2007-05-17 00:46:30 +00:00
perseant
9234ba6fd8 Change references to SEGM_W_DIROPS to SEGM_CKP, and replace the logic that
formerly used SEGM_W_DIROPS in lfs_segwrite() appropriately.  This prevents
a problem in which processes could get stuck in "buffers" sleep forever.
2007-05-16 19:11:37 +00:00
mrg
2f67db7ec7 regenerate 2007-05-16 19:08:52 +00:00
mrg
1f3063a78a add Nvidia MPC04 SMBus 2007-05-16 19:07:42 +00:00
plunky
539d75b79d use the sizeof the header, not the pointer to the header
(this fixes a problem with architectures where a pointer is not 4 octets)
2007-05-16 18:34:49 +00:00
hannken
0453160a52 Use rwlock for fmi_shared_lock and fmi_lazy_lock.
Ok: Andrew Doran <ad@netbsd.org>
2007-05-16 16:11:56 +00:00
martin
6718c86598 Merge IP-Filter 4.1.22 2007-05-15 22:52:20 +00:00
elad
6700cfccd6 Some Veriexec stuff that's been rotting in my tree for months.
Bug fixes:
  - Fix crash reported by Scott Ellis on current-users@.

  - Fix race conditions in enforcing the Veriexec rename and remove
    policies. These are NOT security issues.

  - Fix memory leak in rename handling when overwriting a monitored
    file.

  - Fix table deletion logic.

  - Don't prevent query requests if not in learning mode.


KPI updates:
  - fileassoc_table_run() now takes a cookie to pass to the callback.

  - veriexec_table_add() was removed, it is now done internally. As a
    result, there's no longer a need for VERIEXEC_TABLESIZE.

  - veriexec_report() was removed, it is now internal.

  - Perform sanity checks on the entry type, and enforce default type
    in veriexec_file_add() rather than in veriexecctl.

  - Add veriexec_flush(), used to delete all Veriexec tables, and
    veriexec_dump(), used to fill an array with all Veriexec entries.


New features:
  - Add a '-k' flag to veriexecctl, to keep the filenames in the kernel
    database. This allows Veriexec to produce slightly more accurate
    logs under certain circumstances. In the future, this can be either
    replaced by vnode->pathname translation, or combined with it.

  - Add a VERIEXEC_DUMP ioctl, to dump the entire Veriexec database.
    This can be used to recover a database if the file was lost.
    Example usage:

        # veriexecctl dump > /etc/signatures

    Note that only entries with the filename kept (that is, were loaded
    with the '-k' flag) will be dumped.

    Idea from Brett Lymn.

  - Add a VERIEXEC_FLUSH ioctl, to delete all Veriexec entries. Sample
    usage:

        # veriexecctl flush

  - Add a 'veriexec_flags' rc(8) variable, and make its default have
    the '-k' flag. On systems using the default signatures file
    (generaetd from running 'veriexecgen' with no arguments), this will
    use additional 32kb of kernel memory on average.

  - Add a '-e' flag to veriexecctl, to evaluate the fingerprint during
    load. This is done automatically for files marked as 'untrusted'.


Misc. stuff:
  - The code for veriexecctl was massively simplified as a result of
    eliminating the need for VERIEXEC_TABLESIZE, and now uses a single
    pass of the signatures file, making the loading somewhat faster.

  - Lots of minor fixes found using the (still under development)
    Veriexec regression testsuite.

  - Some of the messages Veriexec prints were improved.

  - Various documentation fixes.


All relevant man-pages were updated to reflect the above changes.

Binary compatibility with existing veriexecctl binaries is maintained.
2007-05-15 19:47:43 +00:00
skrll
ad81397a3c Pull across #include file fix from yamt-idlelwp. 2007-05-15 18:00:34 +00:00
bouyer
95b42c31ad add jmide(4), a driver for the JMicron Technology JMB36x PCIe to SATA II/PATA
controllers. These controllers can be found on add-on PCIe cards, or
on some motherboards to provide the PATA connectivity (e.g. some intel
ICH8-based motherboards).

Thanks to JMicron Technology for providing me documentation and
different sample boards for this work.
2007-05-15 17:53:41 +00:00
tnn
4407197569 Add missing underscore to wchan name. 2007-05-15 14:35:29 +00:00
xtraeme
efc6c2a0b8 cosmetic: use a single line for the global vars of same type. 2007-05-15 14:29:36 +00:00
xtraeme
6de650008c Add agr(4). 2007-05-15 14:27:47 +00:00
pooka
d79dbd3583 In case strategy memory allocation for B_ASYNC|B_READ fails,
make sure to release the buf.
2007-05-15 12:48:48 +00:00
fvdl
cfcd9426ff Initialize a few PCB fields explicity in more places. 2007-05-13 20:48:23 +00:00
dsl
2e12e4f4e1 Fallout from caddr_t deletion - remove a load of redundant (void *) casts. 2007-05-13 20:24:21 +00:00
dsl
9bdbb03424 nanosleep1() shouldn't try to get the current time into a NULL address. 2007-05-13 19:51:35 +00:00
mhitch
f524750b52 Fix warnings with DEBUG enabled. 2007-05-13 19:24:20 +00:00
dsl
a163d15464 This is deja vu - I fixed this earlier....
No need to use stackgap for ioctl to get PTM name, directly call file's
ioctl function with kernel buffer.
2007-05-13 16:04:00 +00:00
dsl
10b01b226a There is no need to copy data out to userspace when its address is being
passed to the driver as the ioctl 'data' argument.
Change boths parts to expect a kernel memory buffer.
2007-05-13 15:57:39 +00:00
dsl
06b3498b98 Fix compilation 2007-05-13 15:56:17 +00:00
dsl
dc41e5b5bd Change the way the irix 32bit signal mask request is done to avoid the
stackgap.  I'm actually susre this code is buggy, possibly slightly less
so than before.
2007-05-13 15:39:29 +00:00
dsl
959f589c73 This code is already set for directly calling a files ioctl fn with a
kernel buffer - so why not use it when getting the slave pty number.
2007-05-13 15:38:14 +00:00
dsl
9e2165cbd3 Time functions have had wrappers for ~ages, no need for the stackgap gere. 2007-05-13 14:47:54 +00:00
dsl
f23edc42dd Instead of the #define versions of tc_getfrequency() and nanouptime(), use
the function ones in kern_kern_clock.c (adding tc_getfrequency).
Adjust includes so this builds.
2007-05-13 14:43:52 +00:00
he
eaf1c9f7c3 Bump SYMTAB_SPACE so that it fits again. 2007-05-13 14:18:57 +00:00
yamt
4d3b7e04c8 use a cached value of v_size. no functional changes. 2007-05-13 13:11:53 +00:00
dsl
b8cecbd5b3 Delete fom stackgap lines that seem to have got left in. 2007-05-13 11:06:41 +00:00
dsl
2cc0d0a9c4 Stop using the stackgap for time functions. 2007-05-13 11:04:11 +00:00
dsl
9a585a457d Stop using the stackgap for timer functions, fcntl locks and FIONREAD ioctl.
Add code for X_LK_RLCK - seemed to be absent!
2007-05-13 11:03:06 +00:00
dsl
88e6c5604d Add a #define for nanouptime() in the !__HAVE_TIMECOUNTERS case. 2007-05-13 10:58:50 +00:00
dsl
1c85a3efd8 Split sys_nanosleep(). 2007-05-13 10:34:25 +00:00
dsl
d4540f5b2a Call sigaltstack1() directly instead of using the stackgap to call
sys___sigaltstack14().
Prototype up some code under #if 0 to use sigaction1().
2007-05-13 09:07:25 +00:00
dsl
0a4e8a3014 Remove the stackgap from some more flockking code.
Note that I've removed the bug where this code 'forgot' to use copyin/out
for the stackgap buffers.
2007-05-13 08:38:34 +00:00
he
555e8fd330 Bump SYMTAB_SPACE so that it fits again. 2007-05-13 08:26:21 +00:00
dsl
e3b7b0151e Rework the svr4_32 fcntl support (again).
Make the same changes to the svr4 code.
Add some 'missing' simple_unlock(&fp->f_slock) to the svr4_32 version of this
code. These files now compare if feed the svr4_32 copy though:
	sed -e 's/4_32/4/g;s/_P32//g'
Note in passing that the code paths that call simple_unlock(&fp->f_slock)
are completely broken.
2007-05-13 08:14:06 +00:00
kent
f5cb63973e Add PCI_SUBCLASS_MULTIMEDIA_HDAUDIO to pcireg.h
and azalia(4) uses it
2007-05-13 03:30:46 +00:00
kent
c3b41473a8 * stac9221_gpio_unmute()
The target node should be the audio function group, not 0.
  Pointed out by Deanna Phillips

* stac9221_mixer_init()
  Enable GPIO unmute for Intel Macintosh
2007-05-13 03:28:19 +00:00
dsl
701496b5c6 Split the fcntl locking code out from its copyin/out.
Use to avoid all the stackgap stuff in compat code.
2007-05-12 23:02:49 +00:00
uwe
374def6c7e Sync with GENERIC 1.197 2007-05-12 22:44:45 +00:00
dsl
8beba9d093 There is no need to use the stackgap for get/setrlimit. 2007-05-12 21:07:02 +00:00
christos
058554bbc4 amd64 kern.ldscript can handle notes now 2007-05-12 21:00:00 +00:00
christos
cb03f90c19 convert to a very simple kern.ldscript 2007-05-12 20:59:19 +00:00
dsl
ef3fdc4a07 Change interface to settimeofday1() so that it can also be used from
compat code in order to avoid the stackgap.
2007-05-12 20:27:13 +00:00
dsl
dd490a6f18 Get rusage directly, not via 64bit linux call and stackgap. 2007-05-12 20:24:54 +00:00
dsl
a08b772cae Fix comment and indent. 2007-05-12 20:23:36 +00:00
dsl
c0ac33ed01 Remember to call calcru() before using the rusage values. 2007-05-12 18:10:20 +00:00
mhitch
2aacb7ab4a Changes to enable support of 8K pagesize. 2007-05-12 17:43:53 +00:00
dsl
c83f8a10ad Change the compat sys_[fl]utime code to not use the stackgap. 2007-05-12 17:28:19 +00:00
mhitch
1f433a38eb Final changes to amiga kernel address space layout to match almost all the
other m68k ports (initially from the yamt-km branch a long time ago).

- move Sysmap to the end of address space.
- move Amiga hardware mapping to immediately after Sysptmap.
- tweak virtual_avail/end accordingly.

A DEBUG kernel should now boot without panicing.  Also, kernel address space
layout is now compatible with m68k/m68k/pmap_motorola.c.
2007-05-12 16:51:42 +00:00
abs
201c1005be sync with sys/arch/i386/conf, enable some USB devices 2007-05-12 15:11:16 +00:00
gavan
29031392e2 Now that we have extended PCI address space, we no longer have to avoid
configuring the graphics card.
2007-05-12 15:03:08 +00:00
gavan
392aeaadec Implement ATU Direct Window in order to increase available PCI address
space.
2007-05-12 14:34:03 +00:00
dsl
76bef02b3a Remove some more uses of the 'stackgap' - the code is a lot simpler if
we just access stuff like l->l_proc->p_stats->p_ru instead of copying it
to and from userspace.
2007-05-12 14:09:34 +00:00
bouyer
920d7a6afe Split the ahcisata driver in pci front-end and bus-independant back-end. 2007-05-12 11:04:58 +00:00
dsl
a9a3224a5e Remove compat_util.o from these loadable modules. It will be in the kernel.
Should fix PR kern/36287
2007-05-12 10:45:01 +00:00
jld
51e5b25976 Convert the xen port to use timecounters; ok'ed by bouyer@. 2007-05-12 07:06:54 +00:00
isaki
23df019b96 Clean up white spaces and tabs. 2007-05-12 06:31:18 +00:00
isaki
9b78dfb5bb Remove a local block for readability. 2007-05-12 06:28:41 +00:00
isaki
5b51f6777d Remove an unnecessary semicolon. 2007-05-12 06:17:38 +00:00
dyoung
c7cb104b6b KNF. Use sockaddr_in_init(). Shorten staircases. No functional
changes intended.
2007-05-12 02:10:25 +00:00
dyoung
9552c98d25 Use sockaddr_in_init(). 2007-05-12 02:03:15 +00:00
christos
67695a4835 Make us standards compliant again. Return EINVAL in all cases (except for
mmap) so we cannot tell what went wrong.
2007-05-11 21:30:23 +00:00
christos
5e0b06ff45 Improve on previous and write a RANGE_TEST macro and do it on all the
system calls instead of doing a half-assed job on some of them and none
on others.
2007-05-11 20:41:14 +00:00
christos
c5a89b37a0 fix bogus wrap tests; ssize_t != int... 2007-05-11 20:05:50 +00:00
jnemeth
50c13cb87a Fixed formatting. Problem was that we were trying to get the result
of a data transfer operation immediately after the data transfer
was finished, instead of waiting for the chip to interrupt us and
tell us that it was finished and had the result for us.  This worked
okay for read and write since the operation would be finished very
shortly after the data transfer completed.  However, with formatting,
the chip still had most of the rest of the track to do, so we ended
up timing out before the operation was finished.  This fix is from
sparc64/dev/fdc.c and was tested on sparc by tnn@.
2007-05-11 18:12:16 +00:00
jnemeth
9d8e6e5668 revert last; committed wrong file 2007-05-11 18:10:57 +00:00
jnemeth
4cbad60727 Fixed formatting. Problem was that we were trying to get the result
of a data transfer operation immediately after the data transfer
was finished, instead of waiting for the chip to interrupt us and
tell us that it was finished and had the result for us.  This worked
okay for read and write since the operation would be finished very
shortly after the data transfer completed.  However, with formatting,
the chip still had most of the rest of the track to do, so we ended
up timing out before the operation was finished.  This fix is from
sparc64/dev/fdc.c and was tested on sparc by tnn@.
2007-05-11 17:48:16 +00:00
fvdl
3f7e9a7e0d Don't save/restore %fs and %gs in trapframe. The kernel won't touch them.
Instead, save/restore them on context switch. For 32bit processes, save/restore
the selector values only, for 64bit processes, save/restore the appropriate
MSRs. Iff the defaults have been changed.
2007-05-11 14:01:46 +00:00
is
a1569485fe SigmaTels not-quite-UIRDA devices: STIr4116, STIr4220 2007-05-11 13:12:14 +00:00
tsutsui
b01d9ed02f uvm.page_idle_zero now is a bool, not a 32bit value any more.
Pointed out by Matthew Orgass in PR port-hpcmips/36249.
2007-05-11 12:56:01 +00:00
tsutsui
31c6ef6761 Add temporary workaround for PR kern/36019 (panic on sun2 and sun3).
Ok'ed by yamt.
2007-05-11 12:11:09 +00:00
rumble
0732a5ddbc IP12's PROM passes us a '-a' flag in argv when booting directly from the
disk volume header. On NetBSD this means RB_ASKNAME, however in SGI terms
it appears to mean 'autoboot'.

Add an appropriate kludge to keep us from doing the wrong thing.

XXX - This whole argv/env/prom parameter mess needs to be cleaned up.
2007-05-11 02:30:00 +00:00
rumble
18ae6034fe Make this compile again (untested). 2007-05-11 02:25:34 +00:00
rumble
7a969b00a1 Update a prototype corresponding to rev. 1.36 of sgimips/autoconf.c. 2007-05-11 01:40:18 +00:00
dyoung
f7748bc6aa pfctl: extend pf.conf(5) syntax. Let the operator supply an optional
"state lock" flag (if-bound, gr-bound, floating) at the end of a
NAT rule.  The new syntax is backwards-compatbile with the old
syntax.

PF (kernel): change the macro BOUND_IFACE() to the inline function
bound_iface(), and add a new argument, the applicable NAT rule.
Use both the flags on the applicable filter rule and on the applicable
NAT rule to decide whether or not to bind a state to the interface
or the group where it is created.
2007-05-10 22:30:54 +00:00
christos
48f401a8e0 - linux uname -m on x86 returns i{3,4,5,6}86 make it so.
- delete the machine sysctl that never worked, and gc linux_machine.
2007-05-10 21:30:14 +00:00
rumble
7ab6f41450 A few changes to allow booting to multi-user with IP12 kernels squished
into oversized volume headers:

Query ARCBIOS for OSLoadFilename and OSLoadOptions first, rather than only
using the environment variables passed since we want to go through arcemu.

Add an ugly hack to arcemu that munges the nvram 'bootfile' variable. We
need this because bootfile will point to the volume header, which then
translates into a bogus root device of 'sd0i', or similar.
2007-05-10 21:24:37 +00:00
rumble
649a7beb38 Sanity check the environment variable first. 2007-05-10 17:45:58 +00:00
rumble
dd214a45b1 Clean up extracting environment variables passed by the prom. No functional
change.
2007-05-10 17:27:05 +00:00
christos
ef061fd462 move the #if 0 down a few lines so linux_machine gets initialized. Pointed
out by Joachim K�nig
2007-05-10 17:12:32 +00:00
tsutsui
25476aa317 Pull a fix for PCIe variants from FreeBSD's if_re.c rev 1.71:
> - With the PCIe devices, it looks issuing a TX command while there's
>   already a transmission in progress doesn't have any effect. In other
>   words, if you send two packets in rapid succession, the second one may
>   end up sitting in the TX DMA ring until another transmit command is
>   issued later in the future. Basically, if re_txeof() sees that there
>   are still descriptors outstanding, it needs to manually resume the
>   TX DMA channel by issuing another TX command to make sure all
>   transmissions are flushed out. (The PCI devices seem to keep the
>   TX channel moving until all descriptors have been consumed. I'm not
>  sure why the PCIe devices behave differently.)
2007-05-10 14:04:47 +00:00
sketch
5f4b89c72b Match recent addition as a STAC9200. 2007-05-10 07:48:16 +00:00
sketch
aeb96b4230 Update previous to match what the author probably meant to do. 2007-05-10 07:34:59 +00:00
kent
d32678c2dd Support for headphone-sensing for DELL Inspiron 6400.
PR#36302 by Aleksej Saushev
2007-05-10 05:44:37 +00:00
yamt
683644f00e nfs_write: report an error correctly in the case of IO_SYNC. 2007-05-09 23:17:45 +00:00
tsutsui
eab20f9c7f Fix wrong softc size (missed in the previous). 2007-05-09 23:16:37 +00:00
dsl
844e5f00de Allow for other info in opt_fpsp.h when trying to find out whether FPSP
is enabled.
Surely there are proper mechanisms that can be used to conditionally include
this file?
2007-05-09 20:43:53 +00:00
dsl
1769aced1d Fix build. 2007-05-09 20:42:12 +00:00
macallan
5770a63871 in order to avoid accidential shutdown only send power button events to powerd
if the power button is pressed twice, with more than two but less than five
seconds delay
2007-05-09 00:10:56 +00:00
macallan
0c12bd26b3 add an optional callback from pmu's worker thread, use it to poll AC power
status on legacy batteries where we don't get environment interrupts. Also
report AC status changes to powerd.
2007-05-09 00:09:28 +00:00
pooka
a6b1636499 Adventures in file systems, part (u_quad_t)-1: we can't use the
file system value for the size of device special files, as that
comes from specfs instead of the "host" file system.  Therefore,
take care that getattr doesn't override the value of vp->v_size.
2007-05-08 21:39:03 +00:00
pooka
4537434d57 If the op was interrupted, decrease ops waiting for fetch from the
file server only if the op was still waiting for fetch (as opposed
to waiting for the response).  Also, properly flag the possible
following inactive as an op for which we do not want to wait for
the response from the file server.
2007-05-08 21:16:55 +00:00
dsl
99ec301ce3 Remember to copy the rusage to the users buffer. 2007-05-08 20:54:15 +00:00
dsl
f56bfb975c Add the child 'rusage' of an exiting process to its own 'rusage' exactly
once, and prior to passing it to the caller of sys_wait4() and at the same
time as adding it to the parent.
Commands like:
time sh -c 'i=0; while [ $i -lt 1000 ]; do i=$(expr $i + 1); done'
now give same output.
2007-05-08 20:10:14 +00:00
xtraeme
b6336505dc Remove duplicate sysmonioctl_envsys() prototype. 2007-05-08 20:04:42 +00:00
garbled
d6ba347731 Add a missing brace in cztty_receive inside a ifdef HOSTRAMCODE. This
would randomly cause internal compiler errors while compiling pmppc.
2007-05-08 17:27:37 +00:00
xtraeme
59000b719e Missing __KERNEL_RCSID(). 2007-05-08 17:17:14 +00:00
xtraeme
36e4309910 Add "ug* at acpi?" following the current scheme in the files. 2007-05-08 16:55:54 +00:00
xtraeme
ff1c414804 Split the ug(4) driver in three components:
* dev/ic/ug.c (main code shared by the attachments)
	* dev/isa/ug_isa.c (isa attachment)
	* dev/acpi/ug_acpi.c (acpi attachment)

That means that ug(4) can now be attached via ACPI.

Thanks to Mihai Chelaru for the good work.
2007-05-08 16:48:37 +00:00
pooka
8e2e7c23e6 update comment in struct fid to say the alignment is for prehistoric
compat: short + short doesn't mean longword alignment
2007-05-08 15:30:41 +00:00
degroote
5f72dadbd4 Always compute the sp index even if we don't have any sp in spd. It will
let us to choose the right default policy (based on the adress family
requested).

While here, fix an error message
2007-05-08 14:07:42 +00:00
degroote
8ebbd6c4f6 Increase the refcount for the default ipv6 policy so nobody can reclaim it 2007-05-08 14:03:05 +00:00
manu
f39939ad43 Fix buid (broken by a fix introduced in the wrong file...) 2007-05-08 09:29:50 +00:00
skrll
7b06b6fc23 Remove useless comment. 2007-05-08 07:06:45 +00:00
skrll
bd22722e77 Use sr1 to jump to syscall as we just loaded it with the right value. 2007-05-08 07:01:17 +00:00
manu
31b57f40ff Add the TFTPROOT kernel option for TFTP'ing root RAMdisk at root mount time.
This allows working around situations where a kernel with embedded RAMdisk
cannot be booted by the bootloader because the RAMdisk is too big.
2007-05-08 06:10:27 +00:00
kent
ec3dff2790 fix a typo: PRESENSE -> PRESENCE
From deanna@OpenBSD
2007-05-08 05:18:20 +00:00
kent
fea2165faf - fix incorrect codec name of STAC9200
- support for headphone-sensing in some DELL machines with STAC9200

From azalia_codec.c rev.1.19 by deanna@OpenBSD
2007-05-08 05:03:50 +00:00
kent
cdc3ad42b2 * azalia_code_connect_stream()
set stream#0 for unused converters in a group

PR#35658 by kikuma norimitsu
2007-05-08 04:35:37 +00:00
rumble
f2bf28e11c Report whether we're using DMA and what type on attach, since I keep losing
track while testing.
2007-05-08 02:08:17 +00:00
kent
1aa70e7d65 Some codecs need explicit initialization even for uni-directional pins.
Pointed out by Deanna Phillips
2007-05-08 01:39:33 +00:00
rumble
f337484a4a The maximum FIFO depth on old WD33C93 parts is only 5, not 12 as on 93A and
93B. However, there appear to be issues using the maximum of 5 on old
parts, so 4 is it.
2007-05-08 00:29:30 +00:00
rumble
11dc14c9fe Enable Fast SCSI transfers for WD33C93B parts with appropriate input
clocks.

My Seagate ST32430N now sees about 50% greater throughput (about 97% as
fast as IRIX can push it). However, there appear to be other performance
issues with the driver as other disks perform significantly worse than they
should, with or without this change.

Reviewed by bjh21. Tested on my Indy and Challenge S.
2007-05-08 00:20:15 +00:00
rmind
10c3d35ca0 Rename vfs_aio.c to sys_aio.c as decided in <tech-kern>.
Please note, that <tech-kern> people should note about
file names before commit. Otherwise, function may fail
with errno set to EDIRTY, and return -1. ;)
2007-05-07 22:22:20 +00:00
dogcow
01b74015fe fixes from dsl for compile errors 2007-05-07 21:18:26 +00:00
he
1d168d71bb Bump SYMTAB_SPACE so that the contents fits again. 2007-05-07 18:51:45 +00:00
pooka
151ee075e9 Introduce puffs "setbacks", which can be used to set certain flags
for nodes upon return from the userspace.  Currently it can be used
to indicate that the file server should be notified of "inactive"
in case the file server has opted to not receive inactive every
time the reference count for a vnode drops to zero.  (inactive is
a common event, almost never requires any action and must be executed
sychronously, so it is wasteful).

While doing this, cleanup the release-relock nonsense from the
vntouser*() arguments.  It was never enabled and the whole LOCKEDVP()
concept was very broken to begin with.
2007-05-07 17:14:54 +00:00
dsl
1844147fa9 Split sys_wait4() so that compat code can fiddle with the returned 'status'
and 'rusage' without having to copy data to/from stackgap buffers.
The old split (find_stopped_child) could be removed.
amd64 seems to run netbsd32, linux and linux32 emulations. sparc64 compiles.
2007-05-07 16:53:17 +00:00
he
1276917b53 Remove now-unused declarations of "struct proc *p". 2007-05-07 14:13:00 +00:00
yamt
e332a34211 add an evcnt and some assertions. 2007-05-07 12:39:45 +00:00
he
2751cf9440 Remove two local declarations of *p, now no longer needed. 2007-05-07 12:24:00 +00:00
yamt
d4bb61958b flush_inodedep_deps: fix access after free. PR/29724. 2007-05-07 11:13:01 +00:00
xtraeme
6b5eadf8c1 Don't refresh all sensors in the gtredata function, just the sensor
that was requested. This is related to PR kern/36226.
2007-05-07 10:54:44 +00:00
dsl
832ca390e2 Add child rusage values to exiting process in 'find_stopped_child'
so that it is (correctlly) available to the caller of wait4().
The self and child rusage values remain split for zombies.
2007-05-07 09:30:14 +00:00
jnemeth
3377bd5221 PR/36234 - Joerg Niendorf -- xi -> xirc 2007-05-07 09:02:05 +00:00
xtraeme
7435f0af77 Don't refresh all sensors in the gtredata function, just the sensor
that was requested. This is related to PR kern/36226.

Patch from Mihai Chelaru in private email.
2007-05-07 07:48:28 +00:00
xtraeme
0f4f0899c9 Enable rum(4). 2007-05-07 07:42:21 +00:00
xtraeme
5c606d1bff regen 2007-05-07 07:29:19 +00:00
xtraeme
ef71458b16 Sync the list of supported models with OpenBSD, 4 new models were
added.
2007-05-07 07:29:03 +00:00
xtraeme
ec414f7633 regen 2007-05-07 07:15:16 +00:00
xtraeme
0a7a89a5bc Sync the list of supported models with OpenBSD, 13 new models were
added.
2007-05-07 07:14:58 +00:00
xtraeme
e62012ff3e regen 2007-05-07 05:44:24 +00:00
xtraeme
0065b980ca Add support for ASUS WL-167g ver 2, from PR kern/35113 (Dave Huang). 2007-05-07 05:44:00 +00:00
rumble
f8e6f8f8cd Use burst dma for all systems, since it's supported by all HPCs and runs
with about 25% higher throughput on my Indy and ST32430N.
2007-05-06 23:49:57 +00:00
christos
f844889627 Remove change that obviously was not tested (since it uses LINUX_KERN_VERSION
again, producing EEXIST). There is no machine sysctl in linux that corresponds
to this (at least on my i386 suse box)
2007-05-06 23:25:26 +00:00
jnemeth
b38463376a add firmload attribute to rum, thanks to Paul Goyette on current-users 2007-05-06 22:54:20 +00:00
pooka
b5aae3d4e3 If setattr is called explicitly, use that as the sign to flush out
all metadata info cached in the kernel while we're setattr'ing in
any case.  Solves problems such as truncate (via extend-by-write)
+ chmod resulting in EPERM because the file was already read-only
when the actual truncate was flushed out of the kernel in fsync.
2007-05-06 19:43:14 +00:00
dyoung
752b247e01 Cosmetic: make the macro 'equal' into an inline subroutine, bcmp
-> memcmp, bcopy -> memcpy, 0 -> NULL, shorten staircases, remove
needless cast to int.
2007-05-06 06:21:26 +00:00
dyoung
e1d4e2922e In AppleTalk, IPv4, and IPv6 routing domains, help sockaddr_cmp()
avoid an indirect function call by comparing the family, length,
and bytes [dom->dom_sa_cmpofs, dom->dom_sa_cmpofs + dom->dom_sa_cmplen),
corresponding to the the sockaddrs' "address" members.

For ISO, actually use sockaddr_iso_cmp, for a change.  Thanks to
yamt@ for pointing out my error.
2007-05-06 02:56:37 +00:00
dyoung
fc86b519e8 Oops, commit this straggler from the last change to net/if_gre.[ch]. 2007-05-06 02:48:38 +00:00
dyoung
d9b62cfaed Switch from spl(9) to mutex(9) and condvar(9).
Fix a defect in the locking of file descriptors as we delegate a
UDP socket from userland to the kernel.  Move sc_fp out of sc_soparm.
Synchronize access to sc_fp by gre_ioctl() and the kernel thread
using a condition variable.  For simplicity's sake, make it the
kernel helper thread's responsibility to close its UDP socket.
2007-05-06 02:47:52 +00:00
dyoung
d91019e5e5 Use rtcache_lookup2(), and fix cache hit/miss accounting.
While I am here, introduce an rtentry pointer, 'rt', and set it
equal to ip6_forward.ro_rt.  Replace several occurrences of
'ip6_forward.ro_rt' with 'rt'.
2007-05-06 02:29:33 +00:00
dyoung
680f00f8b5 Factor rtcache_lookup2() out of rtcache_lookup1(), for re-use in
the IPv6 stack.  rtcache_lookup2() takes an int * argument that it
writes with 1 if we had a cache 'hit', 0 if there was a cache
'miss'.
2007-05-06 02:17:54 +00:00
dyoung
f650cb5d03 Free the route cache after detaching the interface w/ if_detach()
instead of before, because if_detach() may cause the cache to be
reloaded.  (I already fixed this in both etherip(4) and gre(4).
Ewww, rampant code duplication.)
2007-05-06 02:15:34 +00:00
yamt
10d3aa5cdf from kame:
> Revision 1.371
> Thu May 3 22:07:39 2007 UTC (47 hours, 7 minutes ago) by itojun
>
> drop packets with more than 1 routing headers.
> from claudio@openbsd

(and increment ifs6_in_hdrerr on ip6s_toomanyhdr.)
2007-05-05 21:23:50 +00:00
ad
501930d97e aio_init: limit wmesg strings to 8 characters. 2007-05-05 20:38:43 +00:00
yamt
3c8e37e03e agrether_hashmbuf: feed ipv6 flowlabel to hash calculation. 2007-05-05 18:23:23 +00:00
rumble
c5e64595c9 Make this compile again after dsl's stackgap rototill. 2007-05-05 13:12:51 +00:00
dyoung
a56ad6a493 Use the system's offsetof() definition from sys/systm.h (in kernel)
or stddef.h (out of kernel).  Remove IPF's troublesome offsetof()
definitions.  This lets IPF build on amd64.
2007-05-04 19:50:42 +00:00
yamt
c9ba84ac33 aio_worker: exit properly. 2007-05-04 14:28:40 +00:00
christos
d713bb3c1e PR/36273: Ryo ONODERA: com_acpi.c lacks a entry for Fujitsu Serial Pen Tablet 2007-05-04 14:18:36 +00:00
rmind
29cb26a639 - Make aio_listio_max and aio_max changeable via sysctl.
- Set a lower priority for AIO-worker thread, because current could cause
  interactivity problems (eg. with qemu - thanks <xtraeme> for testing).
  Mark it as XXX for now - after priority model change, this should
  be reconsidered anyway.
- Do not copyout() with lock held in sys_aio_cancel().
- Fix a leak of the lock in aio_process().
- Check for any error of cv_wait_sig().
- Cache p->p_aio in aio_exit().

Thanks <ad> for catching the issues!
2007-05-03 22:03:40 +00:00
skrll
e8d4c9a153 Regen for DeLorme Earthmate LT-20 GPS 2007-05-03 06:34:17 +00:00
skrll
01ad9806cd Add the DeLorme Earthmate LT-20 GPS.
Prompted by David Howland.
2007-05-03 06:33:23 +00:00
nisimura
05c17e1a31 fix errors in MCCR1 register
- ROMNAL bit field definition
- ROMFAL comment typo
2007-05-03 05:00:57 +00:00
dyoung
8b646d9bb9 Remove obsolete files netinet/in_route.[ch]. 2007-05-02 22:39:03 +00:00
bouyer
d6908bb21a Regen: added JMicron Technology products 2007-05-02 21:29:16 +00:00
bouyer
f17d74cec5 Add JMicron Technology vendor ID, and their current PCIe SATA/PATA
controllers.
2007-05-02 21:28:28 +00:00
dyoung
38175939e7 Remove unused option. 2007-05-02 20:43:47 +00:00
dyoung
72f0a6dfb0 Eliminate address family-specific route caches (struct route, struct
route_in6, struct route_iso), replacing all caches with a struct
route.

The principle benefit of this change is that all of the protocol
families can benefit from route cache-invalidation, which is
necessary for correct routing.  Route-cache invalidation fixes an
ancient PR, kern/3508, at long last; it fixes various other PRs,
also.

Discussions with and ideas from Joerg Sonnenberger influenced this
work tremendously.  Of course, all design oversights and bugs are
mine.

DETAILS

1 I added to each address family a pool of sockaddrs.  I have
  introduced routines for allocating, copying, and duplicating,
  and freeing sockaddrs:

        struct sockaddr *sockaddr_alloc(sa_family_t af, int flags);
        struct sockaddr *sockaddr_copy(struct sockaddr *dst,
                                       const struct sockaddr *src);
        struct sockaddr *sockaddr_dup(const struct sockaddr *src, int flags);
        void sockaddr_free(struct sockaddr *sa);

  sockaddr_alloc() returns either a sockaddr from the pool belonging
  to the specified family, or NULL if the pool is exhausted.  The
  returned sockaddr has the right size for that family; sa_family
  and sa_len fields are initialized to the family and sockaddr
  length---e.g., sa_family = AF_INET and sa_len = sizeof(struct
  sockaddr_in).  sockaddr_free() puts the given sockaddr back into
  its family's pool.

  sockaddr_dup() and sockaddr_copy() work analogously to strdup()
  and strcpy(), respectively.  sockaddr_copy() KASSERTs that the
  family of the destination and source sockaddrs are alike.

  The 'flags' argumet for sockaddr_alloc() and sockaddr_dup() is
  passed directly to pool_get(9).

2 I added routines for initializing sockaddrs in each address
  family, sockaddr_in_init(), sockaddr_in6_init(), sockaddr_iso_init(),
  etc.  They are fairly self-explanatory.

3 structs route_in6 and route_iso are no more.  All protocol families
  use struct route.  I have changed the route cache, 'struct route',
  so that it does not contain storage space for a sockaddr.  Instead,
  struct route points to a sockaddr coming from the pool the sockaddr
  belongs to.  I added a new method to struct route, rtcache_setdst(),
  for setting the cache destination:

        int rtcache_setdst(struct route *, const struct sockaddr *);

  rtcache_setdst() returns 0 on success, or ENOMEM if no memory is
  available to create the sockaddr storage.

  It is now possible for rtcache_getdst() to return NULL if, say,
  rtcache_setdst() failed.  I check the return value for NULL
  everywhere in the kernel.

4 Each routing domain (struct domain) has a list of live route
  caches, dom_rtcache.  rtflushall(sa_family_t af) looks up the
  domain indicated by 'af', walks the domain's list of route caches
  and invalidates each one.
2007-05-02 20:40:22 +00:00
dogcow
93c1d76796 Instead of manually multiplying out the magic numbers, use * 15 / 10 instead
of * 1.5; this seems to placate the various compilers into not requiring fp.
2007-05-02 18:47:27 +00:00
yamt
fce3c58e5e nfs_rcvlock: fix NFSMNT_INT check, which has been broken since rev.1.39. 2007-05-02 16:19:55 +00:00
yamt
e4c778084c - nfs_reply: keep rcvlock longer so that lwp which already have its reply
received won't be stuck in nfs_receive.
- nfs_rcvlock: check exceptions before sleeping on the lock.
- nfs_rcvunlock: use cv_broadcast rather than cv_signal to ensure that
  lwps which received its reply get woken up.
2007-05-02 14:48:47 +00:00
yamt
6bcb315f7d lockdebug_abort: s/int/u_int/ for lock id as the rest of code. 2007-05-02 14:07:02 +00:00
tnn
a1ab0c29a3 Define microvoltage scale factor which was previously a magic constant. 2007-05-02 11:40:44 +00:00
martti
69c0a989e5 Sync with official IPF 2007-05-02 09:53:09 +00:00
skrll
13951ee3d4 Add an INSTALL kernel for landisk and enable building it.
Also add an installation/misc directory for a boot.fs image which is WIP.
2007-05-02 08:02:00 +00:00
dogcow
36f6a11c63 gcc is too clueless on some platforms to tell that
(number divisible by 2 * 1.5) is an int, and thus fails spectacularly
at either link or compile time. replace exprs with their int values.
2007-05-02 02:59:54 +00:00
dogcow
cdc34fdb17 tred->sensor is a u_int. 2007-05-01 19:39:22 +00:00
martti
872147fef7 Upgraded IPFilter to 4.1.20 2007-05-01 19:08:03 +00:00
dsl
92ab0cdf99 Always pick 'rusage' from p->p_stats->p_ru, p->p_ru is dead and gone. 2007-05-01 17:22:32 +00:00
bouyer
982bad256f Add bio(4) and associated bioctl(8) from OpenBSD, a driver control block
device controllers, and more specifically raid controllers.
Add a new sensor type, ENVSYS_DRIVE, to report drive status. From OpenBSD.
Add bio and sysmon support to mfi(4). This allow userland to query
status for drives and logical volumes attached to a mfi(4) controller. While
there fix some debug printfs in mfi so they compile.
Add bio(4) to amd64 and i386 GENERIC.
2007-05-01 17:18:52 +00:00
pooka
6ffefad6ef Fix a problem introduced when I converted puffs to use newlock2:
when unmounting the file system in case of a certain timing (and
possibly some other conditions), a thread would wait on a condition
variable, while another thread broadcast the cv and immediately
proceeded to destroy it.  The result was a system frozen completely
solid shorly after the process waiting for the cv woke up.  So
introduce reference counting to synchronize destruction of the
resources in unmount.

I was able to repeat the problem only on my laptop in some special
cases, so I do not know how common it was.  Ironically, killing
the file server process violently instead of unmount() didn't have
this problem because it never entered the unmount path from two
directions.
2007-05-01 12:18:40 +00:00
garbled
82817a763e Convert to using BITS macros, and add some additional defines for
determining ECC/ram types
2007-05-01 07:52:51 +00:00
garbled
a65cbc2f78 Add a set of register defines for the MPC106 PCI bridge. Adapted from
the MPC105, and fleshed out with the user manual.
2007-05-01 05:00:55 +00:00
garbled
1257ee1702 Add a set of registers for the ibm 82660 pci bridge chip found in various
IBM powerpc machines.
2007-05-01 04:20:45 +00:00
rmind
0994dd0691 - Create sysctl nodes for AIO.
- Add POSIX defined system variables and constants of AIO_LISTIO_MAX and
  AIO_MAX values.  Both with _POSIX_ASYNCHRONOUS_IO, provide them in
  sysconf(3) and getconf(1) interfaces.
- Clean up sysconf(3) for handling sysctl nodes dynamically.
2007-05-01 01:01:25 +00:00
yamt
ab54f30196 remove R_GETONEREP. 2007-04-30 23:10:55 +00:00
dsl
dd85830e7b Include extra header (vfs_syscalls.h). 2007-04-30 20:20:28 +00:00
dsl
e6918d8f47 Remove proc->p_ru and the 'rusage' pool.
I think it existed to cache the numbers in kernel memory of a zombie when
proc->p_stats was part of the 'u' area - so got freed earlier and wouldn't
(easily) be accessible from a separate process.  However since both the
p_ru and p_stats fields are freed at the same time it is no longer needed.
Ride the recent 4.99.19 version change.
2007-04-30 20:11:41 +00:00
tron
c021b87a9d Reset error code if an ioctl() request is not handled by the generic
disk framework. This stops ld(4) from returning an error for various
ioctl() requests which actually *did* work. As a result fdisk(8) and
therefore also sysinst(8) work with ld(4) devices once again.

Based on a patch supplied by Todd Kover in PR kern/36244, successfully
tested with ld(4)@icp(4).
2007-04-30 17:23:09 +00:00
dsl
2ad855f76d Remove comment about process stats not always being resident.
They are allocated from a pool and thus permanently resident.
2007-04-30 16:30:56 +00:00
rmind
a28550c721 Welcome to NetBSD 4.99.19: Added support for POSIX Asynchronous I/O. 2007-04-30 15:14:13 +00:00
rmind
9c025db4ef Regen syscalls for AIO. 2007-04-30 14:47:32 +00:00
rmind
67d703cf25 Import of POSIX Asynchronous I/O.
Seems to be quite stable. Some work still left to do.

Please note, that syscalls are not yet MP-safe, because
of the file and vnode subsystems.

Reviewed by: <tech-kern>, <ad>
2007-04-30 14:44:28 +00:00
dsl
906b9af2a7 Rework compat stat() and statvfs() code so that it no longer uses the stackgap. 2007-04-30 14:05:47 +00:00
yamt
6e3d653f39 fix a lock leak in rev.1.109. pointed by Mindaugas R. 2007-04-30 10:30:51 +00:00
dsl
8932ebd238 Remove some unused calls to stackgap_init() 2007-04-30 09:20:18 +00:00
dsl
0df00dcf55 Split the statvfs functions so that the 'work' is done to a kernel buffer
which can either be copied directly to userspace, or converted then copied.
Saves replicating a lot of code in the compat functions (esp. for
getvfsstat) at a cast of an extra function call in the non-emulated case -
which is unlikely to be measurable given the other costs of the actions
involved (even on vax).
Remove dofhstat() and dofhstatvfs() (and the last caller).
Remove some redundant stackgap_init() calls.
2007-04-30 08:32:14 +00:00
simonb
815c7faa9e Restore $NetBSD$ tag. 2007-04-30 01:26:35 +00:00
macallan
a9c87314bd add support for i2c waitstates so we can actually talk to slow slaves
Suggestions and review by simon
2007-04-30 00:07:54 +00:00
bouyer
4b495bb053 Add support for ICH8 (i82801H) LAN, from FreeBSD.
Should work on:
i82801H IFE (GT) LAN Controller
i82801H IFE (G) LAN Controller
i82801H (M_AMT) LAN Controller
i82801H (AMT) LAN Controller
i82801H LAN Controller
i82801H (IFE) LAN Controller
i82801H (M) LAN Controller

tested with: Intel i82801H (AMT) LAN Controller, rev. 2
2007-04-29 20:35:21 +00:00
bouyer
56c3c4a3c0 Regen: remove extra "Intel" from previous commit. 2007-04-29 20:35:02 +00:00
bouyer
3f28ce9e00 Remove extra "Intel" from previous commit 2007-04-29 20:33:22 +00:00
bouyer
91dbb3bbf7 Regen: add Intel i82801H IFE G/GT LAN Controller 2007-04-29 20:31:23 +00:00
bouyer
a9e36fb20c Add:
Intel i82801H IFE (GT) LAN Controller
Intel i82801H IFE (G) LAN Controller
from FreeBSD
2007-04-29 20:29:53 +00:00
msaitoh
8ce1f4fff2 fix typos 2007-04-29 20:23:34 +00:00
yamt
fbee155d25 use mutex and condvar. 2007-04-29 15:31:53 +00:00
yamt
6623a01439 don't forget to destroy mutex and condvar. 2007-04-29 15:30:26 +00:00
yamt
f14398066d include condvar.h. pointed by Kurt Schreiner. 2007-04-29 14:58:21 +00:00
yamt
bbe5115ad9 use condvar. 2007-04-29 14:56:59 +00:00
yamt
aca6764004 use mutex and condver. 2007-04-29 10:30:18 +00:00
yamt
ac99b69f8d use mutex and condvar. 2007-04-29 08:41:10 +00:00
isaki
174e071c25 Remove obsoleted #undef. 2007-04-29 05:31:00 +00:00