perry
dec3c713da
more synchronization with i386:
...
Convert to use common TODR code. Original commit to the x86 port by
gdamore (with fixes from Christos).
2006-09-03 20:34:13 +00:00
perry
e198847487
remove declaration of unused function "spinwait()"
...
Add a bit of whitespace to minimize diffs vs. i386 port
2006-09-03 20:10:19 +00:00
perry
7d97159f05
fix a debug printf that was fixed in the i386 version a while ago.
...
part of synchronizing with the i386 version
2006-09-03 20:05:37 +00:00
perry
dab650c1ac
re-arrange a few things to minimize diffs with the i386 port.
...
We're ultimately going to merge the two.
2006-09-03 19:54:21 +00:00
bouyer
2aee9a0f50
Back out rev 1.149.
...
From various discussion about vndstrategy (see
http://mail-index.netbsd.org/tech-kern/2005/03/29/0034.html
http://mail-index.netbsd.org/tech-kern/2005/03/23/0015.html )
it's not correct to tsleep() in a strategy routine, which may be called from
interrupt context.
Unfortunably this reopens PR/10731, PR/12189, PR/20296, PR/34293
As for what the correct fix it, this needs to be analysed deeper. I suspect
throttling the caller in vnd only hides the problem; the same caller writing
to some other device could exaust all buffers as well. If this driver doesn't
need to allocate buffer this won't cause a deadlock, but it's bad for
performances on systems with e.g. multiple drives. Also, others stacked
block device drivers may also have this issue.
2006-09-03 19:49:34 +00:00
perry
d31581e06a
de-__P etc.
2006-09-03 19:38:08 +00:00
gdamore
6e10864bdd
Oops, forgot to commit __HAVE_GENERIC_TODR. :-)
2006-09-03 19:20:17 +00:00
bouyer
bedc649eed
stop attaching when a bus_dma operation fails, instead of using bogus
...
addresses.
Remplace vtophys() with proper bus_dma(9) use.
This driver now works properly on Xen
2006-09-03 19:06:32 +00:00
bouyer
caeb885a9b
Wrap some printfs in #ifdef DEBUG, as we should not leak memory any more when
...
bus_dma memory allocation fails.
2006-09-03 19:04:20 +00:00
gdamore
77eb82367e
Convert to TODR.
2006-09-03 18:38:46 +00:00
martin
452f35b603
Regen
2006-09-03 18:30:54 +00:00
xtraeme
44522b1f90
* Add support for ICH8 and ICH8M SATA/RAID controllers.
...
* If the controller is in AHCI, ask for SATA IDE mode of operation.
jsg@openbsd says:
"X60/T60 Thinkpads are shipped in AHCI configuration by default,
this makes them work without changing a BIOS option."
Tested by eye of the beholder. From OpenBSD.
Ok'ed tls.
2006-09-03 18:30:35 +00:00
martin
1b5905d05b
Add RASQ3 variant of PL2303 serial
2006-09-03 18:30:23 +00:00
gdamore
57933cb8b6
Convert to MI todr framework.
2006-09-03 18:12:48 +00:00
gdamore
7b0092122f
Update the base time (used when no filesystem or rtc time exists) to 12pm,
...
Jan 1, 2006. This is somewhat arbitrary, but its a heck of a lot better than
mid 1991. :-)
2006-09-03 17:13:04 +00:00
martin
e0c4f3147e
Fix %X in kernel printf, from Arnaud Degroote in PR kern/34459.
2006-09-03 17:06:36 +00:00
bjh21
7c4318304d
Regen
2006-09-03 13:54:27 +00:00
bjh21
e10108c7f2
Nothing in the kernel now tests __HAVE_NWSCONS, so stop defining it everywhere.
2006-09-03 13:51:23 +00:00
skrll
679c7b5e46
Don't lose a page at the end of the 3 segments we uvm_page_physload.
...
(end/avail_end are excluive page numbers - as dicussed on tech-kern)
2006-09-03 13:40:08 +00:00
bjh21
dacb75acff
All ports that use the file do so through files.pckbport, so there's no
...
need to be cautious about including "pckbd.h". This has the side-effect
that ports using pckbd but not defining __HAVE_NWSCONS will now get pckbd
attached as console if they call pckbport_cnattach(), but I don't think
any such ports exist.
2006-09-03 13:23:15 +00:00
bjh21
09bd451486
Switch acorn32 to MI inittodr() etc.
2006-09-03 12:46:57 +00:00
uwe
8089b6b536
Add comments to RCR1 and RCR2 bits.
2006-09-03 12:38:34 +00:00
xtraeme
02fa0947d7
Add support for PDC40519 and PDC40779... from obsd.
2006-09-03 12:18:03 +00:00
xtraeme
4769f26cd2
regen
2006-09-03 12:14:32 +00:00
xtraeme
3a3373ee8e
Add missing PDC20265 device... removed accidentally in previous.
2006-09-03 12:13:56 +00:00
xtraeme
5a91328568
regen
2006-09-03 12:02:53 +00:00
xtraeme
4e23c01c3f
Add some missing devices from Promise and sort them.
2006-09-03 12:02:30 +00:00
bjh21
51b05a4131
Use MI inittodr() and friends.
2006-09-03 11:51:29 +00:00
xtraeme
f42bb991ca
regen
2006-09-03 10:20:13 +00:00
xtraeme
af16e7909e
Add some ICH8 devices... from obsd.
2006-09-03 10:19:26 +00:00
xtraeme
1f20d85504
Conditionalize *_get_bus_clock() functions inside of
...
#ifdef ENHANCED_SPEEDSTEP to fix build when ENHANCED_SPEEDSTEP is not
defined.
Reported by Geoff Wing.
2006-09-03 09:21:26 +00:00
xtraeme
fdcb59bf6d
Add support for nvidia MCP61/65 IDE/SATA Controllers.
2006-09-03 08:42:32 +00:00
xtraeme
bbdb91feca
regen
2006-09-03 08:39:15 +00:00
xtraeme
316d722a4c
Erm forgot to add MCP61/65 SATA Controllers and sort them.
2006-09-03 08:38:52 +00:00
xtraeme
7465ee1052
regen
2006-09-03 08:10:47 +00:00
xtraeme
4b06824243
- Add all pciids for nvidia MCP61/65 controllers, from obsd.
...
- Improve description in all them.
2006-09-03 08:10:18 +00:00
xtraeme
ea4f30c7b7
Add support for MCP61/65 controllers... from obsd.
2006-09-03 07:42:04 +00:00
xtraeme
3a6aed3622
regen
2006-09-03 07:36:34 +00:00
xtraeme
e85b72eeee
- Add nForce MCP61/65 LAN controllers... from obsd.
...
- Improve description in some nForce controllers as well.
2006-09-03 07:36:10 +00:00
christos
92a6344549
add missing initializer
2006-09-03 07:14:47 +00:00
christos
08a78fe175
use c99 initializers
2006-09-03 07:13:46 +00:00
christos
2e139ee910
add missing initializers
2006-09-03 07:08:59 +00:00
christos
6e6fde1336
add missing initializer
2006-09-03 07:07:20 +00:00
christos
db87199efc
use c99 initializers
2006-09-03 07:06:39 +00:00
christos
80d7cf4588
- add missing initializer
...
- add missing function decl
2006-09-03 07:05:16 +00:00
christos
bbf2deb35f
- add missing initializer
...
- inline comes first
2006-09-03 07:02:54 +00:00
christos
0b7c79ac7b
add missing initializers
2006-09-03 07:00:48 +00:00
christos
2c3642e00f
use c99 initializers
2006-09-03 06:53:08 +00:00
christos
644f53e4e9
add missing initializers
2006-09-03 06:51:04 +00:00
xtraeme
7658c6d89f
Update the enhanced speedstep driver and sync the code with OpenBSD:
...
est.c:
* Use a quintuplet (vendor, MHz_hi, mV_hi, MHz_lo, mV_lo } to match
CPUs more correctly than parsing the brand string.
* Add support for a bunch of models.
* Create a fake table on the fly if the CPU is unknown (there's no
table for it) with the current/highest/lowest frequency.
specialreg.h:
* Add some MSRs needed to get the bus clock value.
identcpu.c:
* Add functions specific to Pentium III, Pentium M and Pentium 4 to
get the bus clock value.
Note that the new fake table code from Simon Burge is not included on
this commit.
Ok'ed by simonb and dogcow.
2006-09-03 06:49:57 +00:00
christos
ce2bae8870
comment out empty code
2006-09-03 06:49:30 +00:00
christos
94de7229ef
use c99 initializers
2006-09-03 06:48:26 +00:00
christos
0c58aff5f5
add missing initializers
2006-09-03 06:46:22 +00:00
christos
328ed75351
add missing decl
2006-09-03 06:42:44 +00:00
christos
05bd5641dd
add missing initializers
2006-09-03 06:41:38 +00:00
christos
28ea22fb52
use c99 initializers, per gimpy's request
2006-09-03 06:40:39 +00:00
gdamore
487ed45995
Don't warn about RTC losing/gaining days if the filesystem time is bogus.
2006-09-03 06:37:55 +00:00
christos
be15e5387b
use c99 initializers
2006-09-03 06:34:34 +00:00
christos
1b87f8e9cc
add missing initializer
2006-09-03 06:29:03 +00:00
christos
59d19c4947
add missing initializers
2006-09-03 06:28:16 +00:00
christos
48c3e87853
add missing initializer
2006-09-03 06:26:27 +00:00
christos
e2ea4b04bb
avoid empty else statement
2006-09-03 06:25:19 +00:00
christos
a307d25b10
add missing initializer
2006-09-03 06:24:21 +00:00
christos
01edefa570
comment out unreachable code
2006-09-03 06:23:27 +00:00
christos
996634386c
comment out unreachable code.
2006-09-03 06:22:05 +00:00
dyoung
8db36d06c3
Don't use IFQ_ macros on an ifqueue. Fixes a compilation error
...
reported by christos.
2006-09-03 06:10:06 +00:00
christos
5cbefe6615
make this compile again (thanks gdamore)
2006-09-03 06:03:51 +00:00
simonb
c0b7864181
Add ``makeoptions DEBUG="-g"''. From the comment in GENERIC:
...
# XXX
# Need "-g" so that link sets in libraries work. The "objcopy -x" step
# will strip out static link set info from an a.out object.
2006-09-03 05:58:19 +00:00
christos
4905e82e29
add missing initializer
2006-09-03 05:30:48 +00:00
christos
c11c8c78df
add missing initializers
2006-09-03 05:29:46 +00:00
christos
9c03e39ea2
add missing initializer
2006-09-03 05:27:28 +00:00
gdamore
4c30050f13
Convert i386 to use common TODR code. Not tested, but Christos says he'll
...
test it for me right now. :-)
2006-09-03 05:26:11 +00:00
christos
f2e0e5984c
add missing initializer
2006-09-03 05:25:43 +00:00
gdamore
a6abab1852
Incorporate changes from x86/i386 as follows:
...
1) don't set a clock when panicing during early boot
2) if the filesystem time is newer than the rtc time (by at least 2 days) then
revert to the filesystem time.
3) use x86 style messaging.
We still use a threshold of 2 days of gain or loss in time to warn though.
2006-09-03 05:25:05 +00:00
christos
b3d983dd18
add missing initializer
2006-09-03 05:24:47 +00:00
christos
5b7c1e90d5
add missing decl.
2006-09-03 05:23:59 +00:00
christos
78c43e9064
static comes first
2006-09-03 05:22:36 +00:00
christos
4ac9cd5ebe
add missing initializer
2006-09-03 05:20:21 +00:00
christos
7ed28205b6
- add missing initializer
...
- comment out impossible comparison
2006-09-03 05:19:38 +00:00
christos
144543fb61
add missing initializer
2006-09-03 05:18:03 +00:00
christos
d13620d51a
comment out impossible comparison.
2006-09-03 05:16:59 +00:00
christos
60dfc6ed9c
add missing initializers
2006-09-03 05:16:01 +00:00
christos
eb7cb3e07d
- add missing initializers
...
- remove impossible comparison
2006-09-03 05:12:54 +00:00
christos
624d950194
add missing initializer
2006-09-03 05:11:30 +00:00
christos
26733bed2e
- comment out impossible comparisons
...
- remove superfluous if statement
2006-09-03 05:10:24 +00:00
christos
44dddc087f
use c99 initializers
2006-09-03 05:08:18 +00:00
christos
7de21598de
- add missing initializer
...
- correct function decl.
2006-09-03 05:04:57 +00:00
christos
93582079db
add missing initializer
2006-09-03 05:02:21 +00:00
christos
309d51fb22
add missing initializers
2006-09-03 04:56:33 +00:00
christos
d5d864694f
avoid empty else.
2006-09-03 04:55:30 +00:00
christos
e89033a3e5
add missing initializers
2006-09-03 04:54:24 +00:00
christos
5388ec4cc9
add missing initializer
2006-09-03 04:53:19 +00:00
christos
2ef37e3f61
use c99 initializers
2006-09-03 04:52:14 +00:00
christos
116c50293c
add missing initializer
2006-09-03 04:28:16 +00:00
christos
a96f0dc641
avoid empty if statements
2006-09-03 04:27:11 +00:00
gdamore
3bc99cc29a
Use new common, MIPS3 clock handling. This eliminates some port-specific
...
code in favor of common MIPS3 code.
2006-09-02 22:54:47 +00:00
gdamore
b671de1aa9
Remove pointless dependency upon evbmips/clockvar.h.
2006-09-02 22:53:02 +00:00
uwe
ded7a4b611
There's no reason to use -Wno-parentheses.
2006-09-02 22:37:33 +00:00
gdamore
be077b9856
Remove pointless reference to evbmips/clockvar.h.
2006-09-02 22:33:06 +00:00
gdamore
121f85350b
Provide a common implementation for ports that use the MIPS CP0 counter
...
based clock interrupt.
This provides common implementations of: delay(), cpu_initclocks(), and a
timecounter based on the MIPS3 CP0. It also provides a new function,
mips3_clockintr(), that is intended to be called from a port's cpu_intr()
routine when INT5 is raised.
Hopefully many MIPS3 based machines can adopt this common interrupt framework.
The evbmips conversion will be committed separately, shortly.
2006-09-02 22:20:57 +00:00