Commit Graph

90178 Commits

Author SHA1 Message Date
plunky d43f6db858 struct callout => callout_t 2007-11-03 17:39:14 +00:00
plunky 644e69cd47 "struct callout" -> callout_t
don't use callout_reset()
do use callout_destroy()
2007-11-03 17:20:17 +00:00
dsl d1041e432f Linux doesn't have a SYS_syscall system call (it is all done in libc), and
definitely doesn't have SYS___syscall.
Kill all the code - now matching i386/i386/linux_syscall.c
There is also no point using a switch statement (and it's unpredictable
jump indirect) to save a few memory copies.
2007-11-03 12:58:04 +00:00
dsl 979f6f87e5 Merge linux_syscall_fancy and linux_syscall_plain. 2007-11-03 12:21:20 +00:00
dsl b4acb99fdd Remove now-redundant #if 2007-11-03 12:20:44 +00:00
christos cf1c3898fb Add ffs, fls and integer log function.
ToDo: Add a <machine/bitops.h> include for architecture optimized overrides.
2007-11-02 21:01:29 +00:00
plunky b9a4fe408b constify hci_devname 2007-11-02 20:27:14 +00:00
plunky 812fa1c5a1 do not embed acpi device names in the sensor names
fake it in the compat code for the old envsys API
2007-11-02 19:21:29 +00:00
xtraeme a8262a855b u_quad_t -> uint64_t as suggested by thorpej@. 2007-11-02 19:09:22 +00:00
xtraeme 7509a8c524 KNF, MALLOC -> malloc, u_intXX_t -> uintXX_t. 2007-11-02 08:38:37 +00:00
xtraeme eba879f813 Make bd_size and bv_size u_quad_t rather than size_t, for large RAID
volumes. Reported a while ago by mhitch@.
2007-11-02 08:37:06 +00:00
nisimura 72585a9257 - extend nifdv struct to have NIF nickname for rootdev.
- a small mod. for bitbang'ing practice.
- DEVTOV() band-aid.
2007-11-02 02:31:11 +00:00
dsl 22d623b6d6 Kill syscall_fancy().
With a the result of trace_is_enabled() cached in p->p_trace_enabled the
cost of 2 correctly predicted branches is insignificant.
Reorder prologue slightly, should reduce memory stalls.
2007-11-01 22:48:14 +00:00
dsl e1149dcc98 Use one byte of p_pad1[] for p_trace_enabled where xxx_syscall_intern()
can save the result of trace_is_enabled() so that it can be efficiently
determined on every system call without having 2 separate syscall functions.
The death of syscall_fancy() looms.
2007-11-01 21:57:44 +00:00
dsl 61a8670cdb Shave cycles of syscall entry by adding __predict_false() to LWP_CACHE_CREDS() 2007-11-01 21:54:10 +00:00
dyoung 08fdf3b0de Change a few malloc(9) + memset(3) pairs to malloc(..., ...|M_ZERO). 2007-11-01 20:37:48 +00:00
dyoung 122b86e247 De-__P(). 2007-11-01 20:33:56 +00:00
dyoung 6cc9c359e3 De-__P(). frag6.c has always defined IN6_IFSTAT_STRICT, so remove
the definition and trim to the defined(IN6_IFSTAT_STRICT) code.
No functional change intended.
2007-11-01 20:33:00 +00:00
jnemeth 3837ebf32f PR/37259 - Daniel Neri -- typo in EXAR XR17C158 description 2007-11-01 18:18:37 +00:00
xtraeme 7fbec51a9c Revert previous, thanks wikipedia :-) 2007-11-01 13:54:28 +00:00
xtraeme 42e2977633 Fix typo "iff" -> "if" reported by leot via freenode@irc. 2007-11-01 13:48:52 +00:00
bjs d81bca762e Until I have a chance to further evaluate and re-work the locking here,
change from an adaptive to spin mutex @ IPL_TTY.  This seems to mitigate
or eliminate a lot of locking-related issues (such as a hang when running
glxgears under AIGLX).  Tested by me and Vincent <10.50@free.fr>.

In this code, we have three locks: irq, dma, and device.  If anyone has
any thoughts on how to improve this situation, e.g. by using different
lock types/priorities/soft interrupts/etc. for different locks, please
share them with me.

NOTE: I've had the best results thusfar using Mesa 7.0.2-rc1 (r300 users
could even try the r300 driver code from the master branch) and xorg-server
1.4+patches from GIT.
2007-11-01 13:20:04 +00:00
tsutsui a3bf2627a4 Fix some random LCD corruption on cobalt:
- make sure to set HD_ROW1_ADDR before putting characters at the first line
  in hd44780_ddram_redraw()
- use memmove(9) rather than bcopy(9) for possibly overlapped copies
2007-11-01 13:05:32 +00:00
jnemeth d43d105081 typo 2007-11-01 10:07:45 +00:00
hannken 75bdfc0dac Avoid doing bawrite to initialize inode block while holding cylinder
group block buffer busy.  If filesystem has any active snapshots, bawrite
can come back trying to allocate new snapshot data block from the same
cylinder group and cause deadlock.

