Age | Commit message (Collapse) | Author |
|
testing by david@ ok deraadt@
|
|
0x6 and 0xf and only for family 0x6
- use intel686_p4_cpu_setup() for family 0xf cpus
- msr-based hw.cpuspeed for pentium 4
- use pentium_mhz for hw.cpuspeed if there's nothing better (diff from tedu@)
Ok tedu@
|
|
from the underlying callbacks.
Testing hppa mickey@, ppc drahn@
Ok markus@ tedu@
|
|
|
|
|
|
|
|
|
|
Pass SSE/SSE2/XCRYPT flags out via syctl, and prepare for being able to do
xcrypt-* in userland; ok naddy, tested a lot by pvalchev and jolan, also
works on amd64 in 32bit mode
|
|
- finally remove it from pcb, it's a pmap thing only
- more sanity checks
- better lockin
- may be something else
Fixes panics when using apps requiring it (mplayer-win32 e.g.).
Problem found and test espie@.
OKs from miod@ (sshhh, don't tell anyone) and art@.
|
|
|
|
|
|
|
|
tricked-to-commit-into-i386-land millert@
|
|
|
|
to built-ins, so eventually we will have one version of these files.
Special adjustments for the kernel to cope: machine/stdarg.h -> sys/stdarg.h
and machine/ansi.h needs to have a _BSD_VA_LIST_ for syslog* prototypes.
okay millert@, drahn@, miod@.
|
|
are using lots of shm may also wish to also increase SHMMAXPGS.
OK deraadt@
|
|
tested by Ian Zagorskih <ianzag@megasignal.com>.
ok mickey@
|
|
limit power consumption with the hw.setperf sysctl.
tested by beck and grange
|
|
ok deraadt@
|
|
convert longrun support to use new sysctls.
add enhanced speedstep support, based on code by Michael Eriksson.
idea, help testing & ok deraadt@
|
|
ok toby, mickey
|
|
of gcc extensions have more of a chance.
ok mcbride@, no objections from millert@, deraadt@
|
|
including stuff like <sys/sysctl.h>
deraadt@ ok
|
|
put it to cpufunc.h.
ok weingart@ tedu@
|
|
now call the poll backend. With this change we implement greater
poll(2) functionality instead of emulating it via the select backend.
Adapted from NetBSD and including some changes from FreeBSD.
Tested by many, deraadt@ OK
|
|
two months ago and the rediscovered by grange@ and then probably by some more other people in mongolia who had no inet to report it unfortunately; this also fixes problem w/ catching sigsegv after recent bcopy(,,sizeof) fixes; deraadt@ ok
|
|
This changes the real definition to __mcount, but with a weak mcount
for compat. On the next major bump the weak alias should be removed.
Without this diff the compiler symbol mcount conflicts with the
user mcount() function.
|
|
|
|
|
|
DOS reported by Michal Zalewski to bugtraq. ok mickey@ toby@
|
|
ok deraadt mickey
|
|
Recognize more feature flags
deraadt@ ok
|
|
|
|
|
|
rescinded 22 July 1999. Proofed by myself and Theo.
|
|
art@ toby@ ok.
|
|
Not only do we have to think about PROT_EXEC while dealing with it, but we
also have to think about wiring. sigh.
We'll have to fix this with an API change.
fixes the mlockall problem.
|
|
and cr0-ct4
OK by niklas@ and more or less by ho@
|
|
option LONGRUN enables a new sysctl, allowing a userland program
to read the current CPU frequency and voltage and also set
the mininum and maximum frequencies to operate between, and switch
between performance mode and battery mode.
ok mickey@
|
|
correct. It breaks down if we're trying to jump through a function
pointer. The protection fault trap on i386 must be one of the most
braindead traps ever invented in the history of humankind. It doesn't
give you any information about what went wrong except the instruction
that faulted. Since the problem we're trying to deal with is a
segmentation problem, we don't get the desitination that we want to
jump to, we just get the instruction and we won't add a disassembler
to trap handling just to try to figure out what went wrong.
What we want to do is to handle this as a normal fault to let noexec
accounting in pmap_enter deal with the changes to the code
segment. Unfortunately that's impossible. We don't know the faulting
address, so we need to change how the exec accounting works. Basically
the code segment must already cover the address we want to execute
before we can fault it in.
New scheme:
o Start with conservative code segment.
o If we get a protection fault, go through all mappings in the process
and find the highest executable mapping, fix up the code segment and
record that address. If the code segment didn't change, the protection
fault wasn't fixable - just die.
o If the highest executable mapping is removed, just reset the code
segment to something conservative and let the next protection fault
deal with it. We can't read all the vm mappings of the process from
the pmap because of locking hell.
This should allow floating code segment whenever someone implements that.
Also, fix the pmap_protect function to behave more like the other
pmaps we have and be slightly more agressive to force more proper
protection changes.
ok:ed by various people.
|
|
interleave of exe/shared libs. Raise MAXDSIZ back to 1G.
This change REQUIRES a binary update on i386.
|
|
tss and not only in the frame since we might be returning that way too.
add a heuristic for detecting an exec protection fault:
iff we get a read protection fault (which we normally never
get due to our segments being always readable) we assume that
it was an exec protection indeed and go to page fault
routine which will decide the rest for us (including sending
a signal should that be needed).
problem found by drahn@ and testing by many ppl.
|
|
DARPA funded work.
|
|
|
|
|
|
disabled by default.
Enable with sysctl -w machdep.userldt=1
This will allow people to use the few ports that require this functionality
to work without requiring the user to recompile a kernel.
The option USER_LDT remains in order to not increase size on the
installation media. It is now enabled in GENERIC.
Per espie@'s idea, but my diff was much simpler than his; ok deraadt@
|
|
will be shipping soon (we have nice prototypes). Written by toby.
|
|
deraadt@ ok.
|
|
|
|
remaining instances of them with appropriate copy(9) usage.
ok art@, tested on all arches unless my memory is non-ECC
|