Commit Graph

201899 Commits

Author SHA1 Message Date
christos
fd1d0fa83b fix warnings for the patented algos 2011-06-12 16:15:42 +00:00
rmind
1ab522108e Fix ZFS build. 2011-06-12 14:47:20 +00:00
tsutsui
2699edcfe9 - misc KNF
- use device_t and cfdata_t
2011-06-12 14:31:31 +00:00
tsutsui
e740bf8f3a Some KNF. 2011-06-12 13:40:14 +00:00
jruoho
2ef5adcc96 Follow IA-64 with the x86-specific ACPI MD functions and move these where
they belong to. Remove an unused function. Minor KNF. No functional change.
2011-06-12 11:31:30 +00:00
jruoho
0fc4e4ab7e Move the evaluation of the _PDC control method out from the acpicpu(4)
driver to the main acpi(4) stack. Follow Linux and evaluate it early.
Should fix PR port-amd64/42895, possibly also PR kern/42583, and many
other comparable bugs.

A common sense explanation is that Intel supplies additional CPU tables to
OEMs. BIOS writers do not bother to modify their DSDTs, but instead load
these extra tables dynamically as secondary SSDT tables. The actual Load()
happens when the _PDC method is invoked, and thus namespace errors occur
when the CPU-specific ACPI methods are not yet present but referenced in the
AML by various drivers, including, but not limited to, acpitz(4).
2011-06-12 10:11:52 +00:00
jruoho
ef74b36d13 Rewrite the aibs(4) driver in order to support new models. Draws from the
revision 1.6 (claudio@) of the OpenBSD's equivalent driver. Tested by mrg@.
2011-06-12 07:25:43 +00:00
kiyohara
4ae6ef6285 Initialize i2cbus_attach_args before call config_found(). It has other member. 2011-06-12 07:19:49 +00:00
kiyohara
97838d1bc4 Remove null line. 2011-06-12 07:07:17 +00:00
kiyohara
6415e16090 Remove comment-outed DELAY(). 2011-06-12 07:04:55 +00:00
mrg
d78c2159a8 vmobjlock is now a pointer to kmutex_t. use it as one. 2011-06-12 06:38:14 +00:00
mrg
a14dae9853 include uvm_object.c in the rump kernel for the new uvm_obj* functions.
don't build the uvm_object.c uvm_object_printit() for _RUMPKERNEL. (XXX)
add empty panic() stubs for uvm_loanbreak() and ubc_purge().

fixes some more 5.99.53 rump build issues.
2011-06-12 06:36:38 +00:00
mrg
08d84f24b2 an_ref is now a uintptr_t. 2011-06-12 06:34:59 +00:00
matt
679d8a847c need mm_md_direct_mapped_phys support. 2011-06-12 06:10:41 +00:00
matt
f3fc9a4693 Use excb before and after the mt_fpcr/mf_fpcr instructions as specified
in the alpha ARM 4.7.8.1 (Accessing the FPCR):

	Because Alpha floating-point hardware can overlap the execution of
	a number of floating-point instructions, accessing the FPCR must
	be synchronized with other floating-point instructions. An EXCB
	instruction must be issued both prior to and after accessing the
	FPCR to ensure that the FPCR access is synchronized with the
	execution of previous and subsequent floating-point instructions;
	otherwise synchronization is not ensured.

