<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/sys/libkern/mcount.c, branch stable/10</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=stable%2F10</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=stable%2F10'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2007-06-13T06:17:48Z</updated>
<entry>
<title>Unbreak high resolution profiling a little: use dummy asms to prevent</title>
<updated>2007-06-13T06:17:48Z</updated>
<author>
<name>Bruce Evans</name>
<email>bde@FreeBSD.org</email>
</author>
<published>2007-06-13T06:17:48Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=7df7fc34a30c4dbde5d2e35e6bee7aff30bb88e3'/>
<id>urn:sha1:7df7fc34a30c4dbde5d2e35e6bee7aff30bb88e3</id>
<content type='text'>
timing loops being optimized away.

Once apon a time, gcc promised not to optimize away timing loops, but
gcc started optimizing away the call to a null function in the timing
loop here some time between gcc-3.3.3 and gcc-3.4.6, and it started
optimizing away the timing loop itself some time between gcc-3.4.6
and gcc-4.2.
</content>
</entry>
<entry>
<title>Move the kernel-specific logic to adjust frompc from MI to MD. For</title>
<updated>2004-08-27T19:42:35Z</updated>
<author>
<name>Marcel Moolenaar</name>
<email>marcel@FreeBSD.org</email>
</author>
<published>2004-08-27T19:42:35Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=0f2fe153bcaf941f47617e159a24f2341b7fa1e8'/>
<id>urn:sha1:0f2fe153bcaf941f47617e159a24f2341b7fa1e8</id>
<content type='text'>
these two reasons:
1. On ia64 a function pointer does not hold the address of the first
   instruction of a functions implementation. It holds the address
   of a function descriptor. Hence the user(), btrap(), eintr() and
   bintr() prototypes are wrong for getting the actual code address.
2. The logic forces interrupt, trap and exception entry points to
   be layed-out contiguously. This can not be achieved on ia64 and is
   generally just bad programming.

The MCOUNT_FROMPC_USER macro is used to set the frompc argument to
some kernel address which represents any frompc that falls outside
the kernel text range. The macro can expand to ~0U to bail out in
that case.
The MCOUNT_FROMPC_INTR macro is used to set the frompc argument to
some kernel address to represent a call to a trap or interrupt
handler. This to avoid that the trap or interrupt handler appear to
be called from everywhere in the call graph. The macro can expand
to ~0U to prevent adjusting frompc. Note that the argument is selfpc,
not frompc.

This commit defines the macros on all architectures equivalently to
the original code in sys/libkern/mcount.c. People can take it from
here...

Compile-tested on: alpha, amd64, i386, ia64 and sparc64
Boot-tested on: i386
</content>
</entry>
<entry>
<title>Remove advertising clause from University of California Regent's</title>
<updated>2004-04-07T20:46:16Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2004-04-07T20:46:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=f36cfd49adb62472fd7009ecd4f0927c126ff785'/>
<id>urn:sha1:f36cfd49adb62472fd7009ecd4f0927c126ff785</id>
<content type='text'>
license, per letter dated July 22, 1999 and email from Peter Wemm,
Alan Cox and Robert Watson.

Approved by: core, peter, alc, rwatson
</content>
</entry>
<entry>
<title>Use __FBSDID().</title>
<updated>2003-06-11T05:37:42Z</updated>
<author>
<name>David E. O'Brien</name>
<email>obrien@FreeBSD.org</email>
</author>
<published>2003-06-11T05:37:42Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=ab0de15baf7234734b1b64c3145cd36f867c98ea'/>
<id>urn:sha1:ab0de15baf7234734b1b64c3145cd36f867c98ea</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove __P.</title>
<updated>2002-03-20T02:15:46Z</updated>
<author>
<name>Alfred Perlstein</name>
<email>alfred@FreeBSD.org</email>
</author>
<published>2002-03-20T02:15:46Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=8febc6ba174e3f73f16b428e4e2cef352bfaab35'/>
<id>urn:sha1:8febc6ba174e3f73f16b428e4e2cef352bfaab35</id>
<content type='text'>
</content>
</entry>
<entry>
<title>We do not have UPAGES following the tail end of the user VM space anymore.</title>
<updated>2001-08-08T04:02:22Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>2001-08-08T04:02:22Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=44c76a36f8e091bc1d4130c5bd8550454db6b590'/>
<id>urn:sha1:44c76a36f8e091bc1d4130c5bd8550454db6b590</id>
<content type='text'>
</content>
</entry>
<entry>
<title>RIP &lt;machine/lock.h&gt;.</title>
<updated>2001-02-11T10:44:09Z</updated>
<author>
<name>Mark Murray</name>
<email>markm@FreeBSD.org</email>
</author>
<published>2001-02-11T10:44:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=d888fc4e737af84dd01cea8a7e529e101b1e06d5'/>
<id>urn:sha1:d888fc4e737af84dd01cea8a7e529e101b1e06d5</id>
<content type='text'>
Some things needed bits of &lt;i386/include/lock.h&gt; - cy.c now has its
own (only) copy of the COM_(UN)LOCK() macros, and IMASK_(UN)LOCK()
has been moved to &lt;i386/include/apic.h&gt; (AKA &lt;machine/apic.h&gt;).
Reviewed by:	jhb
</content>
</entry>
<entry>
<title>Fix compilation of profiled kernels by including &lt;machine/lock.h&gt;</title>
<updated>2000-10-14T08:34:27Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2000-10-14T08:34:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=990e680b900973ec80a6a49a60e5b137786df5b8'/>
<id>urn:sha1:990e680b900973ec80a6a49a60e5b137786df5b8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Change #ifdef KERNEL to #ifdef _KERNEL in the public headers.  "KERNEL"</title>
<updated>1999-12-29T05:07:58Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1999-12-29T05:07:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=c447342094276b4d604449bb776063c7b88c4992'/>
<id>urn:sha1:c447342094276b4d604449bb776063c7b88c4992</id>
<content type='text'>
is an application space macro and the applications are supposed to be free
to use it as they please (but cannot).  This is consistant with the other
BSD's who made this change quite some time ago.  More commits to come.
</content>
</entry>
<entry>
<title>$Id$ -&gt; $FreeBSD$</title>
<updated>1999-08-28T01:08:13Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>1999-08-28T01:08:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=c3aac50f284c6cca5b4f2eb46aaa13812cb8b630'/>
<id>urn:sha1:c3aac50f284c6cca5b4f2eb46aaa13812cb8b630</id>
<content type='text'>
</content>
</entry>
</feed>
