Commit Graph

94098 Commits

Author SHA1 Message Date
martin
26190df844 Fix minor device_t split fallout. 2008-04-21 08:16:12 +00:00
ad
185116891b Don't send signals from a hardware interrupt handler. XXX This is still
dodgy, because sc->sc_asyncproc can exit and we don't find out about
that.
2008-04-21 00:30:21 +00:00
tls
002d314a9b Don't use mtrr functions if not options MTRR. There are many more instances
of this bug, particularly in the COMPAT_FOO32 code.
2008-04-21 00:18:39 +00:00
ad
e655812d5c Regen. 2008-04-21 00:14:22 +00:00
ad
08b44dd8b9 timer fixes for PR 37093:
- Fix serious concurrency problems, making the code MT and MP safe in
  the process.
- Don't allocate memory or inspect process state from hardclock().
2008-04-21 00:13:46 +00:00
oster
6fef1b6c62 Cleanup function prototypes. No functional change. 2008-04-20 20:46:41 +00:00
oster
5654bb482d Introduce a function to return the default head separation for RAID 1
sets.  This helps ensure that the sliding status window (coming soon!)
for reconstructs will always be correct.
2008-04-20 20:42:32 +00:00
ad
573e08da0c ttys are allocated/freed infrequently enough that there is no point having
a seperate pool for them.
2008-04-20 19:30:13 +00:00
ad
664f91e474 Improve ^T / SIGINFO handling:
- Restore code removed during LWPification.
- Don't touch proc state from a hardware interrupt handler.
- Fix the locking.
2008-04-20 19:22:44 +00:00
rafal
e43f18015f Fix detection / attachment of CF / PCMCIA cards present at boot-time. This
was broken by one of the early vmlocking merges, which removed the kthread
that did the initial detection / attachment and instead called the code
directly from the PCMCIA controller attach method.

Submitted in PR port-hpcarm/37227 by Peter Postma; I've tweaked it ever-so-
slightly.
2008-04-20 16:47:52 +00:00
jmcneill
865860bc30 Improve error reporting when we fail to enter a sleep state, eg:
acpi0: entering state 1
  acpi0: ACPI S1 not available on this platform
2008-04-20 16:26:36 +00:00
rafal
6583c572da Enlarge the number of L2PTs used for mapping the kernel since our kernels
have gotten fatter with age and even the stock kernels were bigger than the
code could handle.

Thanks to Jason Mitchell for sending me a Jornada 720 so I could actually
test this.
2008-04-20 16:19:46 +00:00
tsutsui
bd8476b16b Misc cosmetics. 2008-04-20 15:44:01 +00:00
tsutsui
fa0277bb60 - use uint8_t instead of u_char for unsigned byte values
- make cs_softreq volatile
2008-04-20 15:42:47 +00:00
scw
3fd7f57e57 There's really no need to switch VM contexts within cpu_switchto() as
MI code always calls pmap_deactivate/pmap_activate on context switch.

Instead, just record the last active lwp (or NULL if it exited) and
defer switching VM context to pmap_activate(). This saves an additional
function call overhead in cpu_switchto().

While here, g/c unused cpuswitch.S local .Lblock_userspace_access.
2008-04-20 15:42:19 +00:00
scw
9d52faae48 Pull in a couple of fixes from FreeBSD, the first of which addresses a
failure of wpa_supplicant(8) to re-key promptly, as reported in
http://mail-index.netbsd.org/tech-net/2008/04/18/msg000459.html

- Make bpf's read timeout work more correctly with select/poll.

- A fix for catchpacket() which delays calling bpf_wakeup() until
  the state has been updated.
2008-04-20 15:27:10 +00:00
tsutsui
669312ed5a Regen from isapnpdevs rev 1.66:
> Add an entry for Symbios SYM53C416.
2008-04-20 13:26:14 +00:00
tsutsui
40e734e069 Add an entry for Symbios SYM53C416. 2008-04-20 13:24:34 +00:00
chris
6cdf1e4c64 PXA270 uses a 3.25Mhz clock for OS timers, not 3.6864Mhz.
Also while here fix the delay loop used before timers are enabled to
cause a delay, by using a volatile int to do a countdown.  gcc has become
intelligent enough to optimize an empty loop away.

For delay on PXA270 we should use one of the other counters, and a 1Mhz
clock, so that we don't have to computer the counter increment.

XXX: also looks like there's a bug if the counter wraps, as delay doesn't
look like it allows for that.
2008-04-20 10:21:13 +00:00
tsutsui
cd2cdc0b9a No need to check whole alldevs to search a specific dmac unit in dmac3_link(). 2008-04-20 09:26:12 +00:00
cube
4e49392569 Restore jumbo frame support and protect access to the DMA space for
received frames with a mutex.

Tested by Paul Goyette, Martin Husemann and myself.
2008-04-20 08:57:37 +00:00
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
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
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
njoly
416b3edee6 Add missing agp support for ALI M1689 chipset, for PR/35416. 2008-04-19 09:26:56 +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
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
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