Commit Graph

45709 Commits

Author SHA1 Message Date
xtraeme 6da6e7a3b7 GENERIC_LAPTOP -> add aps(4) commented out
ALL -> add aps(4)
2007-09-11 21:59:10 +00:00
xtraeme 1dac9ede4d New aps(4) driver for IBM Thinkpad Active Protection System.
Exports some sensors through the envsys(4) framework available
in some Thinkpad laptops.

Ported by Pierre Pronchery from OpenBSD, via PR port-i386/36852.

Tweaks, LKM and misc improvements by me. Added into i386/GENERIC
commented out.
2007-09-11 21:46:52 +00:00
skrll 2d9c4abfb1 Always provide __cpu_simple_lock_{set,clear}.
Fixes LOCKDEBUG kernel builds.
2007-09-11 21:01:40 +00:00
martin 913f43886d Cleanup cpu_info: get rid of ci_number and ci_upaid, use ci_index
and ci_cpuid instead.
2007-09-11 16:00:05 +00:00
skrll 9fdaf800d9 Merge nick-csl-alignment. 2007-09-10 11:34:05 +00:00
cube c725329722 Remove 3rd clause and my name from all the licences which were only in my
name.
2007-09-10 10:35:51 +00:00
martin e680b6ed1a Make cpufrequency and friends per cpu values.
Prepare a hz tick interrupt on secondary CPUs via %tick, but do not
enable it yet, as it breaks ddb.
2007-09-09 22:37:39 +00:00
martin 0b1fe292ea Do not ACK IPIs before we finished loading all arguments. 2007-09-09 16:29:55 +00:00
gdt c6d3ad8ec3 enable cgd to reduce diffs to GENERIC 2007-09-08 12:11:58 +00:00
lukem c3484cafd1 Change AMIGA to just include GENERIC and disable the DraCo stuff. 2007-09-07 12:53:40 +00:00
lukem 2c4f38e052 Fix caddr_t fallout; use "uint8_t *" as the type for sc_intack because that
seems it will result in the closest behaviour to that of the caddr_t
abusing code (which did, amongst other things, " *sc->sc_intack = 0; ".)
2007-09-07 10:34:58 +00:00
lukem 2ca22235a0 Change WSCONS to just include GENERIC, enable wscons devices,
and disable conflicting other-style console devices.
2007-09-07 10:08:35 +00:00
martin 5bb7297fe4 Remove the (now unused) second 64k page mapped per CPU.
From matthew green, with small changes by me. All bugs are mine.
2007-09-06 20:22:51 +00:00
martin c5afd73c62 Do not call smp_tlb_flush_all() on every pmap_update() - it is too big
a hammer and papers over other problems. We need to revisit this and
fix it correctly soon.
2007-09-06 19:36:33 +00:00
joerg beb47a3000 Add some options and drivers only found in GENERIC_LAPTOP:
- add PMS_SYNAPTICS_TOUCHPAD
- add njata at cardbus
- add re at cardbus
- add stuirda at uhub
- add ugensa at uhub
2007-09-06 18:09:00 +00:00
martti 0f6d8bb8f7 Fixed indentation (it should be <keyword><space><tab><name>tab><comment>). 2007-09-06 11:05:33 +00:00
martti 69ed1f7c4c Fixed indentation (it should be <keyword><space><tab><name><tab><comment>). 2007-09-06 10:24:13 +00:00
he a37504be16 Remove a now-unused local variable. 2007-09-06 08:52:36 +00:00
joerg 2b7b64c970 Enable CGD in GENERIC for amd64 and i386. 2007-09-06 00:31:08 +00:00
bouyer 94525f8950 Re-enable interrupts before checking for RAS; pointed out by YAMAMOTO Takashi. 2007-09-05 19:30:01 +00:00
bouyer d61110de20 Switch to dynamically-sized grant tables, available since Xen-3.1.0.
This removes a hard limit that would prevent a guest from running with more
than 7 virtual network interface.
If running on a hypervisor that doesn't support GNTTABOP_query_size, fall back
to a 4-pages grant table, so this change is backward-compatible.
2007-09-05 19:15:42 +00:00
bouyer 26281fbd54 Fix build failure when for kernel with options LOCKDEBUG.
Pointed out by Christoph Egger.
2007-09-04 21:19:11 +00:00
yamt 7f9dc6bf93 compilation fixes. (simple_lock/unlock -> mutex_spin_enter/exit) 2007-09-04 13:50:26 +00:00
drochner dce09ea075 clean up some definitions around rune_t which are not needed anymore 2007-09-03 20:31:56 +00:00
xtraeme dc25cf6f51 Add uchcom(4) and uslsa(4). 2007-09-03 20:04:22 +00:00
xtraeme 2f72b95a3d Add uchcom(4). 2007-09-03 20:02:58 +00:00
tshiozak d0a32c7b25 add support for WinChipHead CH341/340 USB-Serial bridge. 2007-09-03 17:57:36 +00:00
he 3363bff15a Rename function argument from command to cmd, to make the code
actually build after the previous change.

