Commit Graph

91801 Commits

Author SHA1 Message Date
dsl 482bdf6cb9 Add FILE_LOCK() and FILE_UNLOCK() defines.
Change a comment to make it clear that if code doesn't call FILE_USE()
it should call FILE_UNLOCK() instead.
2008-01-05 18:52:16 +00:00
christos d4fda54fa5 PR/37696: Paul Ripke: add large read / readahead support (Introduce run-length
detection to msdosfs_bmap(), from FreeBSD)
2008-01-05 18:42:14 +00:00
ad 21946bba05 Make acct_lock a rwlock. 2008-01-05 18:23:30 +00:00
ad 63baaccb6d Serialize calls to tc_windup(). 2008-01-05 18:00:37 +00:00
ad a5edcb2c82 Missing arg to cv_timedwait(). 2008-01-05 17:38:50 +00:00
dsl 8d35d4af30 Remove #define DISK_DEBUG left in by mistake 2008-01-05 15:28:43 +00:00
ad 4eefe3e642 Export log_lock. 2008-01-05 14:07:26 +00:00
martin b432cf5a27 Include lock.h, as we are using memory barrier macros defined there. 2008-01-05 13:27:27 +00:00
dsl b8bcdbe9e6 Don't pass 'curlwp' into trace_enter() and trace_exit(). 2008-01-05 12:53:52 +00:00
ad 31ef469fe7 Work around com hangs with pcmcia. PR kern/37462. 2008-01-05 12:44:13 +00:00
dsl 463af8509e Don't pass curlwp into process_stoptrace() 2008-01-05 12:41:43 +00:00
ad fbed3be26c Make compile. 2008-01-05 12:40:34 +00:00
ad 212c50dd1b Need sys/lock.h for SPINLOCK_SPIN_HOOK. 2008-01-05 12:39:27 +00:00
ad ac85866313 simple_lock_only_held() is gone. 2008-01-05 12:31:39 +00:00
dsl c9848793d9 Don't pass l (== curlwp) into the system call trace code.
Delete inclusion of opt_syscall_debug.h into systm.h, every kernel object
file doesn't need to depend on opt_syscall_debug.h!
2008-01-05 12:30:47 +00:00
dsl ba7a604397 Reorder the amd64 trapframe (swap rcx/r10 and add 4 spare slots after r9).
This allows the syscall code to pass the syscall args directly from the
trapframe instead of copying them to a separate structure.
It is still possible that some lurking code still assumes that
'struct trapframe', 'struct mcontext' and 'struct reg' all have the
registers in the same order, but I've fixed enough of them to get gdb working.
2008-01-05 12:08:50 +00:00
dsl 77fe68004d Do not assume that 'struct reg' and 'struct trapframe' have the same
layout.  Instead copy the fields individually.
2008-01-05 12:01:34 +00:00
he 30542539fe Now that compat/hpux is gone, this has no chance of building, so
remove it as well.
2008-01-05 10:24:11 +00:00
dan 6b2d0ee56c use more includes, take them from the right place
xtraemok
2008-01-05 04:50:05 +00:00
riz f28eb587da Add #include <sys/simplelock.h> 2008-01-05 04:03:01 +00:00
matt acb0b175a3 Add #include <sys/simplelock.h> 2008-01-05 02:47:03 +00:00
ad c29520cb1a Fix includes. 2008-01-05 00:31:50 +00:00
ad 0c8143169b Fix includes 2008-01-05 00:22:34 +00:00
ad fee5b86dc3 Don't need sys/lock.h 2008-01-05 00:19:46 +00:00
dyoung 1c6cf449e1 Constify. 2008-01-04 23:35:00 +00:00
dsl c18b957cb0 Repeat after me, don't edit files (even to update comments) between test
build and committing.
2008-01-04 23:29:54 +00:00
dyoung f9c1ba02ee Constify a bit. 2008-01-04 23:28:07 +00:00
dyoung a4455600d4 Replace rtcache_down() with rtcache_validate() and update rtcache_down()
uses.
2008-01-04 23:26:44 +00:00
dsl abceae9908 Change the way that the trap/intr/syscall frames and the __gregset_t[]
indexes are defined so that only a single list of the registers is used.
The code no longer relies on the two structures matching.
There should be no binary change.
2008-01-04 23:04:53 +00:00
ad 87a9501131 Fix includes. 2008-01-04 22:54:46 +00:00
joerg 700e393dca time.tv_sec -> time_second 2008-01-04 22:43:45 +00:00
dyoung 46aba2a3d0 Remove superfluous #if (NPCPPI > 0). 2008-01-04 22:28:20 +00:00
ad 8c68ad876e Fix headers. 2008-01-04 22:17:04 +00:00
ad 0fbfbb4408 Correct headers. 2008-01-04 22:15:58 +00:00
ad c9e4f09710 Pull in the right headers. 2008-01-04 22:15:08 +00:00
ad fb1e16b417 Need sys/device.h 2008-01-04 22:13:55 +00:00
dyoung 482c583bd7 Move #endif to the place where it belongs. Thanks, Chavdar Ivanov,
for noticing this.
2008-01-04 22:10:34 +00:00
joerg e36a3212f8 Catch up with rename of buf's b_un.b_addr -> b_data. 2008-01-04 22:04:59 +00:00
ad 225df3f88d Don't pull in unrelated gunk. 2008-01-04 22:03:25 +00:00
joerg 547d94f35c Add missing sys/device.h. 2008-01-04 21:58:51 +00:00
ad e6ab480d6d Header cleanup. 2008-01-04 21:58:03 +00:00
joerg 84487ad85b Needs sys/simplelock.h. 2008-01-04 21:56:36 +00:00
ad 8a9b6ca32a Need sys/lock.h for kernel_lock. 2008-01-04 21:54:49 +00:00
ad 0269f24d50 Don't pull in unrelated headers. 2008-01-04 21:54:05 +00:00
ad 0becf21618 Include sys/device explicitly. 2008-01-04 21:53:51 +00:00
ad 910c8a56ab Use new style memory barriers. 2008-01-04 21:53:00 +00:00
ad 070e98eb7b Pull in sys/atomic.h for memory barriers. 2008-01-04 21:52:48 +00:00
ad f142225fa0 B_BAD has done nothing for a long time. 2008-01-04 21:48:05 +00:00
ad edcd8e4c68 More header file cleanup. 2008-01-04 21:47:16 +00:00
joerg a547a2785a Use time_second instead of time.tv_sec. 2008-01-04 21:43:58 +00:00
xtraeme 0f546319ca sys/simplelock.h is required now. 2008-01-04 21:33:17 +00:00
xtraeme 9bb6b94d89 sys/lock.h is required now. ok ad 2008-01-04 21:31:06 +00:00
xtraeme e9b20f72c4 sys/simplelock.h is required now. 2008-01-04 21:24:22 +00:00
ad 0664a0459b Start detangling lock.h from intr.h. This is likely to cause short term
breakage, but the mess of dependencies has been regularly breaking the
build recently anyhow.
2008-01-04 21:17:40 +00:00
ad 46a018d0e2 More linker stuff 2008-01-04 21:06:37 +00:00
xtraeme 29f483410f machine/cpufunc.h is required now. 2008-01-04 20:42:25 +00:00
christos 5fa6e7c2d4 add missing includes 2008-01-04 20:38:01 +00:00
uwe d02168ab21 There's no need to pull in machine/intr.h here. 2008-01-04 20:10:12 +00:00
dsl e3c05d1c5d Allow the boot code to use the disklabel 'faked up' from the mbr.
Should allow bootxx_fat16 (and bootxx_msdos etc) to boot from drives that
don't contain a netbsd disklabel.
2008-01-04 20:05:46 +00:00
joerg 7a170eb0b2 Add missing mutex for cv_timedwait. 2008-01-04 19:45:54 +00:00
ad c86e36f12b Don't pull in sys/simplelock.h, it's not needed. 2008-01-04 18:40:04 +00:00
ad 48160965f3 sys/lock.h isn't needed here. 2008-01-04 18:38:31 +00:00
ad b31bcb4d13 don't need sys/lock.h 2008-01-04 18:25:42 +00:00
ad f479e1b23b - Always include kprintf_slock.
- sys/lock.h -> sys/simplelock.h
2008-01-04 18:21:06 +00:00
ad 35dd6c193a sys/lock.h -> sys/simplelock.h 2008-01-04 18:18:31 +00:00
uwe bf6001ba0f G/c bogus includes that do nothing but add circular dependency between
intr.h and mutex.h
2008-01-04 18:03:01 +00:00
ad c0da486b16 Linker stuff for powerpc. 2008-01-04 18:00:16 +00:00
kent e93ecba847 shorten mixer-input names by mixer-name automatic generation
PR/37273
2008-01-04 17:00:05 +00:00
yamt 1c6ebd43e5 fix a bug in the previous. (per-cpu tss change)
keep iopl in pcb so that it won't lost.
2008-01-04 16:38:46 +00:00
ad b8e6bdeab5 Linker bits for sparc64.
XXX Does not handle 32-bit kernels.
2008-01-04 16:34:41 +00:00
ad 694c00b8fe Linker bits for arm. 2008-01-04 16:23:39 +00:00
ad 914b753523 Linker bits for alpha. 2008-01-04 16:19:25 +00:00
ad 6f7f8905b7 Adjust ci_idepth for cpu_intr_p(). 2008-01-04 16:09:54 +00:00
yamt 35d91ae479 i386:
- make tss per-cpu.  this considerably speeds up context switch for,
	  at least, pentium4, where ltr instruction seems very slow.
