John Baldwin
67d1e9191e
Use kern_settimeofday() to avoid stackgap use.
2005-03-31 22:58:37 +00:00
John Baldwin
48052f99e7
- Use a custom version of copyinuio() to implement readv/writev using
...
kern_readv/writev.
- Use kern_settimeofday() and kern_adjtime() rather than stackgapping it.
2005-03-31 22:58:13 +00:00
John Baldwin
3dde27da5e
- Use a custom version of copyinuio() to implement readv/writev using
...
kern_readv/writev.
- Use kern_sched_rr_get_interval() rather than the stackgap.
2005-03-31 22:57:21 +00:00
John Baldwin
50b584201d
Use a custom version of copyinuio() to implement osf1_{read,write}v() via
...
kern_{read,write}v().
2005-03-31 22:56:14 +00:00
John Baldwin
fe24ab5fc5
Actually commit the code for kern_sched_get_rr_interval().
2005-03-31 22:54:48 +00:00
Peter Wemm
8d2046fa1e
Since the question keeps coming up, explain why the -mno-sse etc switches
...
are there and that it does not have an effect on user applications.
2005-03-31 22:53:58 +00:00
John Baldwin
b88ec951e1
Implement kern_adjtime(), kern_readv(), kern_sched_rr_get_interval(),
...
kern_settimeofday(), and kern_writev() to allow for further stackgap
reduction in the compat ABIs.
2005-03-31 22:51:18 +00:00
John Baldwin
e392175600
Bring back the WITNESS_WARN() check to _STOPEVENT() as all the callers have
...
been fixed for quite a while now.
2005-03-31 22:50:14 +00:00
John Baldwin
ea2b9b3e36
- Denote a few places where kobj class references are manipulated without
...
holding the appropriate lock.
- Add a comment explaining why we bump a driver's kobj class reference
when loading a module.
2005-03-31 22:49:31 +00:00
John Baldwin
2945387fee
Drop a bogus mp_fixme(). Adding a lock would do nothing to reduce userland
...
races regarding changing of jail-related sysctls.
2005-03-31 22:47:57 +00:00
John Baldwin
db8a98353d
- Fix some sign extension problems with implicit 32 to 64 bit conversions.
...
- Fix the mmap2() wrapper to not truncate high addresses.
Submitted by: Christian Zander
2005-03-31 22:47:18 +00:00
Sam Leffler
aa083c3dc6
plug resource leak
...
Submitted by: mdodd
Noticed by: Coverity Prevent analysis tool
2005-03-31 21:58:53 +00:00
Sam Leffler
23691262f0
fix potential null ptr deref
...
Noticed by: Coverity Prevent analysis tool
2005-03-31 21:55:09 +00:00
Sam Leffler
001ea8fba8
avoid null ptr deref
...
Noticed by: Coverity Prevent analysis tool
2005-03-31 21:53:21 +00:00
Sam Leffler
aadbcea379
avoid use after free
...
Submitted by: gibbs
Reviewed by: mdodd
Approved by: Coverity Prevent analysis tool
2005-03-31 21:43:19 +00:00
Sam Leffler
ec04feb21b
avoid use after free
...
Submitted by: gibbs
Reviewed by: mdodd
Noticed by: Coverity Prevent analysis tool
2005-03-31 21:42:49 +00:00
Bill Paul
2c87b2b73f
Apparently I'm cursed. ndis_findwrap() should be searching ndis_functbl,
...
not ntoskrnl_functbl.
2005-03-31 21:20:19 +00:00
David E. O'Brien
503e759c5d
MFR5: rev 1.421.2.6: Enable support for 32-bit Linux binaries by default.
...
There are too many questions in freebsd-amd64@ about how to enable Linux
support that it seems a required piece of functionality. Thus we should
just have it on by default.
2005-03-31 20:55:10 +00:00
John Baldwin
b80ed61487
Don't recursively panic when we call mi_switch() in a critical section,
...
even though calling mi_switch() after a panic is likely a bug anyway as
the recursive panic only serves to make things worse.
2005-03-31 20:36:44 +00:00
Scott Long
d0885ac3cf
Glue the arcmsr driver into the tree.
2005-03-31 20:21:43 +00:00
Nate Lawson
965a34fb62
Always free the returned env pointer even it doesn't indicate we're in
...
verbose mode.
Found by: Coverity Prevent (via sam)
2005-03-31 19:07:26 +00:00
Nate Lawson
71ab130c9b
Add a check for cpufreq_unregister() being called with no cpufreq device
...
active. Note that the logic indicates this should not be possible so
generate a warning if this ever happens.
Found by: Coverity Prevent (via sam)
2005-03-31 18:56:54 +00:00
Nate Lawson
0b755d6554
Additions to .PATH are cumulative so referencing $.PATH is not helpful.
...
Informed by: ru
2005-03-31 18:51:06 +00:00
Scott Long
f1c579b1ec
Add the Areca SATA RAID driver (arcmsr). This supports the ARC-11xx and 12xx
...
series of controllers. Areca provides a CLI and HTTP management tool for
FreeBSD/i386 and FreeBSD/amd64 on their website. Many thanks to Areca for
their support of FreeBSD. Thanks also to Mike Tansca and Sentex Communications
for donating hardware.
Obtained from: Erich Chen <erich at areca com tw>
2005-03-31 18:19:55 +00:00
Scott Long
69bbb4fe70
If resource allocation fails, we could wind up freeing the cdev without it
...
being allocated. Add a simple check for this.
Submitted by: yongari
2005-03-31 17:16:40 +00:00
Sam Leffler
fe234894e5
reclaim mbufs in failure cases
...
Submitted by: Tai-hwa Liang
2005-03-31 16:39:18 +00:00
Bill Paul
621b33fc5b
Fix an amd64 issue I overlooked. When setting up a callout to
...
ndis_timercall() in NdisMInitializeTimer(), we can't use the raw
function pointer. This is because ntoskrnl_run_dpc() expects to
invoke a function with Microsoft calling conventions. On i386,
this works because ndis_timercall() is declared with the __stdcall
attribute, but this is a no-op on amd64. To do it correctly, we
have to generate a wrapper for ndis_timercall() and us the wrapper
instead of of the raw function pointer.
Fix this by adding ndis_timercall() to the funcptr table in subr_ndis.c,
and create ndis_findwrap() to extract the wrapped function from the
table in NdisMInitializeTimer() instead of just passing ndis_timercall()
to KeInitializeDpc() directly.
2005-03-31 16:38:48 +00:00
Søren Schmidt
5a5b148dd8
Change the ata_* methods to use a channel device instead of a
...
controller device. This helps when there is no controller parent
to a channel (PPC port).
2005-03-31 15:05:40 +00:00
Poul-Henning Kamp
f4f6abcb4e
Explicitly hold a reference to the cdev we have just cloned. This
...
closes the race where the cdev was reclaimed before it ever made it
back to devfs lookup.
2005-03-31 12:19:44 +00:00
Poul-Henning Kamp
9477d73e32
cdev (still) needs per instance uid/gid/mode
...
Add unlocked version of dev_ref()
Clean up various stuff in sys/conf.h
2005-03-31 10:29:57 +00:00
Poul-Henning Kamp
eb151cb989
Rename dev_ref() to dev_refl()
2005-03-31 06:51:54 +00:00
Søren Schmidt
0da27c6206
Correct the PCI ID for the SiS 965, and add support for the SATA part
...
that was left our by accident.
Prodded by: Patrik Backlund
2005-03-31 06:25:14 +00:00
Nate Lawson
07b68f9266
Remove check of numpst to allow more K8 variants to attach. The other
...
checks, including cpuid_is_k7(), will catch CPUs that really don't support
this method.
Submitted by: Bruno Ducrot
Tested by: Jari Kirma (kirma cs.hut.fi)
2005-03-31 06:11:04 +00:00
Jeff Roberson
278c5a6efa
- Fix botched LK_NOWAIT removal. I mistakenly thought this compiled as
...
part of GENERIC.
2005-03-31 05:58:14 +00:00
Jeff Roberson
aa7ba42796
- FFS supports shared locks, clear LK_NOSHARE from our vnode locks.
...
Sponsored by: Isilon Systems, Inc.
2005-03-31 05:23:20 +00:00
Jeff Roberson
e451d879a1
- Disable vfs shared locks by default. They must be specifically enabled
...
on filesystems which safely support them. It appears that many
network filesystems specifically are not shared lock safe.
Sponsored by: Isilon Systems, Inc.
2005-03-31 05:22:45 +00:00
Jeff Roberson
ec3db02a3e
- Set LK_NOSHARE for snapshot locks. snapshots require exclusive only
...
access.
- Remove the hack from ffs_lock() to implement LK_NOSHARE in a ffs
specific way.
Sponsored by: Isilon Systems, Inc.
2005-03-31 05:21:17 +00:00
Jeff Roberson
c4c0ec5ba7
- Add a LK_NOSHARE flag which forces all shared lock requests to be
...
treated as exclusive lock requests.
Sponsored by: Isilon Systems, Inc.
2005-03-31 05:18:19 +00:00
Sam Leffler
6e3a31bd67
check copyin return value (and while we're at it copyout too)
...
Noticed by: Coverity Prevent analysis tool
2005-03-31 05:15:27 +00:00
Sam Leffler
5587897d92
remove useless ptr check; cur_column can never be null
...
Noticed by: Coverity Prevent analysis tool
2005-03-31 05:00:31 +00:00
Sam Leffler
fd1700dc03
handle potential null ptr
...
Noticed by: Coverity Prevent analysis tool
2005-03-31 04:58:10 +00:00
Jeff Roberson
108645dba2
- apause() has been retired, remove LK_NOPAUSE as well.
...
Sponsored by: Isilon Systems, Inc.
2005-03-31 04:39:33 +00:00
Jeff Roberson
f247a5240d
- LK_NOPAUSE is a nop now.
...
Sponsored by: Isilon Systems, Inc.
2005-03-31 04:37:09 +00:00
Jeff Roberson
ea124bf597
- LK_NOPAUSE is a nop now.
...
Sponsored by: Isilon Systems, Inc.
2005-03-31 04:27:49 +00:00
Jeff Roberson
b641353e3a
- Remove apause(). It makes no sense with our present mutex implementation
...
since simply unlocking a mutex does not ensure that one of the waiters
will run and acquire it. We're more likely to reacquire the mutex
before anyone else has a chance. It has also bit me three times now, as
it's not safe to drop the interlock before sleeping in many cases.
Sponsored by: Isilon Systems, Inc.
2005-03-31 04:25:59 +00:00
Warner Losh
934761ae4b
atapicam is broken, so comment it out since it may take a while to fix it.
2005-03-31 03:21:21 +00:00
Peter Grehan
05a016a3e1
Catch up with ATA-mkIII
2005-03-31 01:57:51 +00:00
Peter Wemm
58aa36f31e
Checkpoint today's tidy-up of the WIP disassembler. It now agrees with
...
objdump --disassemble when disassembling itself in userland. I've added
the cmovCC instruction group and tweaked a bunch of size sensitive array
indexes to either fix my mistakes and/or force it to work by any means
necessary.
I'm committing this because it is usable enough to see what is going on
when single stepping via ddb.
It might still tell lies, but its lies will be far more subtle now. I'm
not sure that this is a good thing or not.
2005-03-30 22:57:41 +00:00
Peter Wemm
dc37635d6a
Commit my checkpoint of db_disasm.c that I hacked to understand some amd64
...
instructions as it was when I dropped it back in May 31, 2003. I'm
committing this as an intermediate stage because back then I thought I
understood what I was doing with this file.
2005-03-30 22:52:27 +00:00
Sam Leffler
a8d7e0f6ab
close unlikely race
...
Submitted by: Michael Wong
2005-03-30 20:30:48 +00:00