History log of /freebsd-10.1-release/usr.sbin/memcontrol/
Revision Date Author Comments
272461 03-Oct-2014 gjb

Copy stable/10@r272459 to releng/10.1 as part of
the 10.1-RELEASE process.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation


241829 22-Oct-2012 eadler

Fix conditional expression: previously a bit vector was being operated
on by a logical not instead of the entire expression.

Approved by: cperciva
MFC after: 3 days


227254 06-Nov-2011 ed

Mark global functions and/or variables in memcontrol(8) static where possible.

This allows compilers and static analyzers to do more thorough analysis.


201390 02-Jan-2010 ed

The last big commit: let usr.sbin/ use WARNS=6 by default.


144303 29-Mar-2005 anholt

Correct formatting of pointers in the listing by using "0x%" PRIx64 instead of
"%" PRIu64 "x".


139854 07-Jan-2005 delphij

WARNS=6 cleanup. This includes:
- Apply __unused on unused parameters
- Use const where suitable
- Use PRIu64 instead of the deprecated %q
- Bump WARNS to 6


107312 27-Nov-2002 ru

mdoc(7) police: markup fixes.

Approved by: re


103346 15-Sep-2002 dwmalone

Some BIOSs are using MTRR values that are only documented under NDA
to control the mapping of things like the ACPI and APM into memory.

The problem is that starting X changes these values, so if something
was using the bits of BIOS mapped into memory (say ACPI or APM),
then next time they access this memory the machine would hang.

This patch refuse to change MTRR values it doesn't understand,
unless a new "force" option is given. This means X doesn't change
them by accident but someone can override that if they really want
to.

PR: 28418
Tested by: Christopher Masto <chris@netmonger.net>,
David Bushong <david@bushong.net>,
Santos <casd@myrealbox.com>
MFC after: 1 week


99968 14-Jul-2002 charnier

The .Nm utility


94684 14-Apr-2002 dwmalone

Make the MTRR code a bit more defensive - this should help people
trying to run X on some Athlon systems where the BIOS does odd things
(mines an ASUS A7A266, but it seems to also help on other systems).

Here's a description of the problem and my fix:

The problem with the old MTRR code is that it only expects
to find documented values in the bytes of MTRR registers.
To convert the MTRR byte into a FreeBSD "Memory Range Type"
(mrt) it uses the byte value and looks it up in an array.
If the value is not in range then the mrt value ends up
containing random junk.

This isn't an immediate problem. The mrt value is only used
later when rewriting the MTRR registers. When we finally
go to write a value back again, the function i686_mtrrtype()
searches for the junk value and returns -1 when it fails
to find it. This is converted to a byte (0xff) and written
back to the register, causing a GPF as 0xff is an illegal
value for a MTRR byte.

To work around this problem I've added a new mrt flag
MDF_UNKNOWN. We set this when we read a MTRR byte which
we do not understand. If we try to convert a MDF_UNKNOWN
back into a MTRR value, then the new function, i686_mrt2mtrr,
just returns the old value of the MTRR byte. This leaves
the memory range type unchanged.

I have seen one side effect of the fix, which is that ACPI calls
after X has been run seem to hang my machine. As running X would
previously panic the machine, this is still an improvement ;-)

I'd like to MFC this before the 4.6 code freeze - please let me
know if it causes any problems.

PR: 28418, 25958
Tested by: jkh, Christopher Masto <chris@netmonger.net>
MFC after: 2 weeks


80029 20-Jul-2001 obrien

Perform a major cleanup of the usr.sbin Makefiles.
These are not perfectly in agreement with each other style-wise, but they
are orders of orders of magnitude more consistent style-wise than before.


79755 15-Jul-2001 dd

Remove whitespace at EOL.


79537 10-Jul-2001 ru

mdoc(7) police: removed HISTORY info from the .Os call.


78737 24-Jun-2001 dd

Nuke unused variables.


75670 18-Apr-2001 ru

mdoc(7) police: normalize .Nd.


74816 26-Mar-2001 ru

- Backout botched attempt to introduce MANSECT feature.
- MAN[1-9] -> MAN.


74532 20-Mar-2001 ru

Set the default manual section for usr.sbin/ to 8.


69793 09-Dec-2000 obrien

Add `_PATH_DEVZERO'.
Use _PATH_* where where possible.


68965 20-Nov-2000 ru

mdoc(7) police: use the new features of the Nm macro.


58408 20-Mar-2000 green

Make memcontrol(8) able to delete the segments starting at a base of 0
which it can create..


57673 01-Mar-2000 sheldonh

Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.


52064 09-Oct-1999 chris

Remove an unnecessary cross-reference to ioctl(2)


51803 29-Sep-1999 chris

Add and activate the man page for memcontrol(8).

Reviewed by: msmith


50479 28-Aug-1999 peter

$Id$ -> $FreeBSD$


48920 20-Jul-1999 msmith

Make memcontrol's internal help actually work. No substitute for a real
manpage, but at least now you can get syntax help without resorting
to reading the source.


45411 07-Apr-1999 msmith

This commit was generated by cvs2svn to compensate for changes in r45410,
which included commits to RCS files with non-trunk default branches.