Commit Graph

45717 Commits

Author SHA1 Message Date
kiyohara
9f0e854e77 Remove white spaces. 2007-09-16 13:47:19 +00:00
kiyohara
e70a0d2e8c + Add comment at btuart.
+ Add INCLUDE_CONFIG_FILE and UFS_DIRHASH.
+ Add white space at file-system and enabled some file-system.
+ Comment-outed un-major devices.
+ Add stuirda, uchcom, ugensa.
2007-09-16 13:44:38 +00:00
scw
e73cf3ca4c ARM cpu_switchto() has been partially broken since yamt-idlelwp was merged
as its cache/tlb management smarts relied too heavily on pre-merge context-
switch behaviour. See PR kern/36548 for one manifestation of the breakage.

To address this:
 - Ditch the shadow pmap variables in the PCB (pagedir, l1vec, dacr, cstate)
   as it was too easy for them to get out of sync with the pmap.
 - Re-write (and fix) the convoluted cpuswitch.S cache/tlb ASM code in C.
   It's only slightly less efficient, but is much more readable/maintainable.
 - Document cpufuncs.cf_context_switch() as being C-callable.
 - pmap_activate() becomes a no-op if the lwp's vmspace is already active.
   (Good performance win, since pmap_activate() is now invoked on every
   context-switch, even though ARM's cpu_switchto() already does all the
   grunt work)

XXX: Some CPU-specific armXX_context_switch() implementations (arm67,
arm7tdmi, arm8) always flush the I+D caches. This should not be necessary.
Someone with access to hardware (acorn32?) needs to deal with this.
2007-09-15 09:25:20 +00:00
he
ed42b680fa Fix build problem: ensure uintptr_t is declared by including <sys/stdint.h>.
OKed by skrll.
2007-09-15 08:05:34 +00:00
njoly
e39e9dc117 Do not include opt_*.h unless _KERNEL_OPT is defined 2007-09-14 09:34:56 +00:00
martin
c068dc64a3 Rename the option to enable ISO 9660 file system support from ..._HSFS
to ..._CD9660.
2007-09-14 09:26:45 +00:00
martin
6bcd1bdf6f Make sure the buffer used to read from disk is properly aligned to cast
it into a struct disklabel pointer w/o alignement problems.
(Bug did not hit by pure luck with our default optimization settings)
2007-09-14 09:19:39 +00:00
aymeric
ccf07f8137 add support for the "newer" trackpads found at least in the last generation
G4 powerbooks (powerbook5,8). Information found in the Linux driver.
2007-09-14 07:49:29 +00:00
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