ad
3cb7a24bec
Make descriptor access and file allocation cheaper in many cases,
...
mostly by avoiding a bunch of atomic operations.
2009-05-23 18:28:05 +00:00
ad
f0545a5e5b
- Add lwp_pctr(), get an LWP's preemption/ctxsw counter.
...
- Fix a preemption bug in CURCPU_IDLE_P() that can lead to a bogus
assertion failure on DEBUG kernels.
- Fix MP/preemption races with timecounter detachment.
2009-05-23 18:21:20 +00:00
ad
fc7505ae27
Broken assertion.
2009-05-23 18:19:19 +00:00
ad
2fc2b08001
- Add lwp_pctr(), get an LWP's preemption/ctxsw counter.
...
- Fix a preemption bug in CURCPU_IDLE_P() that can lead to a bogus
assertion failure on DEBUG kernels.
- Fix MP/preemption races with timecounter detachment.
2009-05-23 17:08:04 +00:00
ad
a742b7d3d8
- Cosmetic change to previous.
...
- Add a comment.
2009-05-23 15:59:30 +00:00
ad
d4b01cb0fb
- Fix a race between umount()/mount() and nfssvc().
...
- Toss netexport state on nfsserver module unload.
2009-05-23 15:31:21 +00:00
ad
cb95ab6e35
Fix a crash observed when trying to load a corrupted ELF image.
2009-05-23 15:13:57 +00:00
ad
abc14f1bc4
Fix a crash when unloading nfsserver module.
2009-05-23 14:45:18 +00:00
ad
7839123ed3
Remove pointless error check.
2009-05-23 14:44:56 +00:00
skrll
8edb76ef42
More help for mjf's machine.
2009-05-23 13:39:54 +00:00
martin
9628a349dd
Add a signed offset type
2009-05-22 21:44:50 +00:00
christos
5ea3c00ef0
add uhmodem, uncomment wd* at umass
2009-05-22 18:57:40 +00:00
pooka
3f019758ec
forward declare struct stat to avoid implicit header dependencies
2009-05-22 12:47:39 +00:00
pooka
aeedc12a43
Add compat routines for vattr translation over time_t change.
2009-05-22 10:51:54 +00:00
pooka
659f41e70a
Add handrolled stat30 compat syscalls for calling post-time_t rump
...
kernels from pre-time_t userlands.
2009-05-22 08:59:32 +00:00
pooka
ac42a021b0
Add rump_getversion(), which returns the version of NetBSD for the
...
rump kernel.
2009-05-22 08:34:14 +00:00
pooka
908a0b2534
fix __KERNEL_RCSID
2009-05-22 08:26:52 +00:00
he
266e29fe75
Remove a no-longer-needed include of <sys/device.h>, which now created
...
a build problem because dvl_mtx has an incomplete type when building
cacheops.o.
2009-05-22 08:08:36 +00:00
mrg
a149917d19
add two new functions for z8530tty: zs_chan_lock() and zs_chan_unlock(),
...
and use them instead of various spl's in the zs.c's.
reviewed by ad and martin.
2009-05-22 03:51:30 +00:00
skrll
9214c21a6a
Add wax at uturn.
2009-05-21 20:59:41 +00:00
skrll
0ed670ef62
Add mjf's d390 to the list of machines that need help finding devices.
...
hmm.
2009-05-21 20:59:11 +00:00
wiz
cf1c67ea5b
<space> -> <tab> consistency.
2009-05-21 19:27:38 +00:00
dyoung
a0d0f249f9
Let us detach pcmcia0 and cardbus0 at cardslot0, and cardslot0 at
...
cardbus0.
2009-05-21 17:32:32 +00:00
martin
b808c7c6b8
Deja Vu: when preparing the initial trap frame for a new forked lwp,
...
explicitly clear condition code. Otherwise we might catch a signal
(handlers are inherited from the parent) before we ever return to
userland. The current trapframe is converted into a ucontext and after
the signal handler returns, the lwp stays in userland and directly
uses the ucontext to return to the fork call.
Fixes PR 41302.
2009-05-21 13:24:38 +00:00
jnemeth
42d3e7ca09
pull in <sys/module.h>
2009-05-21 08:13:43 +00:00
jnemeth
3dd1df3ee7
add a dummy module_init_md()
...
XXX if we ever teach the boot loader to load module, we'll have to
make this actually do something
2009-05-21 08:07:18 +00:00
reinoud
b33f7bb0ef
Retire IN_CALLBACK_ULK flagging since its not used anymore and the old
...
assertions on it would trigger without cause.
2009-05-20 15:30:26 +00:00
reinoud
2d212d801f
Descriptor version is 16 bit and not 8 so use udf_rw16() to access them.
...
UniqueID was written in the logical volume integrity without byteswapping for
bigendian machines.
2009-05-20 13:25:50 +00:00
jnemeth
0633077892
keep up with changes subr_kobj.c
2009-05-20 08:32:35 +00:00
dyoung
ba38289d56
Revert part of last: .include <bsd.own.mk> for TOOL_SED / TOOL_AWK
...
definitions instead of using :Used / :Uawk alternates. Now,
'nbmake-i386 tags' works.
2009-05-20 03:41:25 +00:00
dyoung
3f9760ec8f
If TOOL_AWK or TOOL_SED are undefined, then use awk or sed,
...
respectively.
Use ${FINDCOMM} to avoid too-long arguments lists.
2009-05-20 03:36:36 +00:00
dyoung
85d8d1fcdd
On second thought, let's call disk_predetach() disk_begindetach().
...
Verbs are good.
2009-05-20 03:26:21 +00:00
dyoung
36ee114227
Use disk_predetach().
2009-05-19 23:43:44 +00:00
pgoyette
9cce088ba8
When displaying boot-time trip-register settings, shift to exclude
...
fractional bits. Otherwise, a setting of 52C reports 832 during
boot, and that's way too hot for any memory!
2009-05-19 23:43:27 +00:00
dyoung
a76a7fd159
Encapsulate the checks that I do before detaching a disk(9) provider
...
in a pre-detachment routine, disk_predetach().
2009-05-19 23:42:05 +00:00
dyoung
d12b985d2c
Rename waittime to syncdone, make it bool, make it private to
...
cpu_reboot().
2009-05-19 22:03:16 +00:00
dyoung
96280e41f6
Use ${FINDCOMM} to avoid 'Arguments list too long'-related failure
...
of 'tags' target.
2009-05-19 22:01:34 +00:00
christos
9812fa677f
use symbolic constants and parenthesize the macro args everywhere.
2009-05-19 21:59:10 +00:00
dyoung
9167c17dd5
Add a detachment hook. Detach md(4) at shutdown.
2009-05-19 20:25:41 +00:00
dyoung
a94204e132
Delete wdactivate() and sdactivate(). They were no-ops, but as a
...
side-effect of registering them, config_detach(9) cleared DVF_ACTIVE
before it called wddetach() or sddetach(). Even though sd(4)'s
detachment may have subsequently failed with EBUSY, we could not
begin new disk I/O on sd(4) because the device had been deactivated.
By analogy to sdstrategy(), test device_is_active() in wdstrategy()
and if it is false set b_errno to EIO instead of initiating new
disk I/O.
XXX We should decline more politely to start new I/O, since
XXX !device_is_active() may mean simply that the device is suspended.
XXX I suppose that EIO is safe as long as system suspension is
XXX all-or-nothing.
2009-05-19 19:56:10 +00:00
phx
42b74af385
Removed old Amiga-specific "sicallback" software interrupts and replaced
...
them by MI softints. Approved by "is".
2009-05-19 18:39:26 +00:00
reinoud
2b1b74bba4
Account for the logical blocks recorded by the extent in the right endian!
2009-05-19 16:24:05 +00:00
reinoud
e186770777
On creation of a new node, don't forget to set the length of the allocated
...
space in the right endian!
2009-05-19 16:06:56 +00:00
reinoud
c3511553ae
Forgot to use the udf_rw16() on the descriptor crc lengths of FID's!
...
Also fix a few dubiously formatted checks.
2009-05-19 15:08:42 +00:00
reinoud
fbd470bae3
A descriptor's CRC lenth is 16 bit so use udf_rw16() on tag.desc_crc_len.
2009-05-19 15:07:20 +00:00
pooka
e11306504d
Set vnode op vector properly for block devices too. Makes mounting
...
a real block device work again.
2009-05-19 13:42:35 +00:00
yamt
1a764d8c67
radix priority search tree.
2009-05-19 12:39:56 +00:00
skrll
72c9ff9f0c
Whitespace.
2009-05-19 05:50:58 +00:00
bouyer
8ebd73cde8
Back out rev 1.27 now that MD implementations of spl*() have been fixed
...
to be a memory barrier.
2009-05-18 21:31:27 +00:00
ad
77e6671be0
- Remove unneded uvm_lwp_hold(), uvm_lwp_rele().
...
- Make physio_concurrency tuneable via crash(8).
- Update comments.
2009-05-18 21:12:33 +00:00