Commit Graph

168946 Commits

Author SHA1 Message Date
mlelstv 77f5b73003 When unp_internalize fails (due to the sanity check or an out-of-memory
condition), it leaves the control message with file descriptors. Calling
unp_dispose() will interpret the message as containing file pointers
and crash the system.
This change removes unp_dispose() from this failure path and avoids
using goto to jump into switch statements...
The previous workaround to ignore such messages in unp_scan() is removed.
2008-04-20 07:47:18 +00:00
mrg 9770ba3578 bump libbfd major since its ABI changed 2 weeks ago. 2008-04-20 07:11:21 +00:00
tsutsui 80b6cbc853 - use device_lookup_private() where appropriate
- some KNF and cosmetics
2008-04-20 03:05:55 +00:00
tsutsui 76e1faa427 Split device_t/softc, as following its parents zsc(4). Spotted by isaki@. 2008-04-20 02:28:05 +00:00
mjf ede732e020 If cm->cmsg_len is not valid for unp_internalize do not use it to work out
where the data is in unp_scan.

Fixes PR/38391
2008-04-19 22:26:52 +00:00
martin 41de77d985 Sync SCM_RIGHTS passing code with the version used in racoon (i.e.
set message header and controll message size to the same value again)
2008-04-19 22:15:30 +00:00
macallan 72582f8379 Follow changes in xsrc to allow mmap()ing IO space on shark.
Now we have X on rev. 4 sharks.
2008-04-19 20:53:36 +00:00
scw 38ba2c7267 Adapt to the recent i2c_bitbang changes, which provide more hints as to
the SDA/SCL pin direction, by treating the direction as just that; a hint.

Instead, configure the SDA/SCL pins as outputs only when they are to
be driven low (zero). Otherwise configure them as inputs and allow the
pull-up resistors to do their jobs.

Check the SDA direction hint only if DIAGNOSTIC.

Fixes a problem reported by Donald T Hayford on port-arm@ whereby the
kernel failed to read/write the RTC's registers.
2008-04-19 20:49:31 +00:00
plunky 7c3f385475 correct cut and paste error in uuid_dec_be(); le16dec -> be16dec 2008-04-19 18:21:38 +00:00
simonb cd6e2e6d8b Use ANSI prototype for cyrix6x86_cpu_setup(). 2008-04-19 14:33:08 +00:00
cegger 781f72a712 Use interrupt biglock wrapper as in x86/x86/intr.c
This change is based on http://mail-index.netbsd.org/port-amd64/2004/02/22/0000.html
OK bouyer
2008-04-19 13:46:12 +00:00
cegger ed5b592b8e idt_* are not implemented for Xen. So don't provide the prototypes for Xen. 2008-04-19 12:10:08 +00:00
hannken 0789b071d1 Remove a race when pages are released while waiting for fstrans_start().
Fixes PR #38460
2008-04-19 11:53:13 +00:00
hannken dc04f63f5b Remove stale include <sys/fstrans.h>. 2008-04-19 11:49:54 +00:00
yamt bc776d3d3f add yamt-pf42 branch 2008-04-19 09:29:06 +00:00
njoly 416b3edee6 Add missing agp support for ALI M1689 chipset, for PR/35416. 2008-04-19 09:26:56 +00:00
lukem e11ffebb07 Document the callback API used by "standard" functions.
NOTE: some of these will be changing in the future to be more
consistent with the technique used in the group & passwd backends.
I'm just documenting the existing behaviour.

Be more consistent when using certain terms.
Rename some variables to reduce confusion.
2008-04-19 08:24:45 +00:00
lukem e39aac16df Add a missing const. 2008-04-19 07:56:34 +00:00
tsutsui 74a2e40f00 The DP83932C manual says the CAM enable register (CER) can't be
accessed on normal operations and the CER should be set up
through the last entry in the CAM desciptor area and loaded
via LCAM command, so make our driver do so, though the previoius
code (writing CER directly) worked without problems.

Tested on sn at jazzio on arc (in 32bit mode) by me and
sn at nubus on mac68k (in 16bit mode) by Paul Ripke on port-mac68k.
2008-04-19 06:59:08 +00:00
tsutsui 12cb822366 Fix a typo which is fatal on cards configured in 16 bit mode.
Problem is reported and fix is confirmed by Paul Ripke on port-mac68k.
2008-04-19 06:39:43 +00:00
simonb 822574d0ac Reduce differences in dmesg output between i386 and amd64 slightly, both
now print "cpuN: features ....".
2008-04-19 06:29:23 +00:00
nisimura ada4901876 - make pci.c construct more canonical. PCI bus plumbing groveller
now take a ptr to a function and an opaque data to achieve the
  specific work.
- this file is going to become a general form when brd specific
  params are encapsulated in an instance as struct.
2008-04-19 04:57:55 +00:00
nisimura 0571a09251 porting explanation take 2 after an accidental quit from CVS editor.
- target differences are considered minor and adaptable by heuristics
  in pci/pci_machdep.c and machdep.c.
- kernel expects sane runtime HW settings when it gains control.
  All tweaks should have been completed by bootloader.
- consults stand/ for reference. The implementation will change
  from time to time.

