Commit Graph

82456 Commits

Author SHA1 Message Date
manu
05c8a1b827 Add a new signature test for linux probe function. We look for a .debuglink
section, which is specific to the Linux dynamic interpeter (yes, Linux
can execute it as a stand alone program)
2006-08-07 14:19:57 +00:00
cube
bb041282a1 Correctly free freq_names and cstate.
XXX This code is bogus anyway.  Global variables vs. MP systems, anyone?
2006-08-07 11:39:30 +00:00
mhitch
1d4e083680 gcc4 uninitialized variable. gcc3 apparently didn't catch this one. 2006-08-07 01:31:36 +00:00
xtraeme
421fdf2f64 Free freq_names if k[78]pnow_current_state is NULL, pointed out
by cube.
2006-08-06 18:21:32 +00:00
dyoung
0cf23243f9 Use ${SYSDIR}/arch/mips/ instead of ../mips/, which was fragile. 2006-08-06 17:22:47 +00:00
dyoung
bc21bda1c9 Make the 'tags' target work better: use ${SYSDIR}/arch/evbmips/
instead of ../evbmips/, which was pretty fragile.  Cope with long
argument lists using the echo ${args} | xargs ctags idiom used in
other architectures' tags target.
2006-08-06 17:21:58 +00:00
jmcneill
4b802ec0e1 PR/12843: Workaround for CS4280 on IBM ThinkPads. From Stephane Witzmann.
Note: This workaround conflicts with piixpm(4); you will need to disable
the piixpm driver if you need this fix.
2006-08-06 16:21:11 +00:00
xtraeme
e7d2347699 * Sync powernow_k7.c driver with OpenBSD, it seems to work much
better finding PST tables.
* Use functions defined in powernow_common.c to detect if the
  CPU can run powernow.
