Commit Graph

83236 Commits

Author SHA1 Message Date
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
matt
497415f67e Make this compile in _KERNEL || _STANDALONE. Make gcc4 happy. 2006-09-02 20:46:50 +00:00
gdamore
f0cf1a4f32 Convert evbmis to __HAVE_GENERIC_TODR. 2006-09-02 20:27:21 +00:00
gdamore
c583da0d13 Add MI implementation of inittodr, todr_attach, and resettodr.
This is triggered upon __HAVE_GENRIC_TODR in machine/types.h.  Conversion of
evbmips port forthcoming.
2006-09-02 20:18:00 +00:00
elad
994bc68e9f Short-circuit calls to kauth_authorize_action() for a scope withtout any
listeners to always return "allow".

The idea is that it's not entirely unlikely that some vendors, or users,
will decide to load the security model as an LKM, and that can only
happen after at least mounting local file-systems. If we would not have
this fast-path, all authorization requests would be denied.

okay christos@
2006-09-02 20:10:24 +00:00
christos
3cd45450e8 redo with c99 initializers 2006-09-02 18:59:46 +00:00
christos
bd4bd1bf9d - comment out impossible comparison
- add missing initializer
2006-09-02 18:58:02 +00:00
matt
c8b1a4622f Add/rename macros (PVO_xxx_P) for testing WIRED, MANAGED, EXECUTABLE ness
of a PVO entry.  (Fixes where PVO_WIRED was tested against pvo_pt.pte_lo
instead of pvo_vaddr)
2006-09-02 17:08:44 +00:00
christos
5ec7f32544 add missing initializers 2006-09-02 17:02:57 +00:00
kardel
9cf34bf81f move MAX_TCNAMELEN from kern_tc.c into timetc.h 2006-09-02 13:47:03 +00:00
kardel
e23bdf3c6e move MAX_TCNAMELEN into timetc.h, use constant in tmp buffer allocation 2006-09-02 13:45:04 +00:00
yamt
8b789e8490 nfs_fhtovp: try to detect stale or invalid handles by issuing VOP_GETATTR. 2006-09-02 13:37:52 +00:00
yamt
b45e7d3197 nfsdreq_free: remove an assertion which is not true. 2006-09-02 13:30:08 +00:00
liamjfoy
3c3d7131af increment ips_total too.
ok matt thomas
2006-09-02 12:41:01 +00:00
yamt
3311de9ddc implement vptofh and fhtovp for nfs. 2006-09-02 12:40:58 +00:00
yamt
d7d8adb6ea nfsd: deal with variable-sized filehandles. 2006-09-02 12:40:36 +00:00
yamt
d70ea60617 #ifdef out nqsrv_getlease and friends unless defined(NFSSERVER). 2006-09-02 12:39:59 +00:00
xtraeme
1d143cb5ae - Remove k8pnow_read_pending_wait() and use a macro that _always_
will wait for the bit pending wait to be cleared. When this bit is
  cleared the CPU is ready to enter to new processor state. [1]
- Remove useless comments.
- Sync boot messages with est.c

[1] Macro taken from FreeBSD.

