Commit Graph

97927 Commits

Author SHA1 Message Date
matt d2dce27b37 Rename gpio.h to gpiovar.h. Make the pin routines usable by others
than the gpio code.  (gmac driver needs access to gpio to do mii ops).
2008-12-14 01:55:15 +00:00
jmcneill 0af0b213b5 Remove debug printfs 2008-12-14 00:53:52 +00:00
jmcneill c2854ab43d add options PMS_ELANTECH_TOUCHPAD 2008-12-14 00:44:29 +00:00
jmcneill 3e8db25945 Add Elantech multi-touch driver. 2008-12-14 00:42:33 +00:00
christos f0468ba656 add a boot.cfg option to clear the screen; default off. From Anon Ymous 2008-12-13 23:30:54 +00:00
ad 70a01ab869 softint_disestablish: the soft interrupt could still be running on a CPU
somewhere in the system. If it is, wait for it to complete before tearing
it down. The caller commits to not trigger the interrupt again once
disestablish is set in motion.
2008-12-13 21:13:30 +00:00
mrg 5adba7ec2c - read AgentID out of the schizo CSR and use that, rather than the
passed in portid, to calculate the IGN.
- don't logical-or in the IGN always, possible twice
2008-12-13 21:00:09 +00:00
ad 7a3593355a Fix a comment. 2008-12-13 20:49:49 +00:00
mrg 983a8c07d8 look for "portid" as well as "upa-portid". 2008-12-13 20:48:10 +00:00
ad 24da1f6ca4 PR kern/36183 problem with ptrace and multithreaded processes
Fix the famous "gdb + threads = panic" problem.
Also, fix another revivesa merge botch.
2008-12-13 20:43:38 +00:00
sketch 8be734c633 Fix PGTBL sizes. 2008-12-13 20:12:13 +00:00
christos 64193bedec more debugging in the dump path. 2008-12-13 19:38:20 +00:00
ad 2e606b7b1b sigchecktrace: process SIGKILL before everything else. 2008-12-13 18:55:01 +00:00
tsutsui 3eda3c7d85 Revert part of previous that reverted part of rev 1.14
which didn't affect the bug. (use __func__ to print function names)
2008-12-13 17:32:53 +00:00
pooka 5ca3e3371e * fix pmap_extract() prototype
* sparc64 also defines __sparc__.  deal with it
2008-12-13 17:11:34 +00:00
pooka 1bc395ab02 Get rid of local machine/{mutex,rwlock}.h files by treating the
object storage as a single pointer (all archs have at least one
uintptr_t in the objects).

(forgot to commmit with others)
2008-12-13 15:37:13 +00:00
pooka 22c85f18af Get rid of local machine/{mutex,rwlock}.h files by treating the
object storage as a single pointer (all archs have at least one
uintptr_t in the objects).
2008-12-13 15:34:48 +00:00
pooka 29f99fff05 _VMPARAM_H_ -> _$MACHINE_VMPARAM_H_ 2008-12-13 14:07:10 +00:00
pooka 5e4ac10274 wrap in #ifdef __x86_64__ 2008-12-13 13:36:04 +00:00
ad b5413f0358 It's easier for kernel reserve pages to be consumed because the pagedaemon
serves as less of a barrier these days. Restrict provision of kernel reserve
pages to kmem and one of these cases:

- doing a NOWAIT allocation
- caller is a realtime thread
- caller is a kernel thread
- explicitly requested, for example by the pmap
2008-12-13 11:34:43 +00:00
ad 9d315c5bc9 PR 40027/pagedaemon loops on memory shortage
uvmpd_scan_queue:

- Fix a bug that prevented the pagedaemon from making forward progress
  if (a) swap was full (b) the first 16 pages on the inactive list were
  unbusy anons not already backed by swap.

- Remove redundant uvm_swapisfull() check and just try to allocate a slot.
  If it fails we know swap is full.
2008-12-13 11:26:57 +00:00
ad f9a4aaf41f PR kern/40027 pagedaemon loops on memory shortage
uvm_swapisfull: don't count some small portion as it may be inaccessible to
us at any given moment, for example if there is lock contention or if pages
are busy.
2008-12-13 11:22:09 +00:00
mrg a375e7c55a fix much of the interrupt mapping/establishment code. still does
not yet work, but we are now seeing spurious interrupts (that should
be mapped to some handler..)
2008-12-13 08:07:23 +00:00
mrg f4cdd8a3bc remove unused variable. 2008-12-13 05:54:57 +00:00
alc 0a5dd2a285 Restore a valid call to ath_hal_wait() and wrap the if() statement with curly bracket.
Fix build wrt the original HAL, prevent the next call to OS_REG_WRITE() to be skipped
if HALDEBUG() is not defined.

