Commit Graph

201895 Commits

Author SHA1 Message Date
jruoho
519d4f3013 Avoid ATF_REQUIRE() inside a child process. 2011-06-14 05:28:00 +00:00
jruoho
280c25b2f3 Test that assert(3) works. 2011-06-14 05:25:20 +00:00
jruoho
4c45d59aa4 Add few basic tests for the getlogin(2) family. 2011-06-14 03:50:47 +00:00
matt
ad2e914428 Update KDB_NUMREGS to match what gdb6 is using for PPC.
Patch taken from PR/43196
2011-06-14 03:28:32 +00:00
matt
643b4a3d8b Add mm_md_kernacc and now kmem tools work again. 2011-06-14 03:12:43 +00:00
jruoho
3b469f3ce9 Remove the cases that cause integer overflow on e.g. i386. 2011-06-14 02:45:58 +00:00
jruoho
5c64bfa640 The NaN case for strtold(3) was fixed for x86. Adjust for the expected
failures (known failures include again the special case of qemu/amd64).
2011-06-14 02:37:31 +00:00
matt
306494e25a Note use of direct-mapped uareas. 2011-06-14 02:11:47 +00:00
rmind
3f1c6aa712 Update getnewvnode(9) description. 2011-06-14 00:56:02 +00:00
rmind
60e221031b VOP_LEASE(9) was removed long ago. Misc improvement. 2011-06-14 00:22:45 +00:00
rmind
1d2a79ab46 Describe ubc_purge(9). 2011-06-14 00:19:20 +00:00
rmind
15de01ccb7 Xr uvm_km(9) 2011-06-14 00:18:00 +00:00
rmind
eb51bf5884 uvm_map_lock_entry: fix the order of locking. Spotted by yamt@.
Also, keep uvm_map_unlock_entry() symmetric.
2011-06-13 23:19:40 +00:00
matt
5ca5a72bf6 Deal with PCU state when performing coredumps. As the kernel moves each LWP
into LSSUSPENDED state, have that LWP save its PCU state for the coredump and
release its PCU status since its probably going to be exiting very soon.
Make pcu_save_all tolerate for being called for non-curlwp if that lwp belongs
to the same process, has a state of LSSUSPENDED, and no PCUs are in use.

Make the MD coredump code use pcu_save_all(l) since it'll need to save all
the PCU state anyways and can take advantage of the above tests.
2011-06-13 21:32:42 +00:00
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