summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* MfP4 CH=185246 [1]:bz2011-01-091-0/+2
| | | | | | | Add FEATURE() to announce optional VIMAGE. MFC after: 3 days [1] for the moment put it in vnet.c.
* Add support for the Zeagle N2iTion3 Dive Computer to uplcom(4). This bringsgavin2011-01-092-0/+2
| | | | | the list of supported devices in sync with kernel.org git revision f36ecd5de93e4c85a9e3d25100c6e233155b12e5, and OpenBSD uplcom.c r1.54
* Sync the list of devices supported by uslcom(4) with Linux, bringing ingavin2011-01-092-1/+27
| | | | | | | | | all new devices added between our r211022 and their git revision 93ad03d60b5b18897030038234aa2ebae8234748 Also correct a Foxconn entry. MFC after: 1 week
* Improve style and wording of comments and sysctl descriptions [1].bz2011-01-091-12/+11
| | | | | | | | Move machdep.ct_debug to debug.clocktime as there was no reason to actually put it under machdep in r216340. Submitted by: bde [1] MFC after: 3 days
* Move repeated MAXSLP definition from machine/vmparam.h to sys/vmmeter.h.kib2011-01-0912-90/+14
| | | | | | | Update the outdated comments describing MAXSLP and the process selection algorithm for swap out. Comments wording and reviewed by: alc
* Implement the __pthread_map_stacks_exec() for libthr.kib2011-01-095-1/+53
| | | | | | | | | | | | Stack creation code is changed to call _rtld_get_stack_prot() to get the stack protection right. There is a race where thread is created during dlopen() of dso that requires executable stacks. Then, _rtld_get_stack_prot() may return PROT_READ | PROT_WRITE, but thread is still not linked into the thread list. In this case, the callback misses the thread stack, and rechecks the required protection afterward. Reviewed by: davidxu
* Replace nfs4 with newnfs in netfs_types. nfs4 was removed in r192578 andjh2011-01-091-1/+1
| | | | | | | | mount(8) has supported newnfs since r192930. PR: conf/153655 Submitted by: Anonymous <swell.k@gmail.com> MFC after: 3 weeks
* Add missing ar91xx definition for the WMAC reset control.adrian2011-01-091-0/+1
|
* Fix the value for DECIMAL_DIG on UltraSparcs. The previous value ofdas2011-01-092-2/+2
| | | | | 35 wasn't quite big enough to ensure correct rounding for very-close- to-halfway cases.
* We don't support any floating point types larger than double ondas2011-01-091-1/+1
| | | | powerpc, so DECIMAL_DIG should be 17.
* The highest-precision floating point type on ia64 has 64 bits ofdas2011-01-091-1/+1
| | | | precision, so DECIMAL_DIG should be 21, as on i386/amd64.
* Eliminate a redundant alignment directive on the page locks array.alc2011-01-091-1/+1
|
* Modify readdirplus in the experimental NFS server in armacklem2011-01-091-3/+21
| | | | | | | | | | | | | manner analogous to r216633 for the regular server. This change busies the file system so that VFS_VGET() is guaranteed to be using the correct mount point even during a forced dismount attempt. Since nfsd_fhtovp() is not called immediately before readdirplus, the patch is actually a clone of pjd@'s nfs_serv.c.4.patch instead of the one committed in r216633. Reviewed by: kib MFC after: 10 days
* sh: Make exit without parameters from EXIT trap POSIX-compliant.jilles2011-01-084-7/+24
| | | | | | | It should use the original exit status, just like falling off the end of the trap handler. Outside an EXIT trap, 'exit' is still equivalent to 'exit $?'.
* Change some variables from int to size_t. This is more accurate sincecsjp2011-01-083-14/+16
| | | | | | | | | | | | these variables represent sizes in one capacity or another. There is no reason to allow negative numbers. Change userspace shared structure elements that get used for the modified functions from int to uint32_t, since it's not clear what userspace programs use these fields, and we do not want to break binary compatibility. This fixes a panic when corrupt or bogus data is passed into the kernel. Obtained from: NetBSD MFC after: 3 weeks
* Take passwords out of debug log.jpaetzel2011-01-081-2/+2
| | | | | | | | Fix path problem that was preventing disk info from being in the log. PR: bin/151968 Submitted by: Kris Moore <kmoore@FreeBSD.org> Approved by: imp
* sh: Add simple test for 'exit' without parameters.jilles2011-01-081-0/+7
|
* Eliminate the counting of vm_page_pa_tryrelock calls. We really don'talc2011-01-081-21/+10
| | | | | | | | | need it anymore. Moreover, its implementation had a type mismatch, a long is not necessarily an uint64_t. (This mismatch was hidden by casting.) Move the remaining two counters up a level in the sysctl hierarchy. There is no reason for them to be under the vm.pmap node. Reviewed by: kib
* Push some PC-BSD specific fixes upstream.jpaetzel2011-01-082-52/+6
| | | | | | PR: bin/152894 Submitted by: Kris Moore <kmoore@FreeBSD.org> Approved by: imp
* Make sure to always do source address selection ondeischen2011-01-081-8/+9
| | | | | | | | | | | | | an unbound socket, regardless of any multicast options. If an address is specified via a multicast option, then let it override normal the source address selection. This fixes a bug where source address selection was not being performed when multicast options were present but without an interface being specified. Reviewed by: bz MFC after: 1 day
* More elegant way to detect MBR vs. GPTjpaetzel2011-01-082-14/+3
| | | | | Submitted by: nwhitehorn Approved by: imp
* Make RB_CDROM work. This should probably check for a disc in cd1 and acd1nwhitehorn2011-01-081-2/+2
| | | | as well.
* Revert r216805.attilio2011-01-081-119/+23
| | | | | | | | | | That revision is introducing a bug which is more visible than problems it is trying to fix. As long as my time is very limited in this period I am going to commit back this patch just once it is fully fixed. Reported by: dim, Nicholas Esborn
* Use the same expression to report stack protection mode for AT_STACKEXECkib2011-01-081-2/+3
| | | | as the expression used by exec_new_vmspace().
* Copy powerpc/include/_inttypes.h to x86 and replace i386/amd64/pc98tijl2011-01-084-421/+228
| | | | | | headers with stubs. Approved by: kib (mentor)
* White space changes to align comments. The mips and powerpc _inttypes.htijl2011-01-082-221/+221
| | | | | | are now exactly the same. Approved by: kib (mentor)
* Rename PRIreg helper macro to PRIptr to better reflect its use. Registerstijl2011-01-082-94/+96
| | | | | | | | | | | | and pointers don't always have the same size, e.g. the __mips_n32 ABI (ILP32) has 64 bit registers but 32 bit pointers. On mips introduce PRIptr to fix the format specifier for (u)intptr_t. Prefix PRI64 and PRIptr with underscores because macro names starting with PRI[a-zX] are reserved for future use. Approved by: kib (mentor)
* Implement __pthread_map_stacks_exec() callback for libc, to change thekib2011-01-083-0/+39
| | | | stack protection to allow execution for single-threaded processes.
* In rtld, read the initial stack access mode from AT_STACKPROT as setkib2011-01-085-0/+52
| | | | | | | | | | | | | | | by kernel, and parse PT_GNU_STACK phdr from linked and loaded dsos. If the loaded dso requires executable stack, as specified by PF_X bit of p_flags of PT_GNU_STACK phdr, but current stack protection does not permit execution, the __pthread_map_stacks_exec symbol is looked up and called. It should be implemented in libc or threading library and change the protection mode of all thread stacks to be executable. Provide a private interface _rtld_get_stack_prot() to export the stack access mode as calculated by rtld. Reviewed by: kan
* In elf image activator, read and apply the stack protection mode fromkib2011-01-081-5/+17
| | | | | | | | | | | | | PT_GNU_STACK program header, if present and enabled. Two new sysctls are provided, kern.elf32.nxstack and kern.elf64.nxstack, that allow to enable PT_GNU_STACK for ABIs of specified bitsize, if ABI decided to support shared page. Inform rtld about access mode of the stack initial mapping by AT_STACKPROT aux vector. At the moment, the default is disabled, waiting for the usermode support bits.
* Create shared (readonly) page. Each ABI may specify the use of page bykib2011-01-0810-18/+132
| | | | | | | | | | | | | setting SV_SHP flag and providing pointer to the vm object and mapping address. Provide simple allocator to carve space in the page, tailored to put the code with alignment restrictions. Enable shared page use for amd64, both native and 32bit FreeBSD binaries. Page is private mapped at the top of the user address space, moving a start of the stack one page down. Move signal trampoline code from the top of the stack to the shared page. Reviewed by: alc
* Collect code to translate between vm_prot_t and p_flags into helperkib2011-01-081-22/+35
| | | | | | functions. MFC after: 1 week
* Document rc.conf.d in rc.conf(5).gjb2011-01-081-2/+14
| | | | | | | PR: 140495 Submitted by: Tom Judge (tom of tomjudge com) Approved by: keramida (mentor) MFC after: 2 weeks
* On mixed 32/64 bit architectures (mips, powerpc) use __LP64__ rather thantijl2011-01-0813-75/+56
| | | | | | | | | | | | | architecture macros (__mips_n64, __powerpc64__) when 64 bit types (and corresponding macros) are different from 32 bit. [1] Correct the type of INT64_MIN, INT64_MAX and UINT64_MAX. Define (U)INTMAX_C as an alias for (U)INT64_C matching the type definition for (u)intmax_t. Do this on all architectures for consistency. Suggested by: bde [1] Approved by: kib (mentor)
* On 32 bit architectures define (u)int64_t as (unsigned) long long insteadtijl2011-01-085-47/+26
| | | | | | | | | | | | | | | | of (unsigned) int __attribute__((__mode__(__DI__))). This aligns better with macros such as (U)INT64_C, (U)INT64_MAX, etc. which assume (u)int64_t has type (unsigned) long long. The mode attribute was used because long long wasn't standardised until C99. Nowadays compilers should support long long and use of the mode attribute is discouraged according to GCC Internals documentation. The type definition has to be marked with __extension__ to support compilation with "-std=c89 -pedantic". Discussed with: bde Approved by: kib (mentor)
* Fix types of some values in machine/_limits.h.tijl2011-01-088-61/+39
| | | | | | | | | | | | | | | | | On some architectures UCHAR_MAX and USHRT_MAX had type unsigned int. However, lacking integer suffixes for types smaller than int, their type should correspond to that of an object of type unsigned char (or short) when used in an expression with objects of type int. In that case unsigned char (short) are promoted to int (i.e. signed) so the type of UCHAR_MAX and USHRT_MAX should also be int. Where MIN/MAX constants implicitly have the correct type the suffix has been removed. While here, correct some comments. Reviewed by: bde Approved by: kib (mentor)
* Fix some style(9) issues.kib2011-01-081-4/+5
| | | | | | | Do not use strlcpy() where simple assignment is enough. Noted by: bde (long time ago) MFC after: 1 week
* Fix struct FILE * leak on error (in disabled by default hesiod support code).kib2011-01-081-0/+1
| | | | | | Submitted by: henning petersen <henning.petersen t-online de> PR: 153756 MFC after: 1 week
* Use ether_ntoa instead of home-grown version.delphij2011-01-081-9/+5
| | | | Noticed by: Boris Kochergin <spawk acm poly edu>
* Clarify when we switch from keepidle to keepinvtl intervals if sendingbz2011-01-081-2/+4
| | | | | | | TCP keepalive probes is enabled. Reviewed by: gnn MFC After: 3 days
* sed: Add test for r217133 (-i race).jilles2011-01-082-0/+84
| | | | | PR: bin/153261 MFC after: 2 weeks
* sed: Try hard links to make -i target available continually.jilles2011-01-081-4/+21
| | | | | | | | | | | | | | | | | | | | | When creating a backup file, sed renamed the original before renaming the changed copy into place, leading to a short time when no file with the original name was present (usually only visible on SMP systems). Try creating the backup file using a hard link instead, avoiding this problem. If creating the hard link fails for any reason, fall back to the old rename method. When not creating a backup file, sed already renamed the changed copy onto the original. This remains unchanged. I am not adding the suppression of redundant fchown/fchmod to this commit, because FreeBSD appears to check this in the kernel (for msdosfs at least). PR: bin/153261 Submitted by: Pedro F. Giffuni Reviewed by: dds (older version) Obtained from: Illumos MFC after: 2 weeks
* CSUM flags need to be OS version sensitive in ixv codejfv2011-01-071-0/+4
| | | | MFC in 3 days
* kern/150247 - virtualization code also needs fix for 7.X to be buildable...jfv2011-01-071-1/+1
| | | | MFC in 3 days
* Fix to kern/150247 - make ixgbe buildable for 7.xjfv2011-01-071-1/+1
|
* Remove unused support for 64 bit long on 32 bit architectures.tijl2011-01-075-45/+6
| | | | | | | | It was used mainly to discover and fix some 64-bit portability problems before 64-bit arches were widely available. Discussed with: bde Approved by: kib (mentor)
* kern/153772 fix variable names.jfv2011-01-071-2/+2
| | | | | | Thank you Andrew Boyer for catching these MFC in 3 days
* Trim extra spaces before tabs.jhb2011-01-0710-21/+21
|
* make targetsimp2011-01-071-1/+10
| | | | | | | | | This produces a list of currently supported targets. Here "supported" means "built in make universe" on the theory that those targets are more supported than any that might work in 'make buildworld TARGET=x TARGET_ARCH=y' since the latter are less tested. Suggested by: rwatson
* Retire TARGET_ABI.imp2011-01-0717-49/+39
| | | | | | | | | | | | | | | Implement MACHINE_ARCH=mips64e[lb] to build N64 images. This replaces MACHINE_ARCH=mipse[lb] TARGET_ABI=n64. MACHINE_ARCH=mipsn32e[lb] has been added, but currently requires WITHOUT_CDDL due to atomic issues in libzfs. I've not investigated this much, but implemented this to preserve as much of the TARGET_ABI functionality that I could. Since its presence doesn't affect the working cases, I've kept it in for now. Added mips64e[lb] to make universe, so more kernels build. And I think this (finally) closes the curtain on the tbemd tree.
OpenPOWER on IntegriCloud