Hartmut Brandt
4d52cd1820
Remove a forward declaration that isn't needed anymore.
2005-04-01 16:23:48 +00:00
John-Mark Gurney
5da5a253a5
move the statement about switching power states to just before we do it, so
...
we don't print a false statement if the destination powerstate is
unsupported...
2005-04-01 16:22:50 +00:00
Hartmut Brandt
4bc60ea3fb
Both struct Job and struct Shell are only used inside job.c so there is
...
no need to have them in a header file that is included by other modules.
Move them both into the c-file.
2005-04-01 13:35:35 +00:00
Hartmut Brandt
f54201efce
Style: fix indentation.
2005-04-01 13:25:45 +00:00
Hartmut Brandt
a2e1fc0052
Style: fix indentation.
2005-04-01 13:06:05 +00:00
Hartmut Brandt
bfcf27787a
Style: indentation.
2005-04-01 13:02:17 +00:00
Hartmut Brandt
ab9267be40
Style: Indentation.
2005-04-01 12:42:03 +00:00
Hartmut Brandt
c0489a0689
Style: fix indentation.
2005-04-01 12:31:15 +00:00
Hartmut Brandt
54348124ed
Style: fix indentation.
2005-04-01 11:20:17 +00:00
Hartmut Brandt
5682c1009c
Style: fix indentation.
2005-04-01 11:12:29 +00:00
Dag-Erling Smørgrav
8987631f85
MFi386 (1.610): let TUNABLE_ULONG_FETCH handle the suffix.
2005-04-01 10:59:13 +00:00
Hartmut Brandt
901275d3b7
Style: fix indentation.
2005-04-01 10:53:43 +00:00
Christian Brueffer
2c5bb58d55
Reword the HARDWARE section to include the driver name (important for
...
the hardware notes that are generated from it).
2005-04-01 10:36:09 +00:00
Warner Losh
8d42a36cf1
arcmsr_make_timespec, and arcmsr_getcmos_time appear to be unused, and
...
reference functions that don't exist on at least pc98. #if 0 them
out. This should fix the pc98 tinderbox breakage. Tested only on
i386 and pc98.
2005-04-01 07:15:52 +00:00
Peter Grehan
98cbfce5db
Introduce channel-level setmode newbus method.
...
Thanks to sos for the code re-org that allowed this.
2005-04-01 03:28:55 +00:00
Warner Losh
f8eecc0813
Since there are now more than a couple exceptions to the i386 rule,
...
group them better.
2005-04-01 01:45:03 +00:00
Warner Losh
4358d22911
There's no wl cards for PC98. These are ISA only, and no cbus
...
versions exist, much less having support for it in the wl driver.
Therefore, don't build wlconfig.
2005-04-01 00:57:22 +00:00
Warner Losh
587017fbb1
pcvt doesn't exist on pc98, so don't build pcvt routines that have no
...
value.
2005-04-01 00:32:45 +00:00
Warner Losh
841ed6bb99
There's no acpi in pc98 machines, nor do we build it into the kernel.
...
Therefore, don't build the acpi userland binaries either.
OK'd by: nate
2005-04-01 00:30:42 +00:00
Colin Percival
d5a7659334
Note the passing of Cameron Grant <cg@FreeBSD.org>.
...
Approved by: quiet1
2005-03-31 23:15:14 +00:00
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
Christian Brueffer
6748f93705
Autogenerate device listings for arcmsr(4).
2005-03-31 20:52:27 +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
Christian Brueffer
ad942ef63f
- new sentence, new line
...
- small language fix
2005-03-31 20:35:05 +00:00
Scott Long
d0885ac3cf
Glue the arcmsr driver into the tree.
2005-03-31 20:21:43 +00:00
Scott Long
9c1838012d
Add a manual page for the arcmsr driver.
2005-03-31 19:44:15 +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