summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
* MFp4 180933:pjd2010-07-141-0/+2
| | | | | | | | | | | Initialize rw_count properly so that zdb(8) doesn't trigger assertion in rw_enter(): ASSERT(rwlp->rw_count == 0); While here, assert that rw_count is 0 when destroying the lock. MFC after: 1 week
* Use cpuregs.h spellings over the cpu.h spellings.imp2010-07-141-2/+2
|
* Import preliminary support for Atmel AT91SAM9G20 cpu, and the Hot-e HL201.cognet2010-07-1418-3/+4193
| | | | | This fine work was done by Yohanes Nugroho <yohanes a gmail dot com> Many thanks to John Nicholls and Thinlinx for providing sample hardware.
* Remove the unused part of cpu.h now that the rest of the tree has beenimp2010-07-141-200/+3
| | | | | transitioned to use cpuregs.h spellings. Now we're only 4x too big, according to the bde-ometer.
* Prefer the cpuregs.h spellings of register and bit names over cpu.h.imp2010-07-1410-289/+297
|
* Add support for packages.imp2010-07-1310-24/+325
| | | | | PR: 148584 Submitted by: John Hixon
* For the experimental NFSv4 client, make sure that attributes thatrmacklem2010-07-131-0/+14
| | | | | | | | predate the issue of a delegation are not cached once the delegation is held. This is necessary, since cached attributes remain valid while the delegation is held. MFC after: 2 weeks
* Remove obsolete code that sets SHMMAXPGS to a tiny value by defaultnwhitehorn2010-07-131-7/+0
| | | | on PowerPC.
* For the experimental NFSv4 client, do not use cached attributesrmacklem2010-07-131-1/+1
| | | | | | that were invalidated, even when a delegation for the file is held. MFC after: 2 weeks
* Fix a bogus comment that mentions lru lists that don't exist.rmacklem2010-07-131-1/+1
| | | | | Reported by: zack.kirsch at isilon.com MFC after: 2 weeks
* union cpuprid is also unused nowimp2010-07-131-22/+0
|
* Add INFO config register from mips32/64 landimp2010-07-131-0/+2
|
* Remove redunant machine/cpuregs.h include.imp2010-07-131-4/+3
| | | | Also, spell things like in machine/cpuregs.h instead of machine/cpu.h.
* Temp hack to N32 kernel: turn off debugger since n32 is too weird for ddbimp2010-07-131-4/+4
|
* Add GENERIC kernel config for powerpc64.nwhitehorn2010-07-131-0/+182
|
* Connect powerpc64 to the build. It is not presently part of make universe,nwhitehorn2010-07-133-25/+52
| | | | | | which will be added soon. Reviewed by: imp
* Add a 4 and 7 port USB hub from NEC.remko2010-07-131-0/+2
| | | | | PR: 148189 MFC after: 1 week
* Initialize a variable before its use.jkim2010-07-131-1/+1
|
* Preallocate buffers for palette and state. Do not save DAC registers asjkim2010-07-131-83/+58
| | | | we reset DAC mode and restore palette data while we are resuming always.
* Prefer PCIR_BAR macro over BGE_PCI_BAR0.yongari2010-07-131-2/+2
|
* Fix error message for jumbo buffer allocation failure.yongari2010-07-131-1/+1
|
* style.yongari2010-07-131-7/+9
|
* Fix a panic brought about by writing an MSR without a proper mask.gnn2010-07-132-13/+86
| | | | | | | | | All of the necessary wrmsr calls are now preceded by a rdmsr and we leave the reserved bits alone. Document the bits in the relevant registers for future reference. Tested by: mdf MFC after: 1 week
* Make bge_stop_fw() static.yongari2010-07-131-13/+9
| | | | While I'm here use ANSI function definitions.
* Fix build on architectures where PAGE_SIZE is a long (sparc64, powerpc).nwhitehorn2010-07-131-4/+3
|
* Define break value for ddb.imp2010-07-131-15/+16
| | | | | | | Use int32/intptr casts for exception vector names. Define MIPS_SR_INT_MASK again Change MIPS_XKPHYS_CCA_* to MIPS_CCA_* since we can use them in many contexts Minor gratuitous whitespace churn
* Use the cpuregs.h spellings for these registers rather than the cpu.himp2010-07-131-5/+5
| | | | spelling.
OpenPOWER on IntegriCloud