Commit Graph

97905 Commits

Author SHA1 Message Date
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
hauke
b44c2acbc7 I tested spif(4) in an Ultra 1 - enable it. 2008-12-11 17:18:03 +00:00
pooka
0e6117b96f Apparently some ports rely on cpu.h including machine/pcb.h. 2008-12-11 16:25:23 +00:00
hauke
b8c03f733b Fix warning about missing initializer that showed up in sparc64
builds, but, strangely enough, not in sparc builds.

Relevant for netbsd-{4,5} release branches.
2008-12-11 15:50:35 +00:00
nakayama
383cacb3c5 Revert previous.
This file is included after std.sparc64, so no need to include Atheros HAL
options in this file.
2008-12-11 15:11:57 +00:00
alc
26688c3395 Add HAL standard option and file list.
I forgot to `cvs add' them :).
2008-12-11 14:11:43 +00:00
mrg
2c4ff71b65 also attach if the "compatible" property matches, as seen on sb2000. 2008-12-11 07:09:00 +00:00
alc
a4c7f1185e Doh! What should have happened happens ...
Restore the check to see if the chip does MIC correctly when
WME is turned on. Btw, define IEEE80211_C_WME_TKIPMIC and fix build :/
2008-12-11 06:04:01 +00:00
alc
5d561f943e Sync ath(4) with the new HAL, mostly based on <jmcneill>'s patches.
Everything should be fine again !
2008-12-11 05:45:29 +00:00
alc
1c52cf4c6b Import config(9) file and register HAL's files in the build machinery. 2008-12-11 05:42:18 +00:00
alc
b297f5e6b5 Import HAL's OS dependent code and config(9)'s interface header. 2008-12-11 05:37:40 +00:00
alc
a9d4fb0bb4 Fix the build of the new HAL:
- constify link-set iterator
 - do RF lookup only if any RF has been built
 - fix global symbols shadowing
 - const static -> static const
 - don't redefine `uintptr_t'
 - use `unsigned long' in __DECONST()
 - fix AH_RF() macros
 - __va_list -> va_list
 - add missing struct trailing element
 - add a few #ifdef AH_DEBUG block to avoid empty if() statement
 - some other nits...
2008-12-11 05:30:29 +00:00
alc
31f44cb2ed Clean-up makefile stub used to include in the build the binary HAL object 2008-12-11 05:27:42 +00:00
alc
2a56be2e0d Delete the old binary Atheros HAL
Expect the tree to be broken in the next few minutes.
2008-12-11 05:24:49 +00:00
alc
1e10b93de9 Import Atheros HAL, from FreeBSD (revision 185521) 2008-12-11 04:46:22 +00:00
kenh
95793981bc The wrong sense of the UIP register is used to test for a pending clock
update; this test is now correct.

mc146818_settime_ymdhms has been refactored to simply stop clock updates
while the time is being set.  Based on FreeBSD code and macros in
mc146868reg.h.
2008-12-11 00:17:21 +00:00
alc
146b5c4e87 Add the __printflike(), __scanflike() and __format_arg() macros, from FreeBSD
They will be used soon by the Atheros HAL code, many other places can use them
to avoid GCC dependency.
2008-12-10 22:10:47 +00:00
pooka
7243af74cb Make non-mpsafe threads KERNEL_LOCK() before starting execution. 2008-12-10 18:47:01 +00:00
christos
15e362cca8 fix endif comment 2008-12-10 18:07:30 +00:00
christos
0bff293dd2 disable VMEM_DEBUG by default. 2008-12-10 17:32:32 +00:00
tsutsui
f1f16fdb45 Prepare kernel_pmap_ptr as well as other m68k ports which have own pmap.c. 2008-12-10 17:13:53 +00:00
tsutsui
cf4bdf5d25 Restore kernel_pmap_store declaration since it's still used by
most m68k ports in pmap_bootstrap.c.
2008-12-10 17:12:07 +00:00
christos
10fdeaec16 vmem_check_sanity is just too expensive for DEBUG. Enable it only for
VMEM_DEBUG.
2008-12-10 16:59:12 +00:00