166289 Commits

Author SHA1 Message Date
simonb
64cc17b1ee Standalone programs (via libkern) end up pulling this header in, so
check for !_STANDALONE as well before trying to include <stdint.h>
2008-01-18 01:20:48 +00:00
jmcneill
8761d09319 Don't be so aggressive in polling the EC when cold, port-i386/37790. 2008-01-18 01:03:24 +00:00
jmcneill
91a074d893 If we are in polling mode, do not try to spin forever in the state machine
waiting for a read or write to complete. Workaround an issue on my VAIO,
but we really need to figure out why it is failing in the first place.
2008-01-18 00:33:54 +00:00
garbled
80a83a2b7e Add support to ofppc for the IBM 7044-270 machine. This is a POWER3-II
based machine.  Currently the kernel to run on this machine is
incompatible with the standard GENERIC kernel, so for now, we have a
separate GENERIC_B64. Eventually, I hope to combine the two.

Please note, this is a port of 32bit ofppc, not a powerpc64 port.

Thanks to Matt Thomas and Kevin Bowling for helping to make this port
possible.

Summary of changes:

Change ofwpci to use the ofmethod config for configuring the PCI bus,
rather than indirect configuration.
Move the wiring of the interrupt controllers from at the start of the
boot, into the configuration of the first PCI bus.
Rewrite the map_isa_ioregs() hack to work on a machine without BATs
Fix a ton of bugs in the genofw_find_pics routine, and in the map_space code.
Split the pic_openpic into openpic_common and pic_openpic.
Create a new pic_distopenpic driver, for the distributed openpic found on
some newer IBM machines.
Fix a bad panic in pmap_extract on 64bit bridge mode
2008-01-17 23:42:57 +00:00
rumble
75030bbb1e Fix a panic that occurs when a dependency had already been loaded and a
dependant module is loaded by setting modp when returning ENOENT.