pointed out by <sam>
2008-12-13 05:16:28 +00:00
mrg 6a475604d6 - enable schizo_dmamap_create() after fixing it
- clean up some debug code
- remove unused schizo_intr_map()
- setup our iommu state properly
- for now, implement a 'struct schizo_iommureg' and use it in schizo.
  XXX this should be merged with iommu*

interrupts are still not working but we get to scsi probe now.
2008-12-13 04:56:32 +00:00
mrg 5fe53803ec DPRINTF() the new protection in sparc_bus_map() 2008-12-13 04:53:09 +00:00
dholland 2adcd1a3c2 Don't deadlock on rename("foo/foo", "foo") in the case where foo/foo is a
directory. This doesn't affect non-wapbl renames; it affects wapbl because
one of the lock acquisitions was moved up past where this case otherwise
fails.

PR 40163 from Lloyd Parkes.
2008-12-13 04:45:28 +00:00
mrg 223aed87aa if the "interrupt-map-mask" property is larger than the static 100 int
array, dynamically allocate the desired size and try again.

fixes crashes in OF_mapintr() when there are 102 entries.
2008-12-13 04:44:38 +00:00
isaki b3a08741f8 Fix a broken 'Front power switch' signal.
Use softint(9), instead of using psignal(9) in
hardware interrupt.  Thanks to soda-san.
2008-12-13 02:49:10 +00:00
njoly 6b9fe0233d Regen for clock_nanosleep. 2008-12-12 23:38:13 +00:00
njoly 99688b74d2 Add clock_nanosleep syscall. 2008-12-12 23:36:18 +00:00
christos c8164f5d15 RTAX_GENMASK and RTAX_AUTHOR could cause kernel memory corruption because
info struct members could be pointing to free'd memory. Fix from dyoung.
XXX: Pullup to 5.0
2008-12-12 22:34:58 +00:00
alc c3d9f7dbb1 Don't display the global kernel symbol `version' but the *eeprom* version, as done in the original code. 2008-12-12 21:31:49 +00:00
cegger 9d34af294b make i386 ALL kernel compile 2008-12-12 21:01:59 +00:00
macallan 25f1a62f67 some cleanup, add shadowfb support 2008-12-12 18:52:40 +00:00
macallan 2a1ee97a2a device_t-ify 2008-12-12 18:50:13 +00:00
macallan fc934dfa9a fix stride value returned by /dev/fb 2008-12-12 18:48:25 +00:00
pooka 0d12ba9def Add a few MD ifdefs into the rump pmap stubs to enable us to get
rid of the local pmap.h and unify the pmap ABI with the kernel.
(XXX: compiles but doesn't work on vax)

Thanks once again to Greg Oster for helping with testbuilds.
2008-12-12 18:46:43 +00:00
macallan 20dab5963b device_t-ify 2008-12-12 18:46:41 +00:00
macallan 39ebde40e1 device_t-ification 2008-12-12 18:39:55 +00:00
macallan 302ae8fed9 add display type for Fujitsu AG-10e (oops) 2008-12-12 18:35:12 +00:00
pooka e27fd72e89 this header needs machine/cpuset.h 2008-12-12 18:16:58 +00:00
matt 1cb076635d Fix merge botch from april... 2008-12-12 18:13:55 +00:00
matt ce637ca878 CFATTACH_DECL -> CFATTACH_DECL_NEW 2008-12-12 17:36:14 +00:00
tonnerre 3fd167219b Remove { 0, 0 } from the list of u3g devices. This entry is no longer
required in modern device lists due to sizeof() tricks. However, keeping
it makes u3g attach to HP ServerWorks mice and keyboards.
2008-12-12 07:49:46 +00:00
jmorse beb501f394 PR#39651
Fix two problems in umass:
 * usb xfers being freed before being removed from pipe, leading to null deref
 * config_activate requests not supported, which leads to config_deactivate requests not being passed through. Spotted by jmcneill@

Added mechanism to usbdi allowing the default pipe to be aborted
2008-12-12 05:35:11 +00:00
alc 0107bf153f include standard HAL option.
Fix build breaks reported by Paul Goyette on current-users@
2008-12-12 03:28:57 +00:00
pooka 58742275be rcs id police 2008-12-11 19:33:12 +00:00
pooka ea4b11acd2 Since oea pmap.c is #included many times, put kernel_pmap_ptr into
its own source module to avoid multiple initialized data definitions.
2008-12-11 19:30:14 +00:00