communications to power control satelite processor is to be done by
a kernel thread and sysctl knobs with help of possible user agent
deamon.
2008-04-19 02:01:03 +00:00
nisimura ce3843236c bootinfo usage and porting guide.
- Kernel expects a ptr to bootinfo structure in arg3.
- The bootinfo definition is in include/bootinfo.h
- CLOCK and CONSOLE designations are important during initial bringup
  efforts.  machdep.c consults memory controller parameters when no
  MEMORY was specified.
- autoconf.c determines ROOTDEVICE and BOOTPATH.
- target differences
2008-04-19 01:22:35 +00:00
tsutsui effdbc2aa4 - use aprint_*() variants only in functions called during autoconf(9)
- wrap long lines
2008-04-18 19:01:15 +00:00
joerg 5d29393a65 NetBSD has no such thing as DEVICE_POLLING, so remove it. 2008-04-18 16:05:30 +00:00
cegger 0f42d52a84 Make this build on Xen and MULTIPROCESSOR.
OK bouyer
2008-04-18 15:49:39 +00:00
cegger e1f7ded34b g/c unused ioapic_bsp_id.
Per discussion with bouyer.
2008-04-18 15:32:46 +00:00
cegger 5db505451b Fix panics at boot and some other misc bugs. From Hans Rosenfeld. 2008-04-18 14:56:40 +00:00
garbled 6f4524c1a6 Fix a stupid typo in a comment. Pointed out by Juergen Hannken-Illjes. 2008-04-18 08:05:05 +00:00
garbled 1ad3697abd Back out the ppc assembler changes for memcpy/memmove/memcmp on evbppc.
It breaks the explora because the cpu (403) cannot deal with unaligned
accesses.  Reported by Juergen Hannken-Illjes.
2008-04-18 05:34:04 +00:00
bouyer ad2fcdc36d Do not set ioapic_bsp_id in cpu_attach_common(). It's already initialized
in cpu_attach(), and doing it here will overwrite the cpu_number of the
physical CPU with the one from the virtual CPU (which is always 0).
XXX is ioapic_bsp_id read somewhere ?
2008-04-17 21:25:00 +00:00
xtraeme e7638e85c4 Remove the 'dvnprinted' bool member of sensor_t, it's unused. 2008-04-17 21:19:12 +00:00
xtraeme b16a06cd38 * Add support to show output from specified sensors in multiple devices
via the -s flag (the requirement for -d is not there anymore). [1]

You can do something like the following now:

$ envstat -s "acpibat0:charge,acpibat0:charge state,acpitz0:temperature"
[acpibat0]
       charge:      3.015 Ah (79.70%)
 charge state:     NORMAL
[acpitz0]
  temperature:     54.000 degC
$

* As bonus, the code has been modified to use a simple queue for
  the sensors, and this has simplified and improved some parts of the
  code as well.

[1] Item requested by joerg@ yesterday.
2008-04-17 20:51:48 +00:00
christos 07975baeb4 join line for symmetry. 2008-04-17 20:16:46 +00:00
xtraeme 2930df439c Make this work again, now that ACPI_TYPE_ANY returns NULL objects
after recent ACPICA update.

Applied patch from Geoff Wing on current-users@.
2008-04-17 19:57:27 +00:00
xtraeme 035163789f Make this build again... HI XTOS. 2008-04-17 19:50:38 +00:00
christos cc0f1a1e88 regen 2008-04-17 19:12:49 +00:00
christos f0b645b98a sync with openbsd; fixes observed corruption issues. 2008-04-17 19:12:26 +00:00
cegger 60fafd3b9b wrap long line. Requested and OK by simonb. 2008-04-17 18:45:08 +00:00
njoly 3dadb2a2df Regen for sys_clock_{getres,gettime,settime} syscalls. 2008-04-17 17:48:40 +00:00
njoly c007e33a3a Add compat linux32 sys_clock_{getres,gettime,settime} syscalls. 2008-04-17 17:47:23 +00:00
apb 01a2b8e8ab Clarify the range of the result from toascii. 2008-04-17 16:41:00 +00:00
apb 576ccca3eb When given negative inputs, isascii returns false. Clarify that
it checks for the range 0 to 127, not "less than or equal to 0177".
2008-04-17 16:40:20 +00:00
apb a754895afc Refer to the CAVEATS section of ctype(3) for more information. 2008-04-17 16:25:36 +00:00
apb bafb5bb96d * Expand the CAVEATS section with a lot more detail on how to safely
use the ctype functions.
* Use toupper((int)(unsigned char)*s)) instead of just
  toupper((unsigned char)*s) in an example.
2008-04-17 16:24:40 +00:00
yamt d8d1533c48 pidtbl_dump: use queue.h macros. no functional change. 2008-04-17 14:16:22 +00:00
yamt 91c77f1c78 enterpgrp: update a comment. 2008-04-17 14:14:20 +00:00
yamt 69bbf68c6e acquire proclist_lock for SESSHOLD/SESSRELE. 2008-04-17 14:07:31 +00:00
yamt bc397338d9 sched_tick: don't expire timeslices for SCHED_FIFO lwps. 2008-04-17 14:03:42 +00:00