Also, be stricter with regards to MAXMODNAME.
2008-01-17 22:35:53 +00:00
rumble
80993719d2 Before bailing on ENOENT, try one more time with an appended ".o". This
lets us load dependencies by module name and makes 'modload foo' work when
'foo.o' is the file.
2008-01-17 22:32:49 +00:00
rumble
3d82d54236 MODCTL_LOAD and MODCTL_FORCELOAD generally pass a path (if a module name
is passed, it's fixed up in kobj_subr.c), so permit MAXPATHLEN arguments.
The other commands deal strictly with module names, so leave them be.

While we're here, copyinstr()'s length parameter includes NUL-termination,
so no need to subtract 1.
2008-01-17 22:30:54 +00:00
pooka
fd1f386de1 fix incorrect tick -> timespec calculation. noticed by reinoud 2008-01-17 21:05:36 +00:00
joerg
0d7c94dad4 Add a stub file that includes a bunch of kernel headers and always get
compiled with -g. For the initial set, netbsd on amd64 grows by around
80KB. This allows much easier use of GDB for post-mortem debugging as
it can understand the layout of data structures. The additional data can
be strip(1)ped off normally for size constraint environments.
2008-01-17 20:14:49 +00:00
ad
95e0feb94e vrevoke: fix a couple of botches. 2008-01-17 19:23:13 +00:00
pooka
661097a9a5 Remove bogus KASSERT: we can't make any assumptions about a dirent's
node in unmount since it might have been freed already.

fixes PR kern/37667.  per discussion with ad & simonb.
2008-01-17 18:22:52 +00:00
pooka
c142350bc6 Fix fakecc case.
Noticed by Pavel Jirout on current-users
2008-01-17 17:43:14 +00:00
ad
cd7be76fdb Add a dummy vrevoke(). 2008-01-17 17:31:48 +00:00
ad
4eb2a42ae6 Fix v_freelisthd assertion failure during call to vdevdone(). No calling
VOPs without a vnode reference!
2008-01-17 17:28:54 +00:00
jklos
740cd1ea87 More Chelsio 10 gigabit driver files to complete the ones checked in
yesterday.
2008-01-17 15:54:35 +00:00
njoly
d321737f6a Add new linux_uid16.c file needed for m68k. 2008-01-17 15:10:53 +00:00
ad
f5990f1bbb breakpoint: set up a stackframe so gdb doesn't get lost. 2008-01-17 15:01:05 +00:00
yamt
0116b931c2 sync with kernel. (make some mbuf related statistics per-cpu.) 2008-01-17 14:53:18 +00:00
yamt
44dac61d31 make some mbuf related statistics per-cpu. 2008-01-17 14:49:28 +00:00
yamt
cc868dad6c pmap_sync_pv, pmap_map_pte: use PTE_BASE if possible. 2008-01-17 13:26:20 +00:00
ad
231d556f22 - Ignore clean vnodes in vflush(). May fix false EBUSY when unmounting.
- Use vrelel() where v_usecount might become 0. Could fix "vnode sez".
- Add some assertions, fix a lock leak.
2008-01-17 13:06:04 +00:00
ad
42c90ece4c Fix dodgy tests of v_usecount. 2008-01-17 10:39:14 +00:00
ad
6d827ae10e Correct previous. 2008-01-17 10:28:24 +00:00
ad
1e584185b2 Correct test of v_usecount. 2008-01-17 10:27:43 +00:00
ad
33b917a83d smbfs_reclaim: fix a broken assertion. 2008-01-17 10:25:01 +00:00
ad
abb6491738 mfs_close: remove a broken assertion. 2008-01-17 10:24:05 +00:00
yamt
c692b68517 pmap_sync_pv:
- fix "need_shootdown" in the case of retry.
	- add some comments.
2008-01-17 10:19:50 +00:00
yamt
a134cc30b5 pmap_clear_attrs: remove a redundant assignment 2008-01-17 10:17:07 +00:00
yamt
2c871b8070 - add a cpu_info pointer argument to percpu_callback_t.
- unexport percpu_zero.
- add some comments.
2008-01-17 09:01:57 +00:00
yamt
6f81e85c11 - reduce the number of atomic ops in some cases.
- reduce code duplications.
- fix the "pte == 0" assersion failure in pmap_tlb_shootdown.
2008-01-17 08:49:52 +00:00
jklos
0123f42896 10 gigabit Chelsio cards now compile and work, although not very well yet. 2008-01-17 06:03:21 +00:00
lukem
14c9fc8ffa Remove unnecessary references to config_time.h. 2008-01-17 01:56:02 +00:00
lukem
8b267ec022 Use BUILDSYMLINKS from <bsd.files.mk> instead of custom copy rules
for config_time.h and athhal_options.h.

Note: we still copy param.c because I'm told that we should still support
people editing that on a per-compile basis.
2008-01-17 01:13:01 +00:00
christos
3e0495561a try to use programs from base (from anon ymous) sudo -> su 2008-01-17 00:37:46 +00:00
lukem
114e456e17 Ensure kdc starts after syslogd and ntpdate. 2008-01-16 23:58:26 +00:00
lukem
e26888b7e9 Only pull in <sys/cdefs.h> on NetBSD, to fix build on Solaris 10.
Tweak replacement definition of __dead.
2008-01-16 23:23:25 +00:00
pooka
9f5abca72f Comment out the puffs_executor hacks for now, they have races.
The issue should be solved in another fashion anyway.
2008-01-16 23:17:43 +00:00
pooka
614c59fcb2 Cache a number of execution contexts instead of re-initializing
them every time.  Speeds up pure in-memory file systems such as
sysctlfs or dtfs quite a bit.  For actual I/O-workhorses the result
is of course less tasty.
2008-01-16 21:29:59 +00:00
seanb
56143d3b3c - Set progname before dereference. 2008-01-16 19:18:06 +00:00
chuck
50278d718a fix clock accounting problem in i8254_get_timecount that caused
the auich auich_calibrate() function to get the wrong ac97 freq
(may cause audio to play at wrong speed on some systems).  this
error was inadvertently introduced in rev 1.98 of the old
src/sys/arch/i386/isa/clock.c (2006/09/03) and manifests itself
on systems that do not use an alternate timecounter (e.g. ACPI-Fast).

the basic problem is that the code that handled when the i8254
counter wrapped was firing in cases when it shouldn't have,
causing the counter to run fast.   a more detailed discussion
can be found here:
  http://mail-index.netbsd.org/tech-kern/2008/01/15/0001.html
  http://mail-index.netbsd.org/tech-kern/2008/01/16/0000.html
2008-01-16 18:38:24 +00:00
ad
48546d78ad Always set up lkm_map. 2008-01-16 18:30:22 +00:00
ad
1ada21e131 Add a cast for kauth_authorize_system.. 2008-01-16 18:29:18 +00:00
ad
a2134a7a24 - Include lkm_map if !LKM. XXX
- Add a comment about dependencies.
2008-01-16 18:28:32 +00:00
ad
2b407cc921 Don't pull in sys/vnode.h 2008-01-16 16:00:42 +00:00
ad
5080b2dad0 Pull in my modules code for review/test/hacking. 2008-01-16 13:22:29 +00:00
jmcneill
f4e9b2430e Don't assume that sizeof(long) == sizeof(int); makes bktr work on amd64. 2008-01-16 13:08:54 +00:00
ad
3cc206f1df Regen. 2008-01-16 12:35:37 +00:00
ad
bbc79e58a6 Pull in my modules code for review/test/hacking. 2008-01-16 12:34:50 +00:00
is
257a88e757 Move from workqueue to an explicit kthread for setting the multicast
filter, as suggested by cube@. Actual code review by cube@.
This way, a backport of the fix to netbsd-4 is possible.
2008-01-16 12:33:54 +00:00
hubertf
76e0b9a57a Code cleanup:
- Removed case '?' before default in switch
 - Don't forget to close opened decriptors when malloc() fails
 - Hold vfork() result in variable with pid_t type (instead of int)

Sent ages ago by Slava Semushin <php-coder@altlinux.ru> in private mail.
2008-01-16 11:43:34 +00:00