187165 Commits

Author SHA1 Message Date
skrll
5764441dd3 Tweak comment. From OpenBSD. 2010-01-16 13:53:58 +00:00
skrll
3e5644bee4 Simplify 2010-01-16 13:49:11 +00:00
skrll
8c8e2e46ed Tweak astpending handling. 2010-01-16 13:29:47 +00:00
skrll
2e0bcc8d3b Remove cargo cult dlinfo entry point. 2010-01-16 10:37:51 +00:00
skrll
a6de3e0058 Use the description in the ACD for T_DBREAK. 2010-01-16 10:06:31 +00:00
mbalmer
8f42635938 fix wording:
instead of the a file -> instead of a file
2010-01-16 08:50:29 +00:00
skrll
51f44bf5bd Check cpl level has returned to entry value when leaving trap/syscall.
From OpenBSD.
2010-01-16 07:56:16 +00:00
skrll
03108b61cc Add a comment. 2010-01-16 07:45:53 +00:00
skrll
98963a69d5 Count interrupts in uvmexp. 2010-01-16 07:38:56 +00:00
skrll
a11430cd21 Rename type_raw to trapnum and use in a couple more places.
Reduces diff to OpenBSD.
2010-01-16 07:37:21 +00:00
skrll
9343811ea9 Count traps in uvmexp. Reduces diff to OpenBSD. 2010-01-16 07:17:39 +00:00
nakayama
a4d5978210 UltraSPARC-IIIi CPUs select the BUSY/NACK pair in the interrupt
vector dispatch status register based on the lower two bits of the
ITID.

From OpenBSD and details are described in the section 10.4.3 of
UltraSPARC IIIi Processor User's Manual.
2010-01-15 23:57:07 +00:00
nakayama
46ffa7ba82 Add processor implementation codes, from OpenBSD. 2010-01-15 23:55:55 +00:00
dyoung
73fb1c1774 Use __arraycount(). 2010-01-15 23:49:22 +00:00
pooka
ec8068f5fb * remove just-for-kicks locking
* KNF
* remove outdated comment (quite a funny one to read in 2010, though)
2010-01-15 22:16:46 +00:00
bouyer
0264f2a19e Note sparc apc(4). 2010-01-15 20:59:00 +00:00
phx
eab1253bf7 Fixed crash, when /rtas was not found: OF_finddevice() returns -1 when
the device is not found.
2010-01-15 20:57:25 +00:00
bouyer
3c5e160011 Add apc(4), a driver for the Aurora Personality Chip (APC) found
on SPARCstation-4/5, and emulated by qemu to idle the simulator
when the CPU is idle. Infos about the registers from the linux driver.
Not enabled by default because it can cause some Sparc systems to
hang (so says the linux driver).
Only the CPU idle part implemented at this time; fan speed and
Convenience power outlet management to be added.
Tested on qemu.
2010-01-15 20:57:12 +00:00
pooka
c396ac1512 Accomplish messy stack with slightly less messy code. 2010-01-15 20:39:46 +00:00
mjacob
1f74793503 Amazingly, we've been freeing a handle and then using that which it referred
to for years. Bad.
2010-01-15 20:09:09 +00:00
bouyer
aa0e1a2ecf vclean() actually sets v_tag to VT_NON but doesn't touch v_type.
getcleanvnode() sets v_type to VNON after releasing v_interlock.
So the thread doing quotaon(), quotaoff() or qsync() could vget()
a vnode which is being recycled in getcleanvnode(), after is has
been cleaned and v_interlock released, but before v_type has been
reset, leading to KASSERT(vp->v_usecount == 1) firing in
getnewvnode(), or qsync() dereferending a NULL pointer as in
PR kern/42205.
Fix by using the same tests as other ffs function traversing the mount
list: also check for VTOI(vp) == NULL, and VI_XLOCK in addition
to VI_CLEAN.
2010-01-15 19:46:35 +00:00
joerg
642cfb40e9 Use .%U instead of .%O for URLs. 2010-01-15 19:39:10 +00:00
bouyer
85e9e8e2b4 Revert previous. The KASSERT() is right and my analysis is wrong,
as pointed out by pooka@.
2010-01-15 19:28:26 +00:00
joerg
aee81ebcb8 Use .%U instead of .%O for URLs. 2010-01-15 19:24:49 +00:00
joerg
ff4348e0b0 Use .%U. Give full URL for draft-ietf-ipsec-ecn-02. 2010-01-15 19:23:38 +00:00
joerg
228bb419cc Use .%U for URLs instead of .%O. 2010-01-15 19:19:32 +00:00
joerg
0e901e0c61 Use .%U instead of .%O for URLs. 2010-01-15 19:18:51 +00:00
pooka
e5bb7fe875 Use subr_percpu.c instead of homegrown implementation. ...except
when using malloc(3)-relegated allocators (happens in production
e.g. on Linux), since subr_percpu.c uses vmem and i don't want to
reimplement vmem.
2010-01-15 19:01:04 +00:00
pooka
435aa34303 print mbuf statistics a few times. incidentally, can be used to
test percpu.
2010-01-15 18:38:16 +00:00
nakayama
703280a3af Add function names defined by macro in comment for reference. 2010-01-15 15:05:02 +00:00
nakayama
b36a9587e3 Fix typo in previous. 2010-01-15 15:02:48 +00:00
asau
76d4b3bdab Regenerate. 2010-01-15 11:27:01 +00:00
asau
9f9e90f73c Test for <sys/endian.h> and provide HAVE_SYS_ENDIAN_H.
Fixes FreeBSD hosted builds (PR 42440 and PR 42470).

