Commit Graph

44253 Commits

Author SHA1 Message Date
ober
5c470843ae Updates to allow Zaurus screen to rotate 90 degrees to a usable state with the keyboard. Patch from peter@ copied from OpenBSD. Feedback and OK from matt@ 2007-02-02 02:10:24 +00:00
skrll
52ca267ebe Workaround PR/35531 by preventing iee(4) from matching the 82596DX/SX
chip variant and adding ie(4) to the kernel to match it - ie(4) works.
2007-02-01 21:09:42 +00:00
tron
7b011b26ee Disable wsmouse(4) and all the related low-level drivers The installer
ramdisk doesn't support using the mouse anyway.

Idea provided by Blair Sadewitz in private e-mail.
2007-02-01 21:07:45 +00:00
freza
898efa526f Local variables bat{u,l} are only needed by OEA code, so ifdef them. 2007-02-01 19:59:03 +00:00
freza
55f2d910e2 On ibm405 (which the true meaning of PPC_IBM4XX), anything outside
kernel VM range is supposed to be mapped via reserved TLB entries,
so allow such VAs through.

Fixes kgdb failure observed by Jean-Francois Boudreault on port-powerpc
(thanks for testing, too).
2007-02-01 15:18:57 +00:00
freza
4a09a01492 Document that unprotected access to softintr cookie is safe in
softintr_disestablish(), upon request from uebayasi@.
2007-01-30 05:42:24 +00:00
freza
4bf0309687 Protect softintr queues by direct manipulation of PSL_EE because PowerPC
ports have different IPL hierarchies. On macppc, IPL_VM is below IPL_AUDIO
and IPL_SERIAL so the queues got corrupted due to priority inversion.
Also fix a race condition in softintr_schedule() when testing "si_refs > 1",
it can lead to queue corruption and subsequent panic (below). As a side
effect, using PSL_EE directly is faster than going via spl*()/splx().