i386, xen:
	- kill cpu_maxproc.
kvm86:
	- adapt to per-cpu tss.
	- cleanup and simplify.
	- move kvm86_mp_lock to more meaningful place.
	- disable preemption during a call.
2008-01-04 15:55:28 +00:00
yamt b860f867c0 use device_xname. 2008-01-04 15:44:58 +00:00
pooka 933a1a1af1 Politely refuse to mount a file system which says its FAT size is
zero - our implementation can't handle it (how sensible handling
a case like that would be is a whole other debate).

fixes panic reported by Jukka Salmi on current-users
2008-01-04 14:58:16 +00:00
ad 4c5e4edd5c Add a kobj_stat() to get basic info about the object, and some other
minor changes.
2008-01-04 14:53:32 +00:00
ad 75209c4d35 Fix it. 2008-01-04 14:51:17 +00:00
ad 1dd75d2865 Add a simple in-kernel linker, derived from FreeBSD's link_elf_obj.c. Needs
more work but is enough to load simple LKMs. amd64 is untested.

Locking is caller provided. This is decoupled from the LKM framework because
kernel modules need not be loaded from the file system - they could be built
into the kernel and referenced via link set.
2008-01-04 12:26:20 +00:00
kent 16504b27b0 simplify conversion rule between device volume values and userland
volume values.  Some mixer values never be 255 by this change.