And new changes tested by elad.
2006-09-02 11:00:52 +00:00
xtraeme
05670fe773 Remove unused variable to make this build again. 2006-09-02 09:26:47 +00:00
christos
88112b2ad5 add missing initializers 2006-09-02 07:30:30 +00:00
christos
57eb3ffe77 fix default type decls
fix incomplete initializer
2006-09-02 07:26:47 +00:00
christos
b6994507c5 add missing initializer 2006-09-02 07:23:53 +00:00
christos
7ca3c62d31 - fix initializers
- add const
- remove dead code
2006-09-02 07:22:44 +00:00
christos
25097e66ef Add missing initializers 2006-09-02 07:16:41 +00:00
christos
66f851cf96 add missing initializers 2006-09-02 07:12:11 +00:00
christos
faec8658c7 - fix incomplete initializer
- static goes first
2006-09-02 07:10:51 +00:00
christos
0668b0a2e0 static goes first 2006-09-02 07:08:39 +00:00
christos
7d1781d944 - fix incomplete initializer
- static goes first
2006-09-02 07:07:33 +00:00
christos
b5da945622 comment out unreachable code 2006-09-02 07:06:03 +00:00
christos
a91b63349c add missing initializer 2006-09-02 07:04:46 +00:00
christos
7465b73617 add missing initializers 2006-09-02 07:04:01 +00:00
christos
a569a4d291 add missing initializer 2006-09-02 07:01:20 +00:00
christos
9f681d6f65 comment out impossible code 2006-09-02 07:00:23 +00:00
christos
489fe1e988 add missing initializers 2006-09-02 06:56:30 +00:00
christos
b819e0b190 Add missing initializer 2006-09-02 06:54:18 +00:00
christos
de02317b32 comment out impossible code 2006-09-02 06:53:17 +00:00
christos
c4501e2800 fix incomplete initializer 2006-09-02 06:52:13 +00:00
christos
d74781a938 - add missing initializers
- comment out impossible code
2006-09-02 06:48:00 +00:00
christos
0dc26f6dcb remove impossible test 2006-09-02 06:46:04 +00:00
christos
ec219b9b61 use c99 initializers 2006-09-02 06:44:59 +00:00
christos
f7619e4f98 add missing initializers 2006-09-02 06:41:16 +00:00
christos
10f27c9c57 remove impossible comparison 2006-09-02 06:39:27 +00:00
christos
3c95928caf add missing initializers. 2006-09-02 06:37:41 +00:00
christos
8d6177c953 add missing initializer 2006-09-02 06:35:49 +00:00
christos
bdd0dbdf82 add missing initializers 2006-09-02 06:35:12 +00:00
christos
72c936995b delete unreachable code 2006-09-02 06:33:11 +00:00
christos
9802793325 deal with empty if bodies 2006-09-02 06:32:09 +00:00
christos
2e1a2f9d5e comment out impossible comparison 2006-09-02 06:30:53 +00:00
christos
4e2f7e29cf - fix initializer
- comment out unused code
2006-09-02 06:29:13 +00:00
christos
e04bc58b1a Add missing initializer 2006-09-02 06:26:13 +00:00
christos
04eadef67e add missing initializer 2006-09-02 06:22:45 +00:00
christos
bbff9f7a92 Add missing initializers 2006-09-02 06:21:32 +00:00
gdamore
6f46a0d419 Remove ifdef 0'd code from before timecounters. 2006-09-02 02:06:05 +00:00
gdamore
12c3c2ae91 Convert evbmips to timecounters, using the MIPS3 cp0 clock.
This has been tested on AR5312, and I expect it to "just work" on
all evbmips systems.  (On AR5312, the counter is 110MHz. :-)
2006-09-02 02:04:25 +00:00
cube
3122ef59fe Revert my commit that made SYSTRACE depend on PTRACE, this is no longer
necessary.  Thanks, Matt.
2006-09-01 22:38:27 +00:00
matt
21b62eb996 Missed commit (Regen'ed). 2006-09-01 22:23:18 +00:00
mrg
02356bf3f5 fix a bug in userlevel trap() handling where struct proc *p was used
before it was assigned to.
2006-09-01 22:22:45 +00:00
mrg
ed30b212fd va = va += PAGE_SIZE is possibly undefined. remove the first "va = ". 2006-09-01 22:21:17 +00:00
mrg
6801145584 copy this from i386/compile/Makefile. it makes kernel builds work
properly with objdirs.
2006-09-01 22:12:40 +00:00
uwe
02fbb03f10 Definitions for NetBSD/landisk port by NONAKA Kimihiro <nonaka@NetBSD.org> 2006-09-01 21:41:46 +00:00
matt
6fcbfe6950 Increase SYMTAB_SPACE to 410000 2006-09-01 21:38:12 +00:00
uwe
1fd097bf15 Initial import of NetBSD/landisk port by NONAKA Kimihiro <nonaka@NetBSD.org> 2006-09-01 21:26:18 +00:00
matt
7e0679149d Properly deal with/without ktrace/ptrace/systrace 2006-09-01 21:24:50 +00:00
matt
2e04559304 When calling PTRACE from an LKM, use sysent[SYS_ptrace].sy_call in case
the sys_ptrace symbol isn't present.
2006-09-01 21:20:46 +00:00
matt
280b69066a Regen. 2006-09-01 21:19:44 +00:00
matt
bb97e7087b process_domem exists for ktrace/ptrace/systrace 2006-09-01 21:05:33 +00:00
matt
894d299a2b Regen. (add __weak_alias(sys_ptrace, sys_nosys) when PTRACE is off) 2006-09-01 21:04:45 +00:00
matt
30183e299f Don't conditionalize *sys_ptrace. The lack of sys_ptrace will be dealt
with differently.
2006-09-01 20:58:18 +00:00
cherry
8a4036de78 bumps kernel aobj to 64 bit. \
See: http://mail-index.netbsd.org/tech-kern/2006/03/07/0007.html
2006-09-01 20:39:05 +00:00
uwe
ff25c8d7b7 s/dreamcast/sh3/ to cover landisk. 2006-09-01 20:28:14 +00:00
perseant
437e855235 Changes to help the roll-forward agent, to wit:
* Mark being-deleted files in the Ifile so we can finish deleting them
  at fs mount time.
* Flag the Ifile with "cleaner must clean" when writers are waiting for
  the cleaner, rather than relying solely on the cleaner's estimation of
  whether it should clean or not.
* Note partial segments written by a user agent (in particular,
  fsck_lfs) so that repeated rolls forward don't interfere with one
  another.
* Add a new fcntl, LFCNPASS, that allows the log to wrap exactly once,
  for better testing of the validity of checkpoints.
* Keep track of the on-disk nlink count when cleaning, so that we don't
  partially complete directory operations while cleaning.
* Ensure that every single Ifile inode write represents a consistent
  view of the filesystem.  In particular, the accounting for the segment
  we are writing the inode into must be correct, and the accounting for
  the segment that inode used to reside in must be correct.  Rather than
  just rewriting the inode if we wrote it wrong, rewrite the necessary
  ifile blocks before writing the inode so we never write it wrong.
* Don't unmark any VDIROP vnodes if we haven't written them to disk,
  avoiding yet another problem with the "wait for the cleaner" error
  return from lfs_putpages().

Also, move the last callback to an aiodone call, so we no longer do any
memory management from interrupt context.
2006-09-01 19:41:28 +00:00
matt
20751a781e Make this compile again. -Wshadow and other gcc4 stuff. 2006-09-01 19:15:48 +00:00
matt
87eed1926a Make sure .data is .long aligned. (fixes linker warning) 2006-09-01 19:11:56 +00:00
cube
207af46910 Add a note about the use of CTL_CREATE in sysctl_createv, otherwise the
code can be confusing.
2006-09-01 16:28:53 +00:00
matt
3672c831f3 Remove explicit cast which causes assignments to PC_REGS(f) to fail. 2006-09-01 13:58:46 +00:00
matt
47006e8ea3 Remove unneeded volatile. 2006-09-01 13:54:48 +00:00
cube
52f4c135dc Device isabus has to expose an interface attribute otherwise it can't have
children attaching and config(1) detects isa0 as orphaned in RC3230.

While turning isabus into an interface attribute doesn't work (because the
attribute 'isabus' already exists), depending on that very same attribute
works.

XXX  I wonder what to allow, what to disallow.  I'll think about it.
2006-09-01 13:28:17 +00:00
matt
be6447a4f3 Reorder AFLAGS to avoid assembler warnings 2006-09-01 13:07:51 +00:00
matt
1661cfe5d2 Increase SYMTAB_SPACE to 410000 2006-09-01 12:39:36 +00:00
mrg
09534a159a fix the previous: don't replace a NULL with a "" in an initialiser.
fixes sparc64 kernel from crash when starting ipfilter.  thanks to
jnemeth@ for flagging the delta that caused the problem.
2006-09-01 09:47:47 +00:00
mrg
663a6e2d8f s/E2BIG/EFBIG/ for bus_dma(9) errors. this is what every other
bus_dma does and several drivers depend on it.  in particular,
both re(4) and ath(4) would both spew "can't map mbuf" messages
as rapidly as possible (spamming the 9600 bps console) and
effectively locking up the interface until ifconfig "down up"
cycle was run.  with this fix, i get a much, much slower spew
of messages, and the interface (re(4)) continues to operate.
2006-09-01 09:21:18 +00:00