This is supposed to fix (XXX I don't have the hw):

  Panic: kernel diagnostic assert "si->si_refs > 0" failed: file
  "[...]arch/powerpc/powerpc/softintr.c" line 116

reported for example in:

  http://mail-index.netbsd.org/port-macppc/2007/01/25/0001.html

Discussed with briggs@ and macallan@.
2007-01-30 05:25:15 +00:00
hubertf
eda05c6413 Remove more duplicate headers.
Patch by Slava Semushin <slava.semushin@gmail.com>

Again, this was tested by comparing obj files from a pristine and a patched
source tree against an i386/ALL kernel, and also for src/sbin/fsck_ffs,
src/sbin/fsdb and src/usr.sbin/makefs. Only changes in assert() line numbers
were detected in 'objdump -d' output.
2007-01-29 01:52:43 +00:00
pooka
7f95c564bd add puffs 2007-01-28 20:55:20 +00:00
hubertf
9f04f18402 Enable Altq and some others, sinced from GENERIC 2007-01-27 23:41:09 +00:00
he
2bfaf840fc Fix description of the 82443BX workaround to use "stepping" instead
of "revision".
2007-01-27 23:10:21 +00:00
cbiere
5bc2b7285f Don't define UNALIGNED_ACCESS, it's not used anymore. 2007-01-27 07:21:32 +00:00
dyoung
2496a279f8 Define some more registers on the AMD Elan SC520, according to the
datasheet.
2007-01-26 19:42:56 +00:00
rpaulo
f8716dbbb5 Don't panic with "lazy bum". I have a machine that can boot multiuser
and run on SMP with this panic commented out.
No replies on tech-kern about this.
2007-01-26 12:44:50 +00:00
macallan
2b8bf5f8d1 have OF re-initialize the console before calling OF_exit() so we actually
end up in something usable
2007-01-25 02:20:23 +00:00
tshiozak
72fabe35a2 In acpi_restorecpu, "pushl ret_addr" was wrong.
this decrease esp unsuitably.  this may crash the kernel while leaving
acpi_md_sleep().  (rely on the code generation options passed to cc)
2007-01-24 20:32:45 +00:00
tls
698fb43463 Remove option COMPAT_386BSD_MBRPART from default kernels. NetBSD has
not used partition ID 0x165 for many, many years, and the presence of
this option in INSTALL kernels can cause overwriting of existing FreeBSD
installations when sysinst writes back the disklabel.  Those with very,
very old NetBSD installations may find that they must update their fdisk
partition tables to use partition ID 0x169 for their NetBSD partitions.

This seems like the best of a number of lousy choices for dealing with
this problem.  Sysinst should perhaps grow code that asks whether an
existing 0x165 partition should be converted.

~
2007-01-24 19:46:25 +00:00
hubertf
142c2a33ba Remove duplicate #includes, patch contributed in private mail
by Slava Semushin <slava.semushin@gmail.com>.

To verify that no nasty side effects of duplicate includes (or their
removal) have an effect here, I've compiled an i386/ALL kernel with
and without the patch, and the only difference in the resulting .o
files was in shifted line numbers in some assert() calls.
The comparison of the .o files was based on the output of "objdump -D".

Thanks to martin@ for the input on testing.
2007-01-24 13:08:11 +00:00
mrg
384736624e add a LOUD comment that this kernel does not work yet. 2007-01-24 05:53:56 +00:00
tsutsui
a32a73741e Two fixes to avoid lost softintr (probably caused by some race condition):
- make sh_pending in struct softintr_handler volatile
- activate softintr unconditionally in softintr_schedule()
2007-01-23 16:03:43 +00:00
tsutsui
920dd50438 Use bus_space(9). 2007-01-23 15:58:22 +00:00
he
680cc3ab67 According to http://www.intel.com/design/chipsets/specupdt/290639.htm,
the BIOS bug workaround for the i82443BX chipset's DRAM leadoff timing
parameter is not needed for revisions >= C0, so avoid tweaking that
parameter in that case.

Earlier, this would trigger NMIs on fully memory-populated Compaq
1850R systems, where the BIOS appears to program and require a non-
standard value for this parameter.

Thanks to Chris Ross for the diagnosis and the fix!
2007-01-23 10:45:33 +00:00
macallan
3ee719808f of_compatible() returns -1 not 0 when nothing matches. Doh. 2007-01-22 00:10:27 +00:00
macallan
130442d345 make OF_interpret actually deal with input arguments 2007-01-21 23:59:39 +00:00
macallan
ed57b01256 add bus_space_*_stream() methods 2007-01-21 23:19:57 +00:00
kiyohara
e3e6e213ed follows to style guide and C99.
Add ARGSUSED and __unused.
  Remove braces at return.
Use device_private() and aprint_*().
2007-01-21 11:01:09 +00:00
tsutsui
56b4b91a79 Recognize more AMD64 CPUIDs. 2007-01-21 08:47:43 +00:00
bouyer
89b7593e6a Xen3 linux guests seems to loan a lot of pages for some disk transfers,
and eventually run out of XENSHM_NPAGES for a single transfers.
Bump XENSHM_NPAGES by 10 for xen3 to avoid deadlocks in such case.
2007-01-20 22:01:06 +00:00
he
ceeb812c89 Unify the declaration of OF_interpret() between sparc{,64} and macppc
by adding the "nargs" argument to the macppc version, and fix the macppc
ports uses of OF_interpret() accordingly.

Also move the declaration of OF_interpt() from macppc's autoconf.h to
ofw/openfirm.h.  This fixes the build of the macppc port.

Approved by macallan@.
2007-01-20 21:42:12 +00:00
xtraeme
dade97a1c0 Do not attach this driver if idhi and idlo are the same frequency,
I've seen that in some Intel Core Duo CPUs.
2007-01-20 20:24:13 +00:00
xtraeme
614a7d1ec6 Remove extra '()' around the string 'MHz'. 2007-01-20 20:19:36 +00:00
xtraeme
a3252760bc viaenv(4) does not need anymore viapm. 2007-01-20 18:48:17 +00:00
gdt
4a62427865 KNF/whitespace in code I recently added; no real changes. 2007-01-20 14:46:21 +00:00
isaki
18d9998d72 Add AMD Geode LX.
OK'ed by tsutsui@ on port-i386.
2007-01-20 10:28:49 +00:00
kiyohara
672e3eab7c Sorry...
btuart not yet.
2007-01-18 10:24:53 +00:00
kiyohara
a9dae91c04 Support com*.
Add options GXIO_BLUETOOTH_ON_HWUART, but not yet btuart.
Cleanup some configurations.
2007-01-18 10:15:20 +00:00
kiyohara
a847a1afbe Initialize GPIO of *UARTs and supports. 2007-01-18 10:06:47 +00:00
kiyohara
7dbdf0112d Use device_private() and aprint_*. 2007-01-18 10:02:55 +00:00
macallan
6a0b5a67e6 add commented out definitions for new ADB subsystem and G3 audio 2007-01-18 00:58:55 +00:00
macallan
38b072ded2 make some tables static to avoid collisions 2007-01-18 00:43:00 +00:00
macallan
15a3f9b614 fix accidential commit, this time really only add the bus_space_tag 2007-01-18 00:19:30 +00:00
macallan
c11af36bf1 pass a bus_space_tag to children 2007-01-18 00:17:22 +00:00
macallan
834aa52ed6 shuffle #includes, add a bus_space_tag 2007-01-17 23:39:09 +00:00
macallan
4cc86139d1 add iBook keyboard type 2007-01-17 23:36:37 +00:00
macallan
0990226c00 use sgsmix if present and appropriate 2007-01-17 23:34:29 +00:00
macallan
8e8447a9f0 use pmu and cuda for reset, shutdown etc. when appropriate
also deal with adbkbd vs. akbd
2007-01-17 23:27:59 +00:00
macallan
a17b551fce new drivers for pmu and cuda 2007-01-17 23:25:45 +00:00
macallan
14e075c835 add pmu and cuda at obio 2007-01-17 23:23:08 +00:00
macallan
02a1d394fc finding the console node / instance handle moved into machdep.c 2007-01-17 23:08:08 +00:00
macallan
398d6bdd70 prefix a hexadecimal address with 0x 2007-01-17 23:05:49 +00:00