<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src-test2/sys/amd64/include/pcpu.h, branch release/5.2.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F5.2.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src-test2/atom?h=release%2F5.2.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/'/>
<updated>2003-11-20T23:49:28Z</updated>
<entry>
<title>Argh! Followup to previous commit.  I checked in the patch with an</title>
<updated>2003-11-20T23:49:28Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>2003-11-20T23:49:28Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=b4bae2b0c570d1ba167914f96ef6c50cae36aee3'/>
<id>urn:sha1:b4bae2b0c570d1ba167914f96ef6c50cae36aee3</id>
<content type='text'>
unintended local change.  Change Xurthread back to curthread.
</content>
</entry>
<entry>
<title>Provide a streamlined '#define curthread __curthread()' for amd64 to avoid</title>
<updated>2003-11-20T22:54:44Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>2003-11-20T22:54:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=5dd883833c394d53e7dd086076b94ab84d918109'/>
<id>urn:sha1:5dd883833c394d53e7dd086076b94ab84d918109</id>
<content type='text'>
the compiler having to parse and optimize the PCPU_GET(curthread) so often.
__curthread() is an inline optimized version of PCPU_GET(curthread) that
knows that pc_curthread is at offset zero in the pcpu struct.  Add a
CTASSERT() to catch any possible changes to this.  This accounts for
just over a 1% wall clock speedup for total kernel compile/link time,
and 20% compile time speedup on some specific files depending on which
compile options are used.

Approved by:  re (jhb)
</content>
</entry>
<entry>
<title>Initial landing of SMP support for FreeBSD/amd64.</title>
<updated>2003-11-17T08:58:16Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>2003-11-17T08:58:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=0d2a2989048c676030afdcf7ba3aae9713738395'/>
<id>urn:sha1:0d2a2989048c676030afdcf7ba3aae9713738395</id>
<content type='text'>
- This is heavily derived from John Baldwin's apic/pci cleanup on i386.
- I have completely rewritten or drastically cleaned up some other parts.
  (in particular, bootstrap)
- This is still a WIP.  It seems that there are some highly bogus bioses
  on nVidia nForce3-150 boards.  I can't stress how broken these boards
  are.  I have a workaround in mind, but right now the Asus SK8N is broken.
  The Gigabyte K8NPro (nVidia based) is also mind-numbingly hosed.
- Most of my testing has been with SCHED_ULE.  SCHED_4BSD works.
- the apic and acpi components are 'standard'.
- If you have an nVidia nForce3-150 board, you are stuck with 'device
  atpic' in addition, because they somehow managed to forget to connect the
  8254 timer to the apic, even though its in the same silicon!  ARGH!
  This directly violates the ACPI spec.
</content>
</entry>
<entry>
<title>Fixed pedantic warnings for statement-expressions using __extension__</title>
<updated>2003-11-17T04:40:58Z</updated>
<author>
<name>Bruce Evans</name>
<email>bde@FreeBSD.org</email>
</author>
<published>2003-11-17T04:40:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=6a0d1abc5db534a222661215145068ad4cec8919'/>
<id>urn:sha1:6a0d1abc5db534a222661215145068ad4cec8919</id>
<content type='text'>
and by not using a statement-expression for the non-expression
__PCPU_SET().
</content>
</entry>
<entry>
<title>Fixed a pedantic syntax error (a stray semicolon at the end of</title>
<updated>2003-11-17T03:40:41Z</updated>
<author>
<name>Bruce Evans</name>
<email>bde@FreeBSD.org</email>
</author>
<published>2003-11-17T03:40:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=81bbee59969ccf3738dedd776dae822f7fe3ab6d'/>
<id>urn:sha1:81bbee59969ccf3738dedd776dae822f7fe3ab6d</id>
<content type='text'>
PCPU_MD_FIELDS).
</content>
</entry>
<entry>
<title>Add the pc_acpi_id PCPU member.  The new acpi_cpu driver uses this to</title>
<updated>2003-11-15T18:58:29Z</updated>
<author>
<name>Nate Lawson</name>
<email>njl@FreeBSD.org</email>
</author>
<published>2003-11-15T18:58:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=b72e9cf526332752fafad757376295fabcac29ea'/>
<id>urn:sha1:b72e9cf526332752fafad757376295fabcac29ea</id>
<content type='text'>
dereference the softc.
</content>
</entry>
<entry>
<title>Commit MD parts of a loosely functional AMD64 port.  This is based on</title>
<updated>2003-05-01T01:05:25Z</updated>
<author>
<name>Peter Wemm</name>
<email>peter@FreeBSD.org</email>
</author>
<published>2003-05-01T01:05:25Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=afa8862328041298fe0c059d65cea406f92bad4b'/>
<id>urn:sha1:afa8862328041298fe0c059d65cea406f92bad4b</id>
<content type='text'>
a heavily stripped down FreeBSD/i386 (brutally stripped down actually) to
attempt to get a stable base to start from.  There is a lot missing still.
Worth noting:
- The kernel runs at 1GB in order to cheat with the pmap code.  pmap uses
  a variation of the PAE code in order to avoid having to worry about 4
  levels of page tables yet.
