Commit Graph

93521 Commits

Author SHA1 Message Date
matt
1338b4a803 use device_t & cfdata_t 2008-03-26 18:08:08 +00:00
matt
db44fdcd39 "split" softc/device_t. (since softc was a struct device, use a split softc
size of 0).
2008-03-26 18:06:34 +00:00
matt
5d109a29b5 split softc/device_t 2008-03-26 18:04:15 +00:00
matt
595211a098 split device_t/softc. Use aprint_*_dev and device_xname.
switch to device_lookup_private.
2008-03-26 17:50:32 +00:00
xtraeme
678337ef71 acpitz_get_zone expects now a device_t not a softc. 2008-03-26 16:48:53 +00:00
dyoung
3adac159e7 Define fkb and sfkb once instead of in both elansc_protect_text()
and elansc_protect().  Should stop GCC from complaining about an
unused variable fkb.
2008-03-26 16:45:32 +00:00
xtraeme
8bea7f6b6e Split device_t/softc for ug(4) and other related cosmetic changes. 2008-03-26 16:09:37 +00:00
dyoung
b0cfcf1f00 Use as many as two Programmable Address Regions (PARs) with 4kB
granularity to protect some of the kernel text that is not protected
by the PAR with 64kB granularity.
2008-03-26 15:49:03 +00:00
xtraeme
2be2546b16 Split device_t/softc and related cosmetic changes. 2008-03-26 15:31:59 +00:00
kiyohara
08b5f8f61c Remove printf() when VGA vendor is case Diamond and Matrox. Moreover
this printf() will make the start of CPU1 fail.  I have not understood the
reason yet.  When doing DEBUG is effective, the vender of all PCI devices
will be displayed again.  At this time, printf() doesn't support the format
like "%08x".
2008-03-26 15:09:50 +00:00
kiyohara
7bff3a9b0b We might be able to use VGA. Please comment out for line '-DCONS_SERIAL'
if you wish for it.  In that case, you will occasionally see the hoarsely
and strangely transformed character on screen. This reason cannot be
understood yet.
Default is continuously a serial console.
2008-03-26 14:56:18 +00:00
ad
9591013005 Defer processing of routing messages to a soft interrupt. These can be
generated at IPL_VM and it's not safe to call directly into the socket
layer at that level. Reviewed by matt@.
2008-03-26 14:53:14 +00:00
cube
6495be5eed Split device_t and softc, and related cosmetic changes. 2008-03-26 14:46:21 +00:00
kiyohara
9edbb57d26 Cleanup bebox_{enable,disable,get}_irq(). 2008-03-26 14:34:42 +00:00
ad
021b86dd4b Changes for PR kern/38291 (panic unmounting MFS /tmp):
- Reference count the mfsnode to fix an aincent bug. Only destroy when
  reference count drops to zero. In mfs_start(), busy the mount and get
  a reference to the mfsnode to prevent it disappearing while the server
  is running. If the file system is gone already, vfs_busy() will fail.
- Always destroy the bufq.
- Use a global mfs_lock for simplicity.
- Replace use of malloc/free. Fixes broken MALLOC_TYPE change.
2008-03-26 14:19:43 +00:00
ad
c496ce1a99 Update dmover fileops to compile again. From he@. 2008-03-26 13:33:58 +00:00
ad
78656b1e91 - kqueue_scan: work around problem noted by yamt@: if an event fires while
we have unlocked the kqueue to check its state, leave it queued and
  re-check later.
- knote_dequeue: fold into knote_detach since nothing else uses it.
- Note a couple more problems.
2008-03-26 13:32:32 +00:00
chris
9c31e33724 Add help text to arm machine specific ddb commands.
Part of fix for port-arm/38311.
2008-03-26 13:01:13 +00:00
ad
4490d3fdcf Correct pasto in the cc_microtime defs. From tsutsui@. 2008-03-26 12:36:33 +00:00
jmcneill
e72a19155e PR#38301: Add support for SMBus controllers for ATI SB600, SB700, SB800
chipsets, from Christoph Egger.
2008-03-26 11:14:33 +00:00
jmcneill
1b7a201c53 Regen for PR#38301 2008-03-26 11:13:30 +00:00
jmcneill
b564cf1560 PR#38301: Add support for SMBus controllers for ATI SB600, SB700, SB800
chipsets, from Christoph Egger
2008-03-26 11:12:43 +00:00
christos
f071da976a - put const back, no reason to modify the prototype.
1. Please don't cast function pointers to (void *), use the full function
   prototype cast; this is for archs where a function pointer is not a regular
   pointer.
