| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
as compiler options resulted in an invalid executable on PowerPC.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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@
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
|
| |
PR: bin/51070
Submitted by: Matt Koivisto mkoivisto sandvine com
MFC after: 1 week
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Suggested by: jhb@
|
|
|
|
|
|
| |
- Note that 'y' (sysctl requests) is in the default set of trace points.
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Sponsored by: Sandvine Incorporated
Submitted by: b.f. <bf1783 at googlemail dot com>
MFC after: 2 weeks
X-MFC: 210063
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Submitted by: Dmitry Luhtionov
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
it working on Marvell ARM SoCs, and it would be nice to unify timer code
between more platforms.
|
|
|
|
|
|
| |
drivers.
Sponsored by: The FreeBSD Foundation
|
| |
|
|
|
|
|
|
| |
PR: kern/144732
Submitted by: Eugene Grosbein
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
This fine work was done by Yohanes Nugroho <yohanes a gmail dot com>
Many thanks to John Nicholls and Thinlinx for providing sample hardware.
|
|
|
|
|
| |
transitioned to use cpuregs.h spellings. Now we're only 4x too big,
according to the bde-ometer.
|
| |
|
|
|
|
|
| |
PR: 148584
Submitted by: John Hixon
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
on PowerPC.
|
|
|
|
|
|
| |
that were invalidated, even when a delegation for the file is held.
MFC after: 2 weeks
|
|
|
|
|
| |
Reported by: zack.kirsch at isilon.com
MFC after: 2 weeks
|
| |
|
| |
|
|
|
|
| |
Also, spell things like in machine/cpuregs.h instead of machine/cpu.h.
|
| |
|
| |
|
|
|
|
|
|
| |
which will be added soon.
Reviewed by: imp
|
|
|
|
|
| |
PR: 148189
MFC after: 1 week
|
| |
|
|
|
|
| |
we reset DAC mode and restore palette data while we are resuming always.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
While I'm here use ANSI function definitions.
|
| |
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
spelling.
|