Commit Graph

201731 Commits

Author SHA1 Message Date
matt
580e4af787 Use ptoa(x) instead of x << PGSHIFT 2011-06-13 21:19:38 +00:00
matt
022e55668b Add __HAVE_CPU_UAREA_ROUTINES support so that uareas will be direct-mapped.
(This avoids the nasty tlb recursion problem on ibm4xx as well on mpc85xx).
2011-06-13 21:19:01 +00:00
matt
9a80b9608f If uvm_fault returns EACCES, convert it to EFAULT. 2011-06-13 21:12:50 +00:00
wiz
8ea06c6ede Sort sections. Remove trailing whitespace. 2011-06-13 20:41:00 +00:00
spz
e7c9ab5a50 note the update of openssl 2011-06-13 19:49:34 +00:00
spz
82dcaa0984 - fix a typo in libcrypto.pl
- refresh manpages
2011-06-13 18:53:31 +00:00
nonaka
a5706f7ee2 Removed non-existent wsfont_getflg() functions.
Const'fy name in struct wsdisplay_font.
Fixed some typo.
2011-06-13 15:24:21 +00:00
matt
6baf0c0946 bump SYMTAB_SPACE 2011-06-13 14:20:37 +00:00
spz
9574586d3a fix AES-NI (using David Woodhouse's patch for OpenSSL 1.0.0) & re-enable
inclusion of AES-NI capability
builds, but is untested due to lack of hardware
2011-06-13 14:19:48 +00:00
plunky
c84ce3700e because we use --sysroot, force the default paths to be normal
while here, enable tls support
2011-06-13 12:29:16 +00:00
roy
0d0d433bb6 Import openresolv-3.4.2 2011-06-13 11:09:38 +00:00
roy
01c853e7fd Sync 2011-06-13 11:07:50 +00:00
roy
d8775c93d6 Import openresolv-3.4.2 with the following fix:
* Use printf(1) correctly
2011-06-13 11:05:19 +00:00
jruoho
5fcd9d30f3 Call _PDC only after AcpiInitializeObjects(ACPI_FULL_INITIALIZATION). 2011-06-13 09:37:23 +00:00
spz
f946e5a9cd remove unhelpful '.file' paths, just name the file itself 2011-06-13 06:22:08 +00:00
uch
d1d54b9b66 include uvm_page.h for vm_physmem[] 2011-06-13 05:23:33 +00:00
tls
ceba797a83 Fix Xen kernel builds (pmap_is_curpmap can't be static) 2011-06-13 04:30:40 +00:00
dholland
e9b3916bd6 When converting from pages to kilobytes, cast the return value of
getpagesize() to size_t. For some reason getpagesize() is defined to
return int, and several of the page counts we get come back from the
kernel as int32_t; in LP64 without the cast the byte count will be
computed in a 32-bit value and for large processes will overflow and
become negative... and then remain negative when divided by 1024 to
convert to kilobytes.

Fixes a problem I hit the other day where I saw negative RSS, which
turns out also to be PR 40642.

Note: other logic in here will break down when we first get >2TB
processes... and int32 page counts will break on >8TB processes. But
hopefully we won't see any of that for a few years yet.
2011-06-13 03:42:15 +00:00
mrg
42abd36401 catch up with the userland copy:
>revision 1.6
>date: 2011/03/23 20:54:35;  author: martin;  state: Exp;  lines: +2 -2
>Avoid using %g7

fixes rump on sparc, at least somewhat.
tested that normal kernels runs fine this with this change, too.
2011-06-13 03:23:53 +00:00
pgoyette
813683b4ac Include required file for xen acpi 2011-06-13 00:53:15 +00:00
uebayasi
189ed13db8 Typos. 2011-06-13 00:17:15 +00:00
mrg
d195617017 convert to device_t and CFATTACH_DECL_NEW.
now my ofppc system has none left.
2011-06-12 21:28:26 +00:00
plunky
33a7866d10 reinstate ssp:raw test, slightly differently.. this one is built
with -fstack-protector-all and tests that the compiler built in
stack protection works, by poking directly outside the buffer
2011-06-12 21:12:46 +00:00
matt
f9859dd3b7 Change KASSERT to KASSERTMSG. 2011-06-12 20:38:10 +00:00
plunky
bdd01b22a1 Functions that return a struct or union, must set %eax to the value
of the original address of the callers area before it returns.

(System V ABI, i386 supplement, fourth edition, page 3-14)
2011-06-12 20:29:25 +00:00
matt
b3768b39bd Cleanup for libsl.so.5 changes 2011-06-12 20:23:29 +00:00
plunky
042cae446e don't pass -fstack-protector for these, the tests are actually for the
__*_chk functions included by -D_FORTIFY_SOURCE=2, and if the compiler
provides additional protection, it can mask broken functions..

(none of the _chk functions will return or process any data if
the length given is known to be larger than the buffer)
2011-06-12 19:22:01 +00:00
matt
e5865a4fbf Save/restore all sprgs when calling OFW.
Move all-zero variables from .data to .bss
Use .lcomm for local variables.
Cleanup a bit of assembly.
Clear PSL_IP in the saved ofmsr (was previously done in ofwoea_machdep.c)
2011-06-12 16:35:10 +00:00
jruoho
4e4705978b Fix build failure for the odd child, as pointed out by pgoyette@. 2011-06-12 16:31:57 +00:00
matt
b17fe686e6 Use mtsprg0 instead of mtsprg 0,r 2011-06-12 16:27:52 +00:00
matt
3d4246bb10 Use mfsprg0 instead of mfsprg r,0 2011-06-12 16:27:14 +00:00
christos
e4bf07bdfe Fix patented algo compilation 2011-06-12 16:16:26 +00:00
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