2. Compare pointers to NULL not 0.
2008-03-26 02:21:52 +00:00
christos
efe07f9c02 fix again 2008-03-25 23:24:38 +00:00
christos
55feb339a9 fix bcopy again 2008-03-25 23:23:13 +00:00
yamt
91ae756395 - for some ports, especially for ones without pmap_growkernel,
buf_memcalc is used by bootstrap as well.  fix NULL dereference for them.
- limit kva usage for each cache to 20% of vm_map.  XXX a bit arbitrary.
- add a comment.
2008-03-25 23:21:42 +00:00
christos
8ac6bd68d8 fix bcopy prototype 2008-03-25 23:21:04 +00:00
christos
3d8daf0799 add a prototype for bcopy. 2008-03-25 23:19:51 +00:00
christos
19d181b7f5 add bcopy and bzero for loadfile for now. Should get rid of it. 2008-03-25 23:12:31 +00:00
christos
9ebe85fa97 remove stray comment 2008-03-25 22:55:25 +00:00
christos
8f0af7be4b fix typo 2008-03-25 22:54:54 +00:00
ad
8910b668ba mount_domount: hold an additional reference to the mountpoint across the
call to VFS_START. The file system can be unmounted before VFS_START
returns. Partially addresses PR kern/38291.
2008-03-25 22:13:32 +00:00
christos
e1b834bdd8 - use mem* instead of b* routines, and kill the b* routines.
- use the mem* routines from libc.
XXX: There will be some lossage, but I am fixing it.
2008-03-25 21:23:50 +00:00
martin
261a6922f9 Make the debug message that triggered in PR 38297 slightly more verbose 2008-03-25 20:44:12 +00:00
martin
31c74d197f Count the number of syscalls per cpu, to avoid cache trashing around
uvmexp.syscalls.
I wonder if we should apply the same treatment to uvmexp.{traps,intr,faults}
2008-03-25 16:42:07 +00:00
martin
d05574d259 Remove unused symbol 2008-03-25 16:01:15 +00:00
cube
d94699ecbb Split device_t and softc for wskbd(4), wsmouse(4) and that creepy wsmux(4). 2008-03-25 00:49:19 +00:00
yamt
ef630703b1 regen. 2008-03-24 23:47:06 +00:00
yamt
f725bfefcf after yamt-lazymbuf merge, mark send/recv syscalls MPSAFE.
pointed out by Andrew Doran.
2008-03-24 23:46:43 +00:00
cube
4674a8058c Don't reference m68k/saframe.h. Zed's dead, baby, Zed's dead. 2008-03-24 23:02:38 +00:00
martin
99c43f077e Adapt to sel* changes 2008-03-24 19:40:18 +00:00
cube
58f7b5e1f3 Split device_t for cd(4). 2008-03-24 18:27:06 +00:00
jmmv
3f1571cbcf Fix flags for kern_synch.c: it is COPTS.<cfile>, not CFLAGS.<cfile>. 2008-03-24 18:03:27 +00:00
cube
b1be269fbd Split device_t and softc for atapibus(4). 2008-03-24 14:44:26 +00:00
elad
b2b4fb68be Introduce two missing KAUTH_GENERIC_ISSUSER check in the voodoo and machfb
mmap() code.

This and similar requests will be replaced Soon, but these two in
particular should be pulled up to netbsd-4, and to allow doing that
smoothly, we're first introducing the "issuser" version.

Discussed with and okay macallan@.
2008-03-24 14:16:04 +00:00
ad
11d69830e6 +pseudo-device lockstat since there is a cycle counter. Ok martin@. 2008-03-24 13:48:18 +00:00
yamt
eb1ec8f233 4.99.58 - merge yamt-lazymbuf branch 2008-03-24 12:26:30 +00:00
yamt
2acbe71698 regen. 2008-03-24 12:25:42 +00:00
yamt
9a4b7dd279 merge yamt-lazymbuf branch. 2008-03-24 12:24:37 +00:00
yamt
c2ade09841 remove an empty file. 2008-03-24 11:52:07 +00:00