* Update the LKM with current code.
2006-08-06 16:05:07 +00:00
jmcneill
0eb9f3fd24 Regen. 2006-08-06 15:48:34 +00:00
jmcneill
5672a65632 Add entry for IBM ThinkPad audio. From Stephane Witzmann. 2006-08-06 15:48:12 +00:00
christos
dfb16d34c3 PR/34117: Takuya SHIOZAKI: enhancement for acpiapm(4)
- make sleep state corresponding to standby/suspend changeable by using sysctl,
- make sure to generate APM events appropriately.
- arrange the code for getting power status.
2006-08-06 15:47:51 +00:00
christos
0fe2e6efc3 PR/34116: Takuya SHIOZAKI: acpiapm(4) misuses config(9)
acpiapm(4) always matches the first node of AML, which is unrelated
with acpiapm. Separate acpi(4)'s children into two individual interface
attributes.
2006-08-06 15:46:54 +00:00
xtraeme
9c74798bdd AMD PowerNow!/Cool`n'Quiet driver for NetBSD/amd64,
adapted from OpenBSD.

Tested on a few machines:

http://bigbird.dohd.org:3021/NetBSD/dmesg
http://www.bsd.org.il/netbsd/acpi/dmesg

Thanks to cube, elad and others for testing and fixes.

Enabled by default on GENERIC.
2006-08-06 15:37:21 +00:00
bjh21
47ef6bac03 Using humanize_number() on clock speeds does more harm than good, and
precious little of either.  Go back to displaying them with all their digits.
2006-08-06 13:29:42 +00:00
martin
12cf319c62 Fix size confusion with lfs_fhandle - and as it now turns out to be the same
as the lfs compat_30_fhandle, g/c the latter.
Add an alias for the LFCNIFILEFH fcntl, so that binaries compiled in the
meantime (with too large lfs_fhandle) continue to work.

This makes vfs_cleanerd work again after the kernel checks filehandle size
more strictly (problem reported by Kurt Schreiner on current-users).
2006-08-06 12:34:12 +00:00
bjh21
891d055e7c Nothing in the tree pays any attention to "options NC" any more, so don't set
it.
2006-08-05 23:11:11 +00:00
bjh21
6e83f00384 The Hydra code should probably be removed, but until it is, it may as well
not generate spurious diffs in my tree, so bring it up to my working version.
2006-08-05 23:03:21 +00:00
bjh21
3c8394c448 Centralize the various checks for validity of a CPU context in one macro,
so we don't have to get it right in lots of different places.
2006-08-05 22:54:28 +00:00
bjh21
d97d9a1480 Xarm32VIDC has supported pckbd(4) for several releases now, so it's probably
safe to stop using rpckbd(4) in wscons configurations.
2006-08-05 22:33:44 +00:00
xtraeme
07e7c5a439 HPT368 support. Patch from Jonathan A. Kollasch via PR kern/34097.
Thanks.
2006-08-05 22:31:13 +00:00
bjh21
fc39059504 Clock frequencies tend to be big numbers -- use humanize_number() when
displaying them through printf.
2006-08-05 21:59:40 +00:00
sanjayl
265929b20e 1st cut of Powermac G5 support (uses bridge mode). 2006-08-05 21:26:48 +00:00
bjh21
69c3a7ed34 bcopy -> memcpy
bzero -> memset
2006-08-05 21:25:39 +00:00
bjh21
758ec34161 ANSIfy, un-__P, and generally KNF. 2006-08-05 18:22:57 +00:00
pavel
8bf13164fe defflag PPPOE_SERVER and PPPOE_TERM_UNKNOWN_SESSIONS. 2006-08-05 17:20:54 +00:00
bjh21
21a0df473c This file seems to be unused, left behind by the last I^2C overhaul.
Remove it.
2006-08-05 16:44:43 +00:00
bjh21
1426eb6e49 ANSIfy, un-__P, light KNF. 2006-08-05 16:38:57 +00:00
martin
f1dc5b61db Fix typo in comment 2006-08-04 23:18:53 +00:00
he
5ea0e70c68 Rearrange included headers and/or add include of <sys/types.h> and
<sys/lock.h>, so that the mipsco port can build again, ref.
  http://mail-index.netbsd.org/port-mips/2006/08/04/0000.html
Reviewed by thorpej
2006-08-04 22:42:36 +00:00
yamt
ac0b9042bb sys___fhstatvfs140: update a comment. 2006-08-04 17:07:32 +00:00
yamt
a4aecea36e compat_30_sys_getfh: check the size of filehandle. remove an unnecessary cast. 2006-08-04 16:58:27 +00:00
yamt
273fdcedb9 whitespace. 2006-08-04 16:36:44 +00:00
yamt
4977b4bbc0 some filehandle syscall related changes.
- remove the support of variable-sized filehandle from compat version of
  syscalls.  (strictly speaking, it breaks abi.  i don't think it's a problem
  because this feature is short-lived and there are no affected in-tree
  filesystems.)
- unify vfs_copyinfh_alloc and vfs_copyinfh_alloc_size.
- vfs_copyinfh_alloc_size: check fhsize strictly.
- reduce code duplication between compat and current syscalls.
2006-08-04 16:29:51 +00:00
yamt
e99f3cca81 vfs_copyinfh_alloc_size: fix indent. 2006-08-04 13:31:51 +00:00
mhitch
74f4d61b61 gcc4 fix: change a couple of volatile void functions. 2006-08-04 02:32:30 +00:00
mhitch
710f94acb4 gcc4 fix: needs string.h 2006-08-04 02:30:48 +00:00
mhitch
856bf4faf5 gcc4 fix: needs stdlib.h 2006-08-04 02:30:00 +00:00
mhitch
7e08a789a6 gcc4 fix: correct declaration of 'end'. 2006-08-04 02:26:49 +00:00
mhitch
1b474f00d6 gcc4 fix: change prototype and definition of volatile void usage(). 2006-08-04 02:23:23 +00:00
mhitch
370e3a585e gcc4 fix: need to cast string variable. 2006-08-04 02:21:19 +00:00
mhitch
8511e80fdb gcc4 fix: gcc4 more strict on checking signed/unsigned. 2006-08-04 02:19:55 +00:00
mhitch
5a37c00320 gcc4 fix: gcc4 bug generates a label twice. This label can't be conveniently
ignored like bpendtsleep, but a clue from the commit skipping the bpendtsleep
label for vax provides a workaround.  Move the label to an earlier location
and gcc4 only generates one label.  The label just marks the start of
memory protected during a memory test, so excluding a little more memory
from that test should be fine.
2006-08-04 02:17:34 +00:00
mhitch
26264a025e gcc4 fix: correct of couple of casting errors picked up by gcc4. 2006-08-04 02:09:19 +00:00
mhitch
7e0fcda313 gcc4 fix: include sy/device.h to pick up a definition of something which
I've forgotten - needed by gcc4.
2006-08-04 02:07:59 +00:00
mhitch
ce5b58c8c7 gcc4 fix: gcc3 was apparently more lax in structure declarations - change
order of including nextkbdvar.h and wskbbdmap_next.h.
2006-08-04 02:05:12 +00:00
mhitch
b9021f4ff0 gcc4 fix: correct declaration of 'end'. 2006-08-04 01:58:49 +00:00
mhitch
1f636ff58a gcc4 "uninitialized" variable; previous workaround doesn't satisfy gcc4 -
explicitly initialize drq.
2006-08-04 01:56:42 +00:00
mhitch
4016823297 gcc4 fix: needs stdlib.h 2006-08-04 01:51:31 +00:00
mhitch
3264771d41 gcc4 fix: static devsw didn't match the prototype. 2006-08-04 01:50:30 +00:00
mhitch
c97e01a899 gcc4 fixes: need to include stdlib.h; fix prototype and definition of
local error() function.
2006-08-04 01:48:02 +00:00