Also remove a local variable which is no longer used.
2007-09-03 11:30:04 +00:00
he 2f1d720086 Rename function argument from command to cmd, to make the code
actually build after the previous change.
2007-09-03 11:29:43 +00:00
xtraeme c350e25fb3 - Always use PIO Format 1, which allows independent control of command
and data (PIO Format 0 selects the speed of the slowest drive).
- Set correctly Ultra DMA and Multi-word DMA modes.
- Update comments to be more correct after reading again the datasheet.
2007-09-03 11:16:28 +00:00
xtraeme b1d137e8f4 Improve some comments. 2007-09-03 03:35:00 +00:00
macallan d7a5c78c74 look for an ATY,RefCLK property and pass it to the console device if found.
For radeonfb so it doesn't have to guess the reference clock.
2007-09-02 18:45:36 +00:00
jmmv 54a752b11b Properly use the return value of a bswap16 call. Caught when building
a kernel with -O0.
2007-09-01 22:01:53 +00:00
ober 2689a1e1e8 Attach to ICH8M LPC.
Tested watchdog and it works.
ok xtraeme@
2007-09-01 21:52:06 +00:00
mhitch 9b0f085da1 68030 and 68040 processors consider the read portion of a read-modify-write
transfer as a write to ensure the memory is writable before starting any
transfer.  The fault status information does not reflect this in the 'read'
status bit (i.e. it shows up as a read access), so faults with a RMW access
to non-writable memory was not getting the correct protection.  The page would
be read-only and the instruction would fault over and over.

A specific example is when a process forks, and the child process attempts
to execute a RMW access to a data page, which is read-only because it's CoP
Copy-On-Write.

When checking if the page needs to be writablek, also check the locked transfer
and treat any locked transfer as a write.

68060 already handled this correctly, since it has separate read and write
fault bits, and both are set on a RMW access and the trap code was checking
the write status bit.

Fixes PR#36848.
2007-09-01 21:31:55 +00:00
hauke e7c76ac0ee Leverage the new config(8) options for disabling features. This way,
it is easier to keep kernel configuration files up-to-date.

While we are here, disable a few compat options - NetBSD 1.5 has been
a while.

Tested on a Macintosh SE/30 with ae(4) ethernet card.
2007-09-01 20:11:40 +00:00
dyoung 096642c5c2 Add se(4). 2007-09-01 17:54:48 +00:00
jmmv 2c9fe9540d Let this build if scsi support is not built into the kernel. 2007-09-01 14:44:08 +00:00
jmmv 4654a3acfd Fix build after dyoung's changes. 2007-09-01 14:27:56 +00:00
yamt b255678460 revert a part of the previous. (typo in a comment) 2007-09-01 10:53:02 +00:00
yamt 73969496b3 reduce cosmetic differences between i386 and amd64 pmaps.
(whitespace, ansify, etc.)
no functional changes are intended.
2007-09-01 10:47:43 +00:00
yamt 901ed7aed2 remove a stale comment. 2007-09-01 09:15:09 +00:00
yamt 58fb7deca6 use UVM_OBJ_INIT. 2007-09-01 09:14:31 +00:00
yamt f70c0fb34e remove arguments which is no longer necessary. 2007-09-01 09:12:29 +00:00
dyoung dcd8923429 Change a bazillion occurrences of code resembling this,
error = (cmd == SIOCADDMULTI) ?
	    ether_addmulti(ifr, &sc->sc_ec) :
	    ether_delmulti(ifr, &sc->sc_ec);

	if (error == ENETRESET) {

to this,

	if ((error = ether_ioctl(ifp, cmd, data)) == ENETRESET) {

which does the same thing.

(A bazillion is a very large number.  This seems to make the i386
ALL kernel smaller by 3kB to 4kB.)

Use ifreq_getaddr() twice in es(4).

Whitespace nits.
2007-09-01 07:32:22 +00:00
pavel ce71996a9e Put the declaration of cpu_softc and #include of sys/device.h inside
#ifdef _KERNEL to reduce the namespace pollution from proplib which
causes build failure in libexec/ld.elf_so.
2007-09-01 06:41:28 +00:00
drochner 0e0fe2c353 Fix definitions of UCHAR_MAX/USHRT_MAX and related
types. C99 requires that these definitions promote to (signed/unsigned)
integer the same way as the types the definition is for. And since
unsigned char/short fit into an "int" on all our archs and thus promote
to signed int, the definitions must not be unsigned.
Fixes PR lib/31306 by Neil Booth.
2007-08-31 16:24:21 +00:00
ad f885d98970 Fix build failure in pmap_tlb_shootdown(). 2007-08-30 18:14:11 +00:00
jmmv ebcc6a8e1a Fix typo in comment. 2007-08-30 11:37:53 +00:00
ad 68ee7ce6f5 amd64 doesn't have opt_noredzone.h. Just test DIAGNOSTIC instead. 2007-08-30 11:32:09 +00:00