PR#37274
2008-01-04 12:18:00 +00:00
ad c0cd2b871b Ignore symbols marked undefined. 2008-01-04 11:28:13 +00:00
smb 0cb6d977ab Add calls to pmf_deregister on detach. 2008-01-04 03:56:47 +00:00
martin f0fe5d20cf lk_interlock is a kmutex_t now 2008-01-04 01:11:30 +00:00
simonb 0bab12ba30 Make this compile with DEBUG enabled (fix a printf format, convert to
timecounters).
2008-01-04 01:00:43 +00:00
pooka 9b30791f86 Print "panic: " before panicstr when panicking. 2008-01-04 00:38:24 +00:00
joerg e6f452fd65 Allow saving of up to 4 PCI registers in the IDE code. 2008-01-04 00:27:27 +00:00
dyoung 17b65ff15d Disable pci_disable_retry() and cardbus_disable_retry(), with a
long comment on pci_disable_retry() (cross-referenced at
cardbus_disable_retry()) that explains why.
2008-01-03 23:15:43 +00:00
joerg 28b31e738f Timecounter and generic todr support for pmax. From Garret D'Amore. 2008-01-03 23:02:24 +00:00
joerg 26ecc8b33a Add missing include of dev/clock_subr.h. 2008-01-03 22:35:27 +00:00
jdc 829d5d12dc Print the "banner-name" property (up to the first '(' character), if
it is present, as well as the "name" property.
2008-01-03 21:34:58 +00:00
he 46a379e692 Declare sysbeepdetach(), and protect a small additional section
with #if (NPCPPI > 0).
2008-01-03 21:30:16 +00:00
xtraeme 98d660f7bb Fix indentation. 2008-01-03 21:28:11 +00:00
joerg 02af50dd40 Add assym.h dependency. 2008-01-03 21:17:44 +00:00
joerg c087080661 Missing assym.h dependency. 2008-01-03 20:58:06 +00:00
joerg a8affe0a2c Missing assym.h dependency. 2008-01-03 20:02:22 +00:00
ad 5f56d09078 Bump NKL2_KIMG_ENTRIES to allow for 20MB of kernel.
Well past time for an in-kernel linker...
2008-01-03 19:30:10 +00:00
ad e01dd1a1f8 Use pool_cache. 2008-01-03 19:28:48 +00:00
tron 4ee524a917 Fix perfomance problems for old revisions of the Symbios 53c1030.
Patch supplied by Patrick Welche in PR kern/30531.
2008-01-03 18:16:20 +00:00
pooka 89943d2ace fix vmlocking2 fallout: fstrans_mount/unmount 2008-01-03 18:09:35 +00:00
kent f8415b4922 code cleanup
- use __arraycount
- remove unnecessary M_ZERO flags
2008-01-03 18:00:43 +00:00