summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Don't import parameter values in jail_getv, except for the search key.jamie2010-07-151-71/+87
| | | | | | | | | | Remove the internal jailparam_vlist, in favor of using variants of its logic separately in jail_setv and jail_getv. Free the temporary parameter list and exported values in jail_setv and jail_getv. Noted by: Stanislav Uzunchev MFC after: 3 days
* Make svr4(4) version of poll(2) use the same limit of file descriptors as thetrasz2010-07-151-4/+1
| | | | usual poll(2) does, instead of checking resource limits.
* Move functions declaration to MI code, following implementation.mav2010-07-153-10/+4
|
* - AcpiOsReadMemory() needs similar fixes as r209965. [1]jkim2010-07-151-18/+6
| | | | | | | | | | | | According to ACPICA User Guide and Programmer Reference, the read data must be zero extended to fill the 32-bit return value even if the bit width of the port is less than 32. - Remove 64-bit read/write from AcpiOsReadMemory() and AcpiOsWriteMemory(). These functions do not support 64-bit access (yet). Clean up style nits and unnecessary bit masking while I am here. Reported by: Liu, Jinsong (jinsong dot liu at intel dot com) via Lin Ming (ming dot m dot lin at intel dot com) [1]
* Fix for 64 bit compilation.jchandra2010-07-151-8/+12
| | | | | RMI bootloader passes argv[] and envp[] as an array of 32 bit pointers. Convert the pointers to correct pointer type before use.
* add some modern stuff: SMP, SCHED_ULE, PREEMPTIONluigi2010-07-152-3/+15
| | | | and support for VIMAGE
* Optimize pmap_remove()'s handling of PG_G mappings. Specifically,alc2010-07-151-14/+15
| | | | | | | | | | | | | instead of calling pmap_invalidate_page() for each PG_G mapping, call pmap_invalidate_range() for each range of PG_G mappings. In addition, eliminate a redundant call to pmap_invalidate_page(). Both pmap_remove_pte() and pmap_remove_page() called pmap_invalidate_page() when the mapping had the PG_G attribute. Now, only pmap_remove_page() calls pmap_invalidate_page(). Altogether, these changes eliminate 53% of the TLB shootdowns for a "buildworld" on a ZFS file system. On FFS, the reduction is 3%. MFC after: 6 weeks
* remove some conditional #ifdefs (no-op on FreeBSD);luigi2010-07-151-8/+4
| | | | run the timer routine on cpu 0.
* whitespace cleanupluigi2010-07-151-2/+2
|
* small portability fix to build on linux/windowsluigi2010-07-151-0/+4
|
* whitespace fixesluigi2010-07-151-2/+2
|
* fix a comment and final empty lineluigi2010-07-151-3/+5
|
* better printing of headers when listing flowsluigi2010-07-151-8/+18
|
* A cosmetic change - don't output empty <flags>.ivoras2010-07-151-2/+2
|
* Relax FDT_DTS_FILE validation (and unbreak world build).raj2010-07-151-2/+0
| | | | Pointed out by: kib
* Handle RUN->ASSOC->RUN transition correctly, as in not trigger abschmidt2010-07-151-11/+28
| | | | | | | | firmware error. Convert if statements to a switch statement while I'm here. Tested by: Benjamin Kaduk <kaduk at mit.edu> MFC after: 2 weeks
* - Update 6000 firmware to 9.221.4.1bschmidt2010-07-159-8155/+16220
| | | | | | - Add 6050 firmware MFC after: 2 weeks
* Fix FDT_DTS_FILE parsing to properly retrieve its value. This unbreaks theraj2010-07-151-1/+5
| | | | | | | 'builddtb' target. Make the processing more robust against non-existent kernel config files (pointed out by imp@).
* Add support for firmware images in "type-length-value" format.bschmidt2010-07-153-48/+197
| | | | | Obtained from: OpenBSD MFC after: 2 weeks
* Detect active chains differently to work around a firmware bug whichbschmidt2010-07-151-3/+7
| | | | | | | would mark non-existing chains as active. Obtained from: OpenBSD MFC after: 1 week
* - Add new IDs for 6000 series devices.bschmidt2010-07-152-6/+22
| | | | | | | | | - The 6000 series WiMAX devices need a separate firmware. - The b-gen devices are not hooked because the hardware revision type is not know. Obtained from: OpenBSD MFC after: 1 week
* Fix some small whitespace nits.bschmidt2010-07-152-5/+5
| | | | MFC after: 3 days
* Remove duplicate vendor:device entry.bschmidt2010-07-151-1/+0
| | | | MFC after: 3 days
* Move TLB definitions to tlb.himp2010-07-152-19/+20
|
* This file has been unused for a while now...imp2010-07-151-46/+0
|
* Unbreak xz (liblzma) on strong-aligned architectures (and withoutmarcel2010-07-151-1/+0
| | | | | | emulation of misaligned memory accesses). We cannot map the unaligned memory access functions to the ones used for aligned accesses, so do not define TUKLIB_FAST_UNALIGNED_ACCESS.
* This patch fixes a bug in the experimental NFSv4 server where itrmacklem2010-07-151-1/+0
| | | | | | | | released a reference count on nfsv4rootfs_lock erroneously when administrative revocation of state was done. Submitted by: zack.kirsch at isilon.com MFC after: 2 weeks
* Sanitize CFLAGS and add WARNS?=2. The hardcoding of -Os -fPICmarcel2010-07-151-1/+1
| | | | as compiler options resulted in an invalid executable on PowerPC.
* Remove unused stuff from cpu.h.imp2010-07-154-149/+12
| | | | | | | | | | | | | | Move inappropriate stuff in cpu.h elsewhere: {s,g}et_intr_mask -> md_var.h num_tlbentries -> tlb.h Remove #define clockframe trapframe and fix clock, which was the only place this was used. All the rest of this stuff was unused. # we're not quite minimal yet, since we duplicate a few status register things # here... Inspired by: bde@
* We don't need sys/cdefs.h for __CONCAT here.imp2010-07-151-2/+0
|
* Remove i386-ish sysctls. Also, make the bootinfo sysctl OID_AUTO.imp2010-07-151-16/+1
|
* Get powerpc64 install CDs a little closer: some powerpc things should benwhitehorn2010-07-151-12/+21
| | | | | | | | used on powerpc64 as well (build scripts, for instance), and the MFS root must be adjusted upward on powerpc64 as well. This doesn't completely solve things: sysinstall stil needs some persuasion to deal with a default kernel named GENERIC64.
* Remove one layer of indirection. No need to call cpu_throw which thenimp2010-07-153-12/+4
| | | | | | | | | | calls mips_cpu_call via an obfuscated assembler call. Instead, delete the current cpu_throw, and rename mips_cpu_throw to cpu_throw. This is nicer to the cache on each context switch (since fixed jumps can be prefected, while jumps through a register can't). Incidentally, it also saves about 5 or 6 instructions. Reviewed by: jmallet@
* Add -p option to have pom(6) print just the percentage, without extra text.emaste2010-07-152-4/+17
| | | | | | PR: bin/51070 Submitted by: Matt Koivisto mkoivisto sandvine com MFC after: 1 week
* Remove more extraneous ;s.emaste2010-07-153-3/+3
|
* sh: There cannot be a TNOT in simplecmd(), remove checks.jilles2010-07-141-19/+3
| | | | | | simplecmd() only handles simple commands and function definitions, neither of which involves the ! keyword. The initial token on entry to simplecmd() is one of the following: TSEMI, TAND, TOR, TNL, TEOF, TWORD, TRP.
* Remove enabling Data FIFO protection with indirect memory access.yongari2010-07-141-6/+3
| | | | | | | | r165114 added that code and that change ignored the same logic committed in r135772. In addition, data FIFO protection should be selectively enabled instead of applying to all PCIe devices. While I'm here add BCM5785 to devices that do not require this fix.
* Rename timeevents.c to kern_clocksource.c.mav2010-07-144-3/+3
| | | | Suggested by: jhb@
* - Sort list of trace points.jhb2010-07-141-3/+3
| | | | | | - Note that 'y' (sysctl requests) is in the default set of trace points. MFC after: 3 days
* Rework the SMBIOS table walker to make it operate like other table walkersjhb2010-07-141-49/+33
| | | | | | | | | | | | | | | | | | and remove a buffer overflow: - Remove the array of per-type dispatch functions. Instead, pass each structure to a single callback. The callback should check the type of each table entry to take appropriate action. This matches the behavior of other table walkers such as for the MP Table and MADT. - Don't attempt to save an array of string pointers for each structure entry. Instead, just skip the strings. If this code is reused to provide a generic SMBIOS table walker in the future we could provide a method that looks up a specific string N for a given structure record instead of pre-populating an array of pointers. This fixes a buffer overflow for structure entries with more than 20 strings. PR: kern/148546 Reported by: Spencer Minear @ McAfee MFC after: 3 days
* Fix spelling.attilio2010-07-141-5/+5
| | | | | | | Sponsored by: Sandvine Incorporated Submitted by: b.f. <bf1783 at googlemail dot com> MFC after: 2 weeks X-MFC: 210063
* - Document layout of KTR_STRUCT payload in a comment.jhb2010-07-142-9/+11
| | | | | | | | - Simplify ktrstruct() calling convention by having ktrstruct() use strlen() rather than requiring the caller to hand-code the length of constant strings. MFC after: 1 month
* Fix the way the segments are included in the gcore outputs (with theattilio2010-07-144-11/+30
| | | | | | | | | | | | | | | | | | | default invokation): - Right now if segments are not writable are not included. Remove this. - Right now if a segment is mapped with NOCORE the check is not honoured. Change this by checking the newly added flag, from libutil, KVME_FLAG_NOCOREDUMP. Besides that, add a new flag (-f) that forces a 'full' dump of all the segments excluding just the malformed ones. This might be used very carefully as, among the reported segments, there could be memory mapped areas that could be vital to program execution. Sponsored by: Sandvine Incorporated Discussed with: kib Reviewed by: emaste Tested by: Sandvine Incorporated MFC after: 2 weeks
* Update some release version numbers. The patch is based on the onebcr2010-07-141-5/+5
| | | | | | | | | | | from the PR, but the version numbers reflect the newer ones from http://security.freebsd.org/#sup PR: docs/145227 Submitted by: Glen Barber (glen dot j dot barber at gmail dot com) Reviewed by: cperciva Mentored by: jkois MFC after: 1 week
* Do not bzero() NULL pointer on malloc() error.mav2010-07-141-1/+1
| | | | Submitted by: Dmitry Luhtionov
* Correct logic bug in aicasm's undefined register bit access detection code.gibbs2010-07-143-5/+12
| | | | | | | | | | | | | | | | The code in question verifies that all register write operations only change bits that are defined (in the register definition file) for that effected register. The bug effectively disabled this checking. o Fix the check by testing the opcode against all supported read ("and" based) operands. o Add missing bit definitions to the aic7xxx and aic79xx register definition files so that the warning (treated as a fatal error) does not spuriously fire. Reported by: Pawel Worach <pawel.worach@gmail.com> MFC after: 1 week
* Move timeevents.c to MI code, as it is not x86-specific. I already havemav2010-07-144-3/+4
| | | | | it working on Marvell ARM SoCs, and it would be nice to unify timer code between more platforms.
* Provide initial man pages for Flattened Device Tree support and the commonraj2010-07-144-0/+356
| | | | | | drivers. Sponsored by: The FreeBSD Foundation
* Remove some unneeded includes. Code now can be built on ARM.mav2010-07-141-3/+0
|
* Fixed cache size decoding read from a label.ru2010-07-141-1/+1
| | | | | | PR: kern/144732 Submitted by: Eugene Grosbein MFC after: 3 days
OpenPOWER on IntegriCloud