Use unions to convert between double and uint64_t to avoid casting.
2011-06-12 05:44:36 +00:00
tsutsui
bbf5eed88e No reason to create ECOFF kernels for a modern port which have a native
bootloader.  (blindly copied from pmax?)
2011-06-12 05:39:57 +00:00
matt
8059ca17fc Make sure initialize the ATTR registers. 2011-06-12 05:37:54 +00:00
matt
0e3e55183b For debugging, use UVMHIST to create kernel histories pmaphist and
pmapexechist.  This replaces the old pmapdebug/PDB stuff.
In ddb, you can just use kernhist_dump(pmaphist) to view the history
or vmstat -H from userland.
2011-06-12 05:32:38 +00:00
tsutsui
f132e76c7d Split device_t/softc. 2011-06-12 05:31:14 +00:00
matt
21e5ed3b5e Use %# instead of 0x% 2011-06-12 05:29:42 +00:00
matt
4cbd6ad850 Make sure to enable the USB interface. 2011-06-12 05:29:13 +00:00
tsutsui
167cae5b52 - misc KNF
- use device_t and cfdata_t
2011-06-12 05:27:56 +00:00
tsutsui
b70778fcd1 More nits. 2011-06-12 05:22:30 +00:00
tsutsui
15746e1082 Split device_t/softc. 2011-06-12 05:20:54 +00:00
tsutsui
27da4103be Misc KNF. 2011-06-12 05:06:23 +00:00
tsutsui
2bf24bf180 Split device_t/softc. 2011-06-12 04:44:27 +00:00
mrg
b156c02e66 v_interlock is now a pointer to kmutex_t, use it as one.
fixes many of the 5.99.53 build issues in zfs, but not all of them.
2011-06-12 04:43:11 +00:00
tsutsui
1b1ddf5890 More KNF. 2011-06-12 04:40:44 +00:00
tsutsui
f695acabd5 - don't truncate tv_sec to uint32_t in eclock_settime()
(I guess this has no longer been critical since timecounter(9) support)
- add prefix to reload member in softc
2011-06-12 04:33:29 +00:00
tsutsui
7f3036405f Remove __HAVE_GENERIC_TODR, which has been mandatory since 2008. 2011-06-12 04:22:18 +00:00
mrg
ad34f7b431 move module_machine_booke into the booke machdep. 2011-06-12 04:20:18 +00:00
tsutsui
f42bae3435 - misc KNF
- use device_t and cfdata_t
2011-06-12 04:17:30 +00:00
tsutsui
80d402d4ff Remove unused ebus_softc and use CFATTACH_DECL_NEW(). 2011-06-12 04:00:33 +00:00
tsutsui
d24f30f51b - KNF, remove arg names in prototype decls
- use device_t and cfdata_t
- use uint32_t rather than u_int32_t (XXX should be paddr_t here?)
2011-06-12 03:57:09 +00:00
tsutsui
bd817f5f3d - ANSIfy, KNF, remove __P()
- use device_t and cfdata_t
2011-06-12 03:52:13 +00:00
rmind
646656f78d Note rmind-uvmplock branch merge. 2011-06-12 03:50:42 +00:00
mrg
7eedb1d0c4 for booke and ibm4xx evbppc systems, set module_machine to to either
"powerpc-ibm4xx" or "powerpc-booke".
2011-06-12 03:42:41 +00:00
rmind
e225b7bd09 Welcome to 5.99.53! Merge rmind-uvmplock branch:
- Reorganize locking in UVM and provide extra serialisation for pmap(9).
  New lock order: [vmpage-owner-lock] -> pmap-lock.

- Simplify locking in some pmap(9) modules by removing P->V locking.

- Use lock object on vmobjlock (and thus vnode_t::v_interlock) to share
  the locks amongst UVM objects where necessary (tmpfs, layerfs, unionfs).

- Rewrite and optimise x86 TLB shootdown code, make it simpler and cleaner.
  Add TLBSTATS option for x86 to collect statistics about TLB shootdowns.

- Unify /dev/mem et al in MI code and provide required locking (removes
  kernel-lock on some ports).  Also, avoid cache-aliasing issues.

Thanks to Andrew Doran and Joerg Sonnenberger, as their initial patches
formed the core changes of this branch.
2011-06-12 03:35:36 +00:00
tsutsui
c69eb063d7 Fix printf formats in DEBUG case. 2011-06-12 03:29:33 +00:00
rmind
089890a0b3 Fix the build of ALL kernel (hi matt@). 2011-06-12 03:26:20 +00:00
tsutsui
90bc6e5821 No need to initialize interrupt evcnt(9) so earlier, so remove phase arg
from intr_init() and initialize all stuff in cpu_configure(9) as other ports
rather than in mach_init() and mbattach().
2011-06-12 03:21:21 +00:00
tsutsui
9dc6c88b06 - misc KNF
- use device_xname(), device_unit(), and device_class()
2011-06-12 03:14:03 +00:00
mrg
471a1d4c0c note that sparc MODULAR works and is enabled now. 2011-06-12 01:45:00 +00:00
mrg
475fbccd2d enable options MODULAR, now that it is tested to work. 2011-06-12 01:44:06 +00:00
mrg
87bf821974 sparc relative reloctions are busted here; copy the sparc64 style
which seems to make things work fine, and also seems to follow what
ld.elf_so does.

this makes modules work in my limited testing.
2011-06-12 01:29:58 +00:00
tsutsui
54d6901ea4 Set iospace and virtual_end address properly.
Fixes TLB miss panic during device attach on emips.
2011-06-12 01:28:29 +00:00
christos
6793b1da06 Change i_len in ieee80211req to be unsigned and fix other signed/unsigned
issues. From Dan Rosenberg (drosenberg at vsecurity dot com).
2011-06-12 00:07:19 +00:00
christos
7267577190 turn on printf warnings for all the printf-like atf functions. 2011-06-11 18:03:57 +00:00
christos
2a18cea9f4 Turn warns on for all tests and fix all the bugs. 2011-06-11 18:03:17 +00:00
christos
abf33ee14d format fixes, prototype fixes, const fixes 2011-06-11 16:54:56 +00:00