From FreeBSD Rev. 1.117
2007-11-01 06:31:59 +00:00
oster ba0b8a3b17 Implement support for drvctl in RAIDframe. Thanks to jnemeth@ for
initial patch.
2007-11-01 04:11:22 +00:00
oster 77002eb972 This should be a mutex_enter() instead of a mutex_exit().
Fixes:
Mutex error: mutex_vector_exit: assertion failed: MUTEX_OWNER(mtx->mtx_owner) == curthread
...
mutex_abort(c0aba23c,c07bf8b0,c09c9164,bfbfee34,10) at netbsd:mutex_abort+0x36
mutex_vector_exit(c0aba23c,10,c0aba23c,ca8efc6c,ca8f8540) at netbsd:mutex_vector_exit+0xe2
compat_20_sys_getfsstat(ca8f8540,cb243c48,cb243c68,805eb24,805e000) at netbsd:compat_20_sys_getfsstat+0x1bf
...
2007-11-01 03:49:52 +00:00
dsl 2d1f4c35c9 Fallout from fixing the linux32 system calls to use the correct kernel
functions and parameter layouts.
2007-10-31 22:40:25 +00:00
dsl 36acfb90ed regen 2007-10-31 22:39:17 +00:00
dsl 16c3c9c541 This file must use the netbsd32_xxx() system calls, not the sys_xxx() ones.
The latter actually function (due to luck) for calls with one argument,
but will fail badly if more than one is required.
Noticed as an error in the ktrace outut by Nicolas Joly, reported on
tech-kern.
2007-10-31 22:35:34 +00:00
joerg 9a8b72309e The only alternative to the GENERIC kernel with ACPI is current
GENERIC_LAPTOP, which is not derived from that and misses a lot of
drivers and options. The NOACPI kernel doesn't have this issue, so make
it more useful by including apm and also the PCIBIOS fixup options
needed on many non-ACPI system. Tested by freza@ on an older system
where APM and ne@PCMCIA had issues in the past and which works fine with
-current.
2007-10-31 21:18:46 +00:00
njoly beab9df119 Regen for syscalls cleanup. 2007-10-31 21:06:19 +00:00
njoly 6f36d09e87 compat linux32 syscalls cleanup.
With stackgap and CHECK_ALT_xxx removal, some linux32 and netbsd32
syscalls are now identical.
To avoid code duplication, remove the linux32 definition and use the
netbsd32 one (no functional change).
2007-10-31 21:04:02 +00:00
pooka 55ace5d0d5 Include bufq priority implementations also and link librump with
--whole-archive since the bufq priorities use link sets.
2007-10-31 17:53:38 +00:00
pooka 6cc957f067 "Support" splhigh(), requested by reinoud. But the spl emulation
code needs to be actually written soon ...
2007-10-31 16:00:26 +00:00
pooka 87f9ee4c42 Make it possible to run rumps multithreaded. This brings real
locking and makes it possible to run file systems which create
threads.  It also makes rump file system behaviour better match
file system behaviour in the kernel.
2007-10-31 15:57:19 +00:00
reinoud ed2d3954ca Fix panic when the VAT couldn't be found. It would refer an stale
udf_node->vnode.
2007-10-31 15:42:13 +00:00
pooka 38bc08f047 Wrap parts dealing with kernel_lock behind #ifndef _RUMPKERNEL.
I don't like doing this, but there's too much pain to get this file
to compile clean due to how SPINLOCK_{BACKOFF,SPIN}_HOOK and
mb_write() are spread out in weird weird places throughout MD code.
2007-10-31 15:36:07 +00:00
tsutsui a0220d0607 - use chaned mode for RX descs and allocate only one desc per each cacheline
to avoid possible race condition between CPU writeback vs DMA write
- remove unnecessary FS and LS bits from RxD->xd0
  (sys/dev/ic/tulipvar.h sets them but maybe they are ignored?)
2007-10-31 13:30:46 +00:00
jnemeth a04503ddd4 PR/37251 - Brian Buhrow -- FORCE_LBA48 on seagate drives larger then 1TB 2007-10-31 09:51:20 +00:00
njoly 99e027abbb Remove extra return 2007-10-31 09:16:55 +00:00
xtraeme decb1bb096 regen 2007-10-30 20:58:57 +00:00
xtraeme 7de6799988 Erm fix previous, it's Intel IOP333 not 332. 2007-10-30 20:58:38 +00:00
xtraeme bd180c262f regen 2007-10-30 20:44:31 +00:00
xtraeme 2f4ec3ec94 Add Intel IOP332 A/B Segments. 2007-10-30 20:44:12 +00:00
joerg 2cdafd23af Add another Dell machine where the head phone event needs to be handled. 2007-10-30 19:36:10 +00:00
tsutsui 4501e92c93 Fix my stupid bug in cache flush code and remove one kludge for it. 2007-10-30 16:38:54 +00:00
tsutsui 33b1553ffb Add support for netboot via tlp0 with standalone tlp(4) driver
taken from arch/sandpoint/stand/netboot.
There are still some kludge but it just works on RaQ and RaQ2.
2007-10-30 15:07:07 +00:00
xtraeme 4fb0cdd56b regen 2007-10-30 12:39:48 +00:00
xtraeme 97f9e12807 Areca ARC SATA RAID Controllers, from OpenBSD. 2007-10-30 12:39:24 +00:00