- It boots in 64 bit "long mode" with a tiny trampoline embedded in the
  i386 loader.  This simplifies locore.s greatly.
- There are still quite a few fragments of i386-specific code that have
  not been translated yet, and some that I cheated and wrote dumb C
  versions of (bcopy etc).
- It has both int 0x80 for syscalls (but using registers for argument
  passing, as is native on the amd64 ABI), and the 'syscall' instruction
  for syscalls.  int 0x80 preserves all registers, 'syscall' does not.
- I have tried to minimize looking at the NetBSD code, except in a couple
  of places (eg: to find which register they use to replace the trashed
  %rcx register in the syscall instruction).  As a result, there is not a
  lot of similarity.  I did look at NetBSD a few times while debugging to
  get some ideas about what I might have done wrong in my first attempt.
</content>
</entry>
<entry>
<title>A more lint friendly #ifdef lint section.</title>
<updated>2002-10-01T14:01:58Z</updated>
<author>
<name>Poul-Henning Kamp</name>
<email>phk@FreeBSD.org</email>
</author>
<published>2002-10-01T14:01:58Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=7e9bac35e25717b55ca91c2bd0c5b0e74d7b7b92'/>
<id>urn:sha1:7e9bac35e25717b55ca91c2bd0c5b0e74d7b7b92</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Wrap GNU specific code in ifdefs, and help lint out by providing</title>
<updated>2002-07-15T13:29:40Z</updated>
<author>
<name>Mark Murray</name>
<email>markm@FreeBSD.org</email>
</author>
<published>2002-07-15T13:29:40Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=80a0ead4fe6dc428572588d6dde51dee21cd5d6f'/>
<id>urn:sha1:80a0ead4fe6dc428572588d6dde51dee21cd5d6f</id>
<content type='text'>
some alternative definitions.
</content>
</entry>
<entry>
<title>Compromise for critical*()/cpu_critical*() recommit.  Cleanup the interrupt</title>
<updated>2002-03-27T05:39:23Z</updated>
<author>
<name>Matthew Dillon</name>
<email>dillon@FreeBSD.org</email>
</author>
<published>2002-03-27T05:39:23Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src-test2/commit/?id=d74ac6819b2cc8e5c18a099a97ffc16616b4e94d'/>
<id>urn:sha1:d74ac6819b2cc8e5c18a099a97ffc16616b4e94d</id>
<content type='text'>
disablement assumptions in kern_fork.c by adding another API call,
cpu_critical_fork_exit().  Cleanup the td_savecrit field by moving it
from MI to MD.  Temporarily move cpu_critical*() from &lt;arch&gt;/include/cpufunc.h
to &lt;arch&gt;/&lt;arch&gt;/critical.c (stage-2 will clean this up).

Implement interrupt deferral for i386 that allows interrupts to remain
enabled inside critical sections.  This also fixes an IPI interlock bug,
and requires uses of icu_lock to be enclosed in a true interrupt disablement.

This is the stage-1 commit.  Stage-2 will occur after stage-1 has stabilized,
and will move cpu_critical*() into its own header file(s) + other things.
This commit may break non-i386 architectures in trivial ways.  This should
be temporary.

Reviewed by:	core
Approved by:	core
</content>
</entry>
</feed>
