yamt
ae07703384
cache_prune: use (a - b > 0) rather than (a > b) to compare ticks.
2009-01-16 06:59:21 +00:00
yamt
3e54d28391
use TAILQ_FOREACH where appropriate, rather than rolling their own.
2009-01-16 01:48:09 +00:00
yamt
46b53b5f94
replace clearly broken bufq_priocscan_cancel with
...
something which might work. (hi reinoud)
2009-01-16 01:44:27 +00:00
yamt
b9b9c67db2
bufq_cancel: KNF.
2009-01-15 16:11:19 +00:00
christos
dfcfa95743
check for error in the COMPAT_50 case.
2009-01-15 15:29:10 +00:00
christos
a46d2217e9
reverse the polarity of the use of the error variable. Using a different
...
variable would be cleaner but it would require more ifdefs.
2009-01-15 15:25:37 +00:00
christos
6e8bc6579f
correct previous, fix reversed test, remove memset.
2009-01-14 23:28:23 +00:00
cegger
16f884ca6d
make this compile: fix gcc warning about uninitialized use of tv.sec and tv.usec.
2009-01-14 20:33:19 +00:00
pooka
32713ca49c
Generate local prototypes in rump_syscalls.c and disallow using
...
the rump_syscalls.h interface from inside the rump kernel.
2009-01-14 19:40:30 +00:00
christos
6d87d90fe9
version get/set send/recv timeout setsockopt.
2009-01-14 18:09:00 +00:00
pooka
09ba2d6689
Regen to prove I didn't screw up the conversion: purely RCSID changes.
2009-01-13 22:33:11 +00:00
pooka
a9a2ce837b
Convert the syscalls.master to a format from which it is easier
...
to parse and generate the compat name and basename (e.g. __stat50
and stat). Use this to autogenerate __RENAME()'s to the rump_syscalls
header so that they can be called e.g. rump_sys_socket() instead
of rump_sys___socket30().
2009-01-13 22:27:43 +00:00
pooka
71ef2103a7
Print delimiters around expected string in parse error message.
2009-01-13 16:29:19 +00:00
pooka
b2acbf4328
fix error message: expecting (, not )
2009-01-13 16:25:43 +00:00
yamt
70de973662
g/c BUFQ_FOO() macros and use bufq_foo() directly.
2009-01-13 13:33:58 +00:00
christos
3153db9a35
remove !NTP stub.
2009-01-11 21:00:11 +00:00
christos
cbac073161
regen.
2009-01-11 19:41:12 +00:00
christos
87e24cb708
fix lutimes.
2009-01-11 19:40:38 +00:00
christos
e625b403dd
- fix leaked lock, thanks ad@ for noticing.
...
- remove unneeded cast.
2009-01-11 15:57:29 +00:00
tsutsui
427f482fda
Regen to pull proper "created from" revision strings.
2009-01-11 12:22:51 +00:00
cegger
138eec15bb
make kgdb_dev a dev_t
2009-01-11 10:20:53 +00:00
christos
461a86f9bd
merge christos-time_t
2009-01-11 02:45:45 +00:00
reinoud
a0d3b4c9bf
Fix the mess i made with the iso partitioning reading due to the fact that
...
disk_read_sector() wants DEV_BLKSIZE blkno's BUT sectorsize unit lengths
specified... how `logical'.
Real fixup pending on discussion on tech-kern/source-changes.
2009-01-08 14:06:50 +00:00
pooka
e99d5fab49
Sprinkle comments explaining purpose of kobj_machdep(), per email from ad.
...
no functional change
2009-01-08 01:03:24 +00:00
pooka
150e5cca0b
Missed realloc in previous. Ride 5.99.6 bump.
2009-01-07 21:06:31 +00:00
pooka
80508c50c5
Rename malloc() to kern_malloc() to avoid name conflict with libc.
...
Now it is possible to use the kernel linker with rump.
2009-01-05 21:42:37 +00:00
reinoud
0da18cc3f4
Fix ISO partitioning readin. ISO dictates its descriptors are minimal 2048
...
bytes long independent of the device block size.
2009-01-03 14:35:27 +00:00
yamt
68b6d8786e
remove extra semicolons.
2009-01-03 03:31:23 +00:00
pooka
3c58d5b25f
My clever hack was not enough. Disable DELAY via ifndef _RUMPKERN in
...
subr_prf until I manage to get all archs in line with a proper MI
signature.
2009-01-02 22:03:00 +00:00
pooka
ff1136dede
We use CPU_INFO_FOREACH here -> include sys/cpu.h
2009-01-02 11:08:32 +00:00
pooka
167269d42c
Include kernel printf routines in rump instead of relying on the
...
magic libc symbol. This also allows to bid farewell to subr_prf2.c
and merge the contents back to subr_prf.c. The host kernel bridging
is now done via rumpuser_putchar().
2009-01-02 02:54:13 +00:00
pooka
2577e51e90
revert previous, disabled aliasing in offending build
...
(XXX: two evil casts in the original)
2009-01-01 22:17:55 +00:00
pooka
44a89fbb01
Squelch type-punning warnings with void * casts. We are allowed
...
to do this because the pointers do not have aliases.
2009-01-01 21:35:22 +00:00
pooka
f671460fc0
_KERNEL_OPT
2009-01-01 19:10:17 +00:00
pooka
0e983d35cf
* unexpose kprintf locking internals
...
* migrate from simplelock to kmutex
Don't bother to bump kernel version, since nothing outside of subr_prf
used KPRINTF_MUTEX_ENXIT()
2009-01-01 15:10:20 +00:00
ad
a190625ad7
softint_disestablish: don't pass softint_lock to kpause, it's not held.
2009-01-01 12:26:46 +00:00
reinoud
339f5c5772
Add ISO partition detection enabling auto-detection of iso9660 and UDF
...
partitions on optical media like CD/DVD/BD but also on all other media if
there is no NetBSD disklabel or MBR label.
Also fix cd's readdisklabel arguments so the ioctl's arrive at the right
device (!) and update its default label to make more sense.
2008-12-30 19:38:36 +00:00
pooka
8583cae233
Rename specfs_lock as device_lock and move it from specfs to devsw.
...
Relaxes kernel dependency on vfs.
2008-12-29 17:41:18 +00:00
pooka
3cf15d2f4e
Librate sysctl_setup_func typedef from the clutches of _MODULE and
...
stuff it in kern_sysctl.c where its only sensible use is.
2008-12-29 15:35:02 +00:00
ad
ab21fd5c10
Don't need to hold kernel_lock for most of this (and not into the swapper!).
2008-12-29 13:40:11 +00:00
ad
ed25a64ddf
Don't do KM_NOSLEEP allocations.
2008-12-29 12:52:50 +00:00
reinoud
2b4d7aaa9a
When reusing a directory free space slot and thus finding it on the free space
...
list, do free it back into the pool!
2008-12-28 17:11:26 +00:00
christos
55d90fae57
- Don't autounload modules loaded during boot. In my case, ffs got unloaded
...
because my cdrom takes too long to initialize.
- Consistently print error messages in all error cases.
2008-12-28 03:21:02 +00:00
rmind
d2fec2fc4f
sys_shmat: initialise shmid of shmmap entry earlier. Now error path,
...
i.e. shm_delete_mapping, wont use random value.
2008-12-22 13:49:17 +00:00
cegger
beb4d1e5cc
undo turn malloc flags to enums.
...
Requested by christos.
Keep malloc flag defines in kernel section.
2008-12-21 17:49:55 +00:00
ad
74302d0fab
Redo previous. Don't count deferrals due to raised IPL. It's not that
...
meaningful.
2008-12-21 13:26:58 +00:00
ad
ff0249c394
Prevent a potential deadlock from a multithreaded process doing:
...
t1 dup2(0, 1)
t2 dup2(1, 0)
2008-12-21 10:25:00 +00:00
ad
7ca206492d
Don't try to sync if panicing:
...
- It doesn't work and a dead system that can't be reset from the console is
worse than a system that has painced and rebooted. If you can make it work
reliably please do so.
- If the system is paniced there is every reason to suspect VM structures
and the contents of the buffer cache.
2008-12-21 10:23:10 +00:00
ad
6d599f4e1f
- Fix a bug where we trashed descriptor zero in the old open files array
...
while ironically trying to preserve the same during copy. Would only have
occurred if a multithreaded program expanded the descriptor table and,
within a tiny window of exposure, another thread in the program tried to
access descriptor zero.
- Convert to use kmem_alloc/kmem_free.
2008-12-21 09:58:22 +00:00
ad
82ae73e0b6
Don't increment the 'kpreempt defer: IPL' counter if a preemption is pending
...
and we try to process it from interrupt context. We can't process it, and
will be handled at EOI anyway. Can happen when kernel_lock is released.
2008-12-20 23:06:14 +00:00