<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/usr.sbin/memcontrol/memcontrol.c, branch stable/13</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=stable%2F13</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=stable%2F13'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2023-08-23T17:43:21Z</updated>
<entry>
<title>Remove $FreeBSD$: two-line .h pattern</title>
<updated>2023-08-23T17:43:21Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-08-22T01:31:07Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=17da660ad5b3b9cd90e164dd4dbb9beaa7203054'/>
<id>urn:sha1:17da660ad5b3b9cd90e164dd4dbb9beaa7203054</id>
<content type='text'>
Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/

Similar commit in main:
(cherry picked from commit b3e7694832e8)
</content>
</entry>
<entry>
<title>spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD</title>
<updated>2023-07-25T15:13:49Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2023-05-10T15:40:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=caa41f641755c935b036e17440a3b49329c904ed'/>
<id>urn:sha1:caa41f641755c935b036e17440a3b49329c904ed</id>
<content type='text'>
The SPDX folks have obsoleted the BSD-2-Clause-FreeBSD identifier. Catch
up to that fact and revert to their recommended match of BSD-2-Clause.

Discussed with:		pfg
MFC After:		3 days
Sponsored by:		Netflix

(cherry picked from commit 4d846d260e2b9a3d4d0a701462568268cbfe7a5b)
</content>
</entry>
<entry>
<title>various: general adoption of SPDX licensing ID tags.</title>
<updated>2017-11-27T15:37:16Z</updated>
<author>
<name>Pedro F. Giffuni</name>
<email>pfg@FreeBSD.org</email>
</author>
<published>2017-11-27T15:37:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1de7b4b805ddbf2429da511c053686ac4591ed89'/>
<id>urn:sha1:1de7b4b805ddbf2429da511c053686ac4591ed89</id>
<content type='text'>
Mainly focus on files that use BSD 2-Clause license, however the tool I
was using misidentified many licenses so this was mostly a manual - error
prone - task.

The Software Package Data Exchange (SPDX) group provides a specification
to make it easier for automated tools to detect and summarize well known
opensource licenses. We are gradually adopting the specification, noting
that the tags are considered only advisory and do not, in any way,
superceed or replace the license texts.

No functional change intended.
</content>
</entry>
<entry>
<title>Fix conditional expression: previously a bit vector was being operated</title>
<updated>2012-10-22T02:12:15Z</updated>
<author>
<name>Eitan Adler</name>
<email>eadler@FreeBSD.org</email>
</author>
<published>2012-10-22T02:12:15Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=d3522c026f32cd760a7cc747ad6b8d459edc701a'/>
<id>urn:sha1:d3522c026f32cd760a7cc747ad6b8d459edc701a</id>
<content type='text'>
on by a logical not instead of the entire expression.

Approved by:	cperciva
MFC after:	3 days
</content>
</entry>
<entry>
<title>Mark global functions and/or variables in memcontrol(8) static where possible.</title>
<updated>2011-11-06T19:01:59Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2011-11-06T19:01:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6ea612c7abfa0ab9a3c2a15f196ca6ead9698ae2'/>
<id>urn:sha1:6ea612c7abfa0ab9a3c2a15f196ca6ead9698ae2</id>
<content type='text'>
This allows compilers and static analyzers to do more thorough analysis.
</content>
</entry>
<entry>
<title>Correct formatting of pointers in the listing by using "0x%" PRIx64 instead of</title>
<updated>2005-03-29T20:17:47Z</updated>
<author>
<name>Eric Anholt</name>
<email>anholt@FreeBSD.org</email>
</author>
<published>2005-03-29T20:17:47Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=50f39947dec886e964aedf712b237714c8c6e852'/>
<id>urn:sha1:50f39947dec886e964aedf712b237714c8c6e852</id>
<content type='text'>
"%" PRIu64 "x".
</content>
</entry>
<entry>
<title>WARNS=6 cleanup.  This includes:</title>
<updated>2005-01-07T12:06:30Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2005-01-07T12:06:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=1a842e25009c03c07d0787eaf0de57771ac7e43a'/>
<id>urn:sha1:1a842e25009c03c07d0787eaf0de57771ac7e43a</id>
<content type='text'>
	- Apply __unused on unused parameters
	- Use const where suitable
	- Use PRIu64 instead of the deprecated %q
	- Bump WARNS to 6
</content>
</entry>
<entry>
<title>Some BIOSs are using MTRR values that are only documented under NDA</title>
<updated>2002-09-15T15:07:55Z</updated>
<author>
<name>David Malone</name>
<email>dwmalone@FreeBSD.org</email>
</author>
<published>2002-09-15T15:07:55Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=93f39ea88a7456358256c4a72ba4ee43ba266155'/>
<id>urn:sha1:93f39ea88a7456358256c4a72ba4ee43ba266155</id>
<content type='text'>
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 &lt;chris@netmonger.net&gt;,
		David Bushong &lt;david@bushong.net&gt;,
		Santos &lt;casd@myrealbox.com&gt;
MFC after:	1 week
</content>
</entry>
<entry>
<title>Make the MTRR code a bit more defensive - this should help people</title>
<updated>2002-04-14T20:19:13Z</updated>
<author>
<name>David Malone</name>
<email>dwmalone@FreeBSD.org</email>
</author>
<published>2002-04-14T20:19:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b0f4bb511e9932d15818cbd17638b6de2b28b0b6'/>
<id>urn:sha1:b0f4bb511e9932d15818cbd17638b6de2b28b0b6</id>
<content type='text'>
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 &lt;chris@netmonger.net&gt;
MFC after:	2 weeks
</content>
</entry>
<entry>
<title>Nuke unused variables.</title>
<updated>2001-06-24T23:41:57Z</updated>
<author>
<name>Dima Dorfman</name>
<email>dd@FreeBSD.org</email>
</author>
<published>2001-06-24T23:41:57Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7309915e7aa1ef9d23384c680701051238d5e0d0'/>
<id>urn:sha1:7309915e7aa1ef9d23384c680701051238d5e0d0</id>
<content type='text'>
</content>
</entry>
</feed>