Approved by <dholland>.
2010-01-15 11:26:25 +00:00
skrll
418048d731 Put the dlopen,and friends entry points back.
They're needed by pre-2.0 binaries. Backward compatibiliity for these
was broken by another commit recently which I'll fix shortly.
2010-01-15 07:07:11 +00:00
pooka
07df6e2689 Fix reference counting for vfsops in mount. Otherwise it's possible
(for an unprivileged user) to force vfs modules to remain loaded
forever.  Also, it's possible for an admin with fat fingers to have
to curse out loud (a lot) and reboot.

.. or at least fix things as much as seems to be possible without
involving 1000 zorkmids.  do_sys_mount() takes either struct vfsops
(which hopefully came properly referenced) or a userspace string
for file system type.  The standard in-kernel calling convention
of "do_sys_mount(l, vfs_getopsbyname("nfs"), NULL," is not to be
considered healthy, kosher, or even tasty (although if vfs_getopsbyname()
fails the whole thing *currently* fails without the program counter
pointing to hyperspace).
2010-01-15 01:00:46 +00:00
bouyer
7ffaf66ccb Remove KASSERT(vp->v_usecount == 1) in getnewvnode() and ungetnewvnode().
Another process could be vget()ing the vnode and bump v_usecount while
getcleanvnode() is vclean()ing it (as vclean drops the interlock).
vget() will then wait for VI_XLOCK or VI_FREEING to clear; and we could test
this assertion while the other process is still slepping. We could even
end up in ungetnewvnode() before this other process got a chance to run.
2010-01-14 22:41:52 +00:00
pooka
0552fc0a0c from main with return 0;
(Why did I manage to succesfully build n times, including a full
distribution build, without tripping this before ?!?)
2010-01-14 22:06:54 +00:00
skrll
699646b3ea Remove the entry points for dlopen() and friends. They haven't been used
since Aug 2003.
2010-01-14 21:52:07 +00:00
pooka
ce626609cc Remove puffs| from vfstype before making comparison to determine if
fs is mounted.

Fixes slightly-miscategorized kern/37626.
2010-01-14 21:46:24 +00:00
christos
f9076c1664 undef and redefine instead of checking if it is define, from joerg 2010-01-14 21:38:19 +00:00
pooka
101ba40c37 add mount_puffs 2010-01-14 21:35:57 +00:00
pooka
707f1f2b92 If getargs and vfs has PUFFS_TYPEPREFIX, use mount_puffs to query args. 2010-01-14 21:30:17 +00:00
pooka
335e5fc6dc Descend into mount_puffs. 2010-01-14 21:29:26 +00:00
christos
76aa0f6aa7 provide __arraycount for those that don't have it. 2010-01-14 21:26:56 +00:00
pooka
0f16a0e5f3 Add a generic puffs kernel utility for querying mount arguments.
E.g.:
	golem> dtfs -r 'chr 15 25' dtfs /puffs
	golem> mount_puffs -o getargs dtfs /puffs
	version=26, flags=0x10, root cookie=0xbb90c0c0, root type=VCHR, root size=0, root rdev=0xf19
2010-01-14 21:25:48 +00:00
pooka
3557ef52b9 In case the operations thread has exited, do not queue any more
operations.  This prevents kernel memory leaks (one of which happened
every time the file system was unmounted via PUFFSOP_UNMOUNT ...
and incidentally would've been trivially caught with the old
malloc(9) interface.  I wonder if the message is to use a ton of
pools instead of regression-attractive kmem interface).
2010-01-14 19:50:07 +00:00
msaitoh
86ff2cac75 Fixes the rx stall problem on 82578 by MANY workaround code.
We need more work for 82577.
2010-01-14 18:56:01 +00:00
drochner
79f027bbd6 On i386/amd64, define two flag bits in the boot parameters which control
whether modules are loaded and whether boot.cfg is evaluated, and
set both to "off" per default in the PXE bootloader.
Extend "installboot" to toggle the bits.
This way, pxeboot works with existing dhcp server setups (and as
described in the manpage) out of the box. Also, boot.cfg reading
involves a stat() call which is horribly inefficient with the
TFTP pseudo file system.
2010-01-14 17:49:31 +00:00
christos
aa0d683311 Add a list of functions where we usually don't care about their return
code. Can be bypassed by -hh
2010-01-14 16:58:27 +00:00
tsutsui
e5f39b5e90 Remove if defined(__RCSID) around __RCSID() macro.
#include "nbtool_config.h" is enough for tools.
2010-01-14 16:27:49 +00:00