summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove variables which are initialized but never used thereaftereadler2012-07-071-3/+0
| | | | | | | reported by gcc46 warning Approved by: cperciva MFC after: 1 week
* Remove variables which are initialized but never used thereaftereadler2012-07-072-8/+2
| | | | | | | | reported by gcc46 warning Reviewed by: scottl Approved by: cperciva MFC after: 1 week
* Remove variables which are initialized but never used thereaftereadler2012-07-071-3/+1
| | | | | | | reported by gcc46 warning Approved by: cperciva MFC after: 1 week
* Fix orphan() methods of several GEOM classes to not assume that theretrasz2012-07-075-17/+5
| | | | | | | | | is an error set on the provider. With GEOM resizing, class can become orphaned when it doesn't implement resize() method and the provider size decreases. Reviewed by: mav Sponsored by: FreeBSD Foundation
* Fix spellingeadler2012-07-072-2/+2
| | | | | | PR: bin/167480 Submitted by: zeising Approved by: cperciva
* acpi_cpu_generic_cx_probe: for consistency set cpu_non_c3 here tooavg2012-07-071-0/+2
| | | | | | | although by default only C1 is enabled (cx_lowest=0) and enabling deeper states goes through acpi_cpu_set_cx_lowest which re-evaluates cpu_non_c3 MFC after: 2 weeks
* acpi_cpu_cx_list: there is no need to re-evaluate cpu_non_c3 hereavg2012-07-071-8/+4
| | | | | | | | | | | cpu_non_c3 is already evaluated in acpi_cpu_cx_cst and in acpi_cpu_set_cx_lowest. Besides acpi_cpu_cx_list is not protected by any locking. As a result also move setting of cpu_can_deep_sleep to more appropriate places. MFC after: 2 weeks
* acpi_cpu_cx_cst: consistently use cpu_cx_count during state enumerationavg2012-07-071-2/+2
| | | | | | | cpu_cx_count is an index into accepted states, while i is an index into original _CST states MFC after: 1 week
* Implement ia64_physmem_alloc() and use it consistently to get memorymarcel2012-07-074-80/+82
| | | | | | | | | | | | | before VM has been initialized. This includes: 1. Replacing pmap_steal_memory(), 2. Replace the handcrafted logic to allocate a naturally aligned VHPT, 3. Properly allocate the DPCPU for the BSP. Ad 3: Appending the DPCPU to kernend worked as long as we wouldn't cross into the next PBVM page. If we were to cross into the next page, then there wouldn't be a PTE entry on the page table for it and we would end up with a MCA following a page fault. As such, this commit fixes MCAs occasionally seen.
* Create a generic way to support multiple boards within animp2012-07-0714-22/+121
| | | | | | arm platform. Add all the atmel boards to the ATMEL kernel for testing purposes. Until boot loader arg parsing of baord type is done, this won't actually be able to do the runtime selection.
* Generalize this for loading the loader into the SPI. Plus trim aboutimp2012-07-071-11/+5
| | | | | | 100 bytes from the binary with silly tricks. Hope to get this small enough to run on the models that have 4k SRAM. We are close compiled for the at91rm9200, but still need to trim for the target.
* Allow other SOCs to be compiled in, first step.imp2012-07-071-1/+3
|
* Strip out the useless junk. All we really care about is the text,imp2012-07-071-232/+0
| | | | | data and bss sections. All the rest is needed for normal binaries, but boot loaders aren't normal.
* Unbreak building WITH_ICONV=yes and new yacc.kientzle2012-07-071-1/+0
|
* Hide the creation of phys_avail behind an API to make it easier to do itmarcel2012-07-076-153/+270
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | correctly. We now iterate the EFI memory descriptors once and collect all the information in a single pass. This includes: 1. The I/O port base address, 2. The PAL memory region. Have the physmem API track this. 3. Memory descriptors of memory we can't use, like bad memory, runtime services code & data, etc. Have the physmem API track these. 4. memory descriptors of memory we can use or re-use, such as free memory, boot time services code & data, loader code & data, etc. These are added by the physmem API. Since the PBVM page table and pages are in memory described as loader data, inform the physmem API of chunks that need to be delated from the available physical memory. While here, remove Maxmem and replace it with the better named paddr_max. Maxmem was defined as physmem, which is generally wrong. Now, paddr_max is properly defined as the largesty physical address. The upshot of all this is that: 1. We properly determine realmem. 2. We maximize physmem by re-using memory where possible. 3. We remove complexity from ia64_init() in machdep.c. 4. Remove confusion about realmem, physmem & Maxmem. The new ia64_physmem_alloc() is to replace pmap_steal_memory() in pmap.c, as well as replace the handcrafted allocation of the VHPT for the BSP in pmap_bootstrap() in pmap.c. This is step 2 and addresses the manipulation of phys_avail after it is being created.
* Implement SIOCGIFMEDIA for if_tap(4)emaste2012-07-061-4/+22
| | | | | | | | | Appease certain if_tap(4) consumers by providing simulated Ethernet media status. DragonFly commit 70d9a675bf5441cc854a843ead702d08928c37f3 Obtained from: DragonFly BSD
* Restore the __collate_load_error global that was accidentally removed in thetheraven2012-07-062-5/+6
| | | | | | xlocale refactoring. MFC after: 1 week
* Add a source file needed for module linking.kib2012-07-061-1/+1
| | | | MFC after: 4 days
* Style.kib2012-07-061-3/+3
| | | | | Reviewed by: alc (previous version) MFC after: 1 week
* Use assembler mnemonic instead of manually assembling, contination for r238142.kib2012-07-061-6/+3
| | | | | Reviewed by: jhb MFC after: 1 month
* Merge a small update from NetBSD.pfg2012-07-062-20/+17
| | | | | | | Feb 15 21:55:23 2009 - chared.c chared.h pass lint on _LP64. MFC after: 1 week
* Allow continuous packet transmission (via -t 0)emaste2012-07-061-6/+13
| | | | | Also add a missing check for the cancel flag while waiting for the first packet in receive mode.
* Fix issue resizing bin/shpfg2012-07-065-66/+24
| | | | | | | | | | | | | | | | | | | | | This partially reverts some changes from r237448 that are causing breakage when resizing under bin/sh . Reverted changes from NetBSD are: Mar 10 20:46:15 2009 - editline.3 read.c make el_gets set the count to -1 on error to distinguish between EOF and error. Feb 19 15:20:22 2009 - read.c sig.c sig.h reset and redraw on sigcont. From Anon Ymous. Feb 15 21:24:13 2009 don't restart on EINTR, instead return NULL immediately. From Anon Ymous PR: 169603 Reported by: Peter Jeremy, David Shao MFC after: 3 days
* agp.c:marcel2012-07-062-4/+2
| | | | | | | | | | | | | | | | | | | Don't use Maxmem when the amount of memory is meant. Use realmem instead. Maxmem is not only a MD variable, it represents the highest physical memory address in use. On systems where memory is sparsely layed-out the highest memory address and the amount of memory are not interchangeable. Scaling the AGP aperture based on the actual amount of memory (= realmem) rather than the available memory (= physmem) makes sure there's consistent behaviour across architectures. agp_i810.c: While arguably the use of Maxmem can be considered correct, replace its use with realmem anyway. agp_i810.c is specific to amd64, i386 & pc98, which have a dense physical memory layout. Avoiding Maxmem here is done with an eye on copy-n-paste behaviour in general and to avoid confusion caused by using realmem in agp.c and Maxmem in agp_i810.c. In both cases, remove the inclusion of md_var.h
* Fix typo in the comment.trasz2012-07-061-1/+1
|
* Also report tx bandwidth with Ethernet overheademaste2012-07-061-14/+28
|
* r237748 continuation: fix nopw (0f 1f) behavior with respect to modifiersavg2012-07-062-2/+2
| | | | | | | | | To do: proper merge with Illumos vendor area. Reported by: emaste Tested by: emaste Obtained from: Illumos commit 13442:4adbe6de60c8 MFC after: 5 days
* r237748 continuation: segment-override prefixes are not invalid in long modeavg2012-07-062-8/+8
| | | | | | | | | | | | | Update DTrace disassembler accordingly. The code to treat the prefixes as null prefixes was already in place. Although in practice compilers seem to generate only cs-prefix for use in long NOPs, the same treatment is applied to all of cs, ds, es, ss for consistency. Reported by: emaste Tested by: emaste Obtained from: Illumos commit 13442:4adbe6de60c8 (+ local changes) MFC after: 5 days
* Add support for the 'invept' and 'invvpid' instructions. Beyond simplyjhb2012-07-064-3/+58
| | | | | | | | adding appropriate table entries, the assembler had to be adjusted as these are the first non-SSE instructions to use a 3-byte opcode (and a mandatory prefix to boot). MFC after: 1 month
* Several fixes to the amd64 disassembler:jhb2012-07-061-22/+134
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Add generic support for opcodes that are escape bytes used for multi-byte opcodes (such as the 0x0f prefix). Use this to replace the hard-coded 0x0f special case and add support for three-byte opcodes that use the 0x0f38 prefix. - Decode all Intel VMX instructions. invept and invvpid in particular are three-byte opcodes that use the 0x0f38 escape prefix. - Rework how the special 'SDEP' size flag works such that the default instruction name (i_name) is the instruction when the data size prefix (0x66) is not specified, and the alternate name in i_extra is used when the prefix is included. - Add a new 'ADEP' size flag similar to 'SDEP' except that it chooses between i_name and i_extra based on the address size prefix (0x67). Use this to fix the decoding for jrcxz vs jecxz which is determined by the address size prefix, not the operand size prefix. Also, jcxz is not possible in 64-bit mode, but jrcxz is the default instruction for that opcode. - Add support for handling instructions that have a mandatory 'rep' prefix (this means not outputting the 'repe ' prefix until determining if it is used as part of an opcode). Make 'pause' less of a special case this way. - Decode 'cmpxchg16b' and 'cdqe' which are variants of other instructions but with a REX.W prefix. MFC after: 1 month
* Allow threads to finish up when terminated by useremaste2012-07-061-13/+11
| | | | | | Set a flag and allow worker threads to finish upon ^C, instead of immediately cancelling them, so that final packet count and rate stats can be displayed.
* Add another PS/2 keyboard PNP ID. This ID is listed asjhb2012-07-061-0/+1
| | | | | | | | | "Reserved by Microsoft" in the standard PNP ID table, but has been seen in the wild on at least one laptop. PR: kern/169571 Submitted by: Matthias Apitz guru unixarea de MFC after: 3 days
* Make pmap_enter()'s management of PV entries consistent with the other pmapalc2012-07-061-20/+15
| | | | | | | | functions that manage PV entries. Specifically, remove the PV entry from the containing PV list only after the corresponding PTE is destroyed. Update the pmap's wired mapping count in pmap_enter() before the PV list lock is acquired.
* Replace all uses of the vm page queues lock by a r/w lock that is privatealc2012-07-061-29/+46
| | | | | | to this pmap. Tested by: andreast, jhibbits
* Correct small regressions pointed out by jhb, thanks John.jfv2012-07-051-3/+1
| | | | MFC after:5 days
* Update to the ixgbe driver:jfv2012-07-0514-495/+672
| | | | | | | | | | | - Add a couple of new devices - Flow control changes in shared and core code - Bug fix to Flow Director for 82598 - Shared code sync to internal with required core change Thanks to those helping in the testing and improvements to this driver! MFC after:5 days
* Sync with Intel internal source:jfv2012-07-0522-1081/+2262
| | | | | | | | shared code update and small changes in core required Add support for new i210/i211 devices Improve queue calculation based on mac type MFC after:5 days
* Remove the "funny targets" make check. We no longer need embedded :: targetsobrien2012-07-059-18/+42
| | | | | | | | | to build FreeBSD (they are used in Perl man pages). We never needed embedded "!" in targets that I can find. We got this from OpenBSD and I cannot find any other make that supports such things -- contrary to their commit message claim: "This behaviour is also consistent with other versions of make.".
* Now that our assembler supports the xsave family of instructions, use themjhb2012-07-052-19/+23
| | | | | | | | natively rather than hand-assembled versions. For xgetbv/xsetbv, add a wrapper API to deal with xcr* registers: rxcr() and load_xcr(). Reviewed by: kib MFC after: 1 month
* Document the behavior (from 4.4-lite) that tokens returned by telldir() arebrooks2012-07-051-2/+15
| | | | | | | single use. Sponsored by: DARPA, AFRL MFC after: 3 days
* Fix LINT.marcel2012-07-051-1/+1
| | | | Obtained from: Juniper Networks, Inc.
* Calculate the new PTE value in pmap_enter() before acquiring any locks.alc2012-07-051-32/+27
| | | | Move an assertion to the beginning of pmap_enter().
* Restore r211786 by rpaulo:emaste2012-07-051-8/+5
| | | | | | | | Port dtruss to FreeBSD. Sponsored by: The FreeBSD Foundation It appears the change was reverted by r235380.
* Correct an error in r237513. The call to reserve_pv_entries() must comealc2012-07-051-8/+12
| | | | | | | | before pmap_demote_pde() updates the PDE. Otherwise, pmap_pv_demote_pde() can crash. Crash reported by: kib Patch tested by: kib
* Add support for the 'xsave', 'xrstor', 'xsaveopt', 'xgetbv', and 'xsetbv'jhb2012-07-045-11/+74
| | | | | | | | | | instructions. I reimplemented this from scratch based on the Intel manuals and the existing support for handling the fxsave and fxrstor instructions. This will let us use these instructions natively with GCC rather than hardcoding the opcodes in hex. Reviewed by: kib MFC after: 1 month
* Use consistent method to determine IPV4_OUTPUT/IPV6_OUTPUT.tuexen2012-07-041-4/+12
| | | | MFC after: 3 days
* Use CSUM_SCTP_IPV6 for IPv6.tuexen2012-07-041-2/+2
| | | | MFC after: 3 days
* Make use of GEOM Gate direct reads feature. This allows HAST to servepjd2012-07-041-1/+31
| | | | | | | | | | | | | | reads with native speed of the underlying provider. There are three situations when direct reads are not used: 1. Data is being synchronized and synchronization source is the secondary node, which means secondary node has more recent data and we should read from it. 2. Local read failed and we have to try to read from the secondary node. 3. Local component is unavailable and all I/O requests are served from the secondary node. Sponsored by: Panzura, http://www.panzura.com MFC after: 1 month
* Extend GEOM Gate class to handle read I/O requests directly within the kernel.pjd2012-07-042-35/+314
| | | | | | | | This will allow HAST to read directly from the local component without even communicating userland daemon. Sponsored by: Panzura, http://www.panzura.com MFC after: 1 month
* Prefer sysctl to open/read/close for obtaining random data.pjd2012-07-041-5/+35
| | | | | | | | | This method is more sandbox-friendly and also should be faster as only one syscall is needed instead of three. In case of an error fall back to the old method. Reviewed by: simon, gleb MFC after: 2 weeks
OpenPOWER on IntegriCloud