Commit Graph

83195 Commits

Author SHA1 Message Date
christos
4e6ffbfcf0 add missing initializers 2006-09-03 22:28:53 +00:00
gdamore
b46bdc5e2b Convert both sparc and sparc64 to MI todr. 2006-09-03 22:27:45 +00:00
christos
93a520d8b0 fix initializers 2006-09-03 22:17:35 +00:00
christos
e82a0f88ae add missing initializer. 2006-09-03 21:45:28 +00:00
gdamore
d38176b5c8 Convert to timecounters. Since sun2 lacks a separate timer for microsecond
interpolation, we just use the default clock interrupt timer. (100Hz)
2006-09-03 21:43:56 +00:00
christos
77c903b90a add missing initializer 2006-09-03 21:42:55 +00:00
christos
00c11ed953 add missing initializers 2006-09-03 21:42:09 +00:00
christos
931d28e672 use c99 initializers 2006-09-03 21:39:29 +00:00
christos
c5b9d17001 add missing initializer 2006-09-03 21:38:23 +00:00
christos
37ba677a84 use c99 initializers 2006-09-03 21:37:22 +00:00
christos
5dc39be6da add missing initializers 2006-09-03 21:37:06 +00:00
gdamore
5df865819e Fix compilation error caused by remaining todr_handle. Doh! 2006-09-03 21:34:33 +00:00
christos
aa6004da57 use c99 initializer. 2006-09-03 21:33:33 +00:00
christos
ad4f70a8e8 add missing initializer. 2006-09-03 21:30:24 +00:00
christos
61f2f34223 add missing initializers 2006-09-03 21:29:37 +00:00
christos
2dfeed7693 fix initializers. 2006-09-03 21:28:03 +00:00
christos
b231088be0 add missing initializer 2006-09-03 21:16:09 +00:00
christos
842f306745 use c99 initializers 2006-09-03 21:12:14 +00:00
christos
3088ae53a7 - add missing initializer
- remove stray semicolon that prevented an ioctl from working.
2006-09-03 21:09:46 +00:00
christos
40be650c67 add missing initializers. 2006-09-03 21:05:01 +00:00
christos
224c7c746b add missing initializer. 2006-09-03 21:03:11 +00:00
christos
df1dfef2bc add missing initializers 2006-09-03 21:01:12 +00:00
christos
c35f9741bc add missing initializer. 2006-09-03 21:00:01 +00:00
christos
4e0d743b9e add missing initializers 2006-09-03 20:59:18 +00:00
christos
b33a26ac88 remove unneeded initializer. 2006-09-03 20:58:26 +00:00
perry
611f860676 remove the "clkintr_pending" stuff.
The variable was used but never set. Kardel says it is a remnant from
the freebsd code he ported, and may be safely discarded.
2006-09-03 20:49:21 +00:00
perry
61af090394 add an #ifndef __x86_64__ around #include "mca.h"
reduces diffs with the amd64 port
We'll soon merge these entirely
2006-09-03 20:46:23 +00:00
perry
e1c0963dfd temporarily turn on "__HAVE_GENERIC_TODR" 2006-09-03 20:42:14 +00:00
perry
8a4431f0b8 fix declaration of tickle_tc() -> tickle_tc(void) 2006-09-03 20:38:32 +00:00
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