summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove unnecessary 'cat'.jchandra2011-01-101-1/+1
|
* o) Expand the CIU driver to be aware of newly-allocated parts of the IRQ range.jmallett2011-01-108-8/+606
| | | | | | | | | | | | | | | o) Add 'octm', a trivial driver for the 10/100 management ports found on some Octeon systems. o) Make the Simple Executive's management port helper routines compile on FreeBSD (namely by not doing math on void pointers.) o) Add a cvmx_mgmt_port_sendm routine to the Simple Executive to send an mbuf so there is only one copy in the transmit path, rather than having to first copy the mbuf to an intermediate buffer and then copy that to the Simple Executive's transmit ring. o) Properly work out MII addresses of management ports on the Lanner MR-730. XXX The MR-730 also needs some patches to the MII read/write routines, but this is sufficient for now. Media detection will be fixed in the future when I can spend more time reading the vendor-supplied patches.
* Revert part of r217071 so that us mere mortals can clearly seedougb2011-01-091-1/+5
| | | | | | what this bit of code is intended to do. :) Approved by: imp
* Now that we correctly enable rx interrupts on all cores, performance has gottenjmallett2011-01-091-1/+22
| | | | | | | | | | | | | quite awful, because e.g. 4 packets will come in and get processed on 4 different cores at the same time, really battling with the TCP stack quite painfully. For now, just run one task at a time. This gets performance up in most cases to where it was before the correctness fixes that got interrupts to run on all cores (except in high-load TCP transmit cases where all we're handling receive for is ACKs) and in some cases it's better now. What would be ideal would be to use a more advanced interrupt mitigation strategy and possibly to use different workqueue groups per port for multi-port systems, and so on, but this is a fine stopgap.
* o) Remove some unused local definitions of IP protocol numbers.jmallett2011-01-092-11/+10
| | | | | o) Use CPU_FOREACH rather than a miscrafted for loop with an off-by-one to enable workq interrupts on all cores.
* sh: Follow-up to r216743, grabstackblock() can be replaced with stalloc().jilles2011-01-092-11/+1
| | | | | grabstackblock() was used only once (but it is a very often executed piece of code).
* regression/date: unset all LC_xxx vars and set LANG/LC_ALLkeramida2011-01-091-1/+1
| | | | | | | | | When running with a custom locale setup, it's easy to confuse the date regression tests and cause them to fail, e.g. when LANG='C' but LC_ALL='el_GR.UTF-8'. Set LC_ALL to 'C', which overrides all other LC_xxx options, to avoid this sort of problem. Reviewed by: uqs, edwin
* Add missing __dead2 to __assert().ed2011-01-091-1/+1
| | | | | | | | __assert() is called when an assertion fails. After printing an error message, it will call abort(). abort() never returns, hence it has the __dead2 attribute. Also add this attribute to __assert(). MFC after: 3 weeks
* sh: Remove special %builtin PATH entry.jilles2011-01-092-33/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | All builtins are now always found before a PATH search. Most ash derivatives have an undocumented feature where the presence of an entry "%builtin" in $PATH will cause builtins to be checked at that point of the PATH search, rather than before looking at any directories as documented in the man page (very old versions do document this feature). I am removing this feature from sh, as it complicates the code, may violate expectations (for example, /usr/bin/alias is very close to a forkbomb with PATH=/usr/bin:%builtin, only /usr/bin/builtin not being another link saves it) and appears to be unused (all the %builtin google code search finds is in some sort of ash source code). Note that aliases and functions took and take precedence above builtins. Because aliases work on a lexical level they can only ever be overridden on a lexical level (quoting or preceding 'builtin' or 'command'). Allowing override of functions via PATH does not really fit in the model of sh and it would work differently from %builtin if implemented. Note: POSIX says special builtins are found before functions. We comply to this because we do not allow functions with the same name as a special builtin. Silence from: freebsd-hackers@ (message sent 20101225) Discussed with: dougb
* 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
OpenPOWER on IntegriCloud