<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/sys/alpha/include/proc.h, branch release/5.4.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F5.4.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F5.4.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2005-01-30T01:00:13Z</updated>
<entry>
<title>MFC: /*- and my license changes for sys/[a-d]*</title>
<updated>2005-01-30T01:00:13Z</updated>
<author>
<name>Warner Losh</name>
<email>imp@FreeBSD.org</email>
</author>
<published>2005-01-30T01:00:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=5b26fb70440bc9195e03e23a989271f9c8ad1cb4'/>
<id>urn:sha1:5b26fb70440bc9195e03e23a989271f9c8ad1cb4</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Protect the per-process UAC field with the proc lock where it isn't already</title>
<updated>2003-04-17T21:57:16Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2003-04-17T21:57:16Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=00e93b4d5315403a6eb8c64c0ba703d3b2d3426a'/>
<id>urn:sha1:00e93b4d5315403a6eb8c64c0ba703d3b2d3426a</id>
<content type='text'>
protected.
</content>
</entry>
<entry>
<title>- Split the unaligned access check flags out of md_flags in struct mdthread</title>
<updated>2002-07-31T19:37:03Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2002-07-31T19:37:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=7e71ff5ea7946c2de55619f3fabfe25978012353'/>
<id>urn:sha1:7e71ff5ea7946c2de55619f3fabfe25978012353</id>
<content type='text'>
  and move them into md_uac in struct mdproc.  mdproc is protected by the
  proc lock.  md_flags now is only ever modified by the current thread, so
  it doesn't need a lock.
- Rename the constants for all the per-thread MD flags to use MDTD_*
  instead of MDP_*.
</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/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>
<entry>
<title>Overhaul the per-CPU support a bit:</title>
<updated>2001-12-11T23:33:44Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2001-12-11T23:33:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0bbc882680ceece07eb134ddeb7fceffb59ea018'/>
<id>urn:sha1:0bbc882680ceece07eb134ddeb7fceffb59ea018</id>
<content type='text'>
- The MI portions of struct globaldata have been consolidated into a MI
  struct pcpu.  The MD per-CPU data are specified via a macro defined in
  machine/pcpu.h.  A macro was chosen over a struct mdpcpu so that the
  interface would be cleaner (PCPU_GET(my_md_field) vs.
  PCPU_GET(md.md_my_md_field)).
- All references to globaldata are changed to pcpu instead.  In a UP kernel,
  this data was stored as global variables which is where the original name
  came from.  In an SMP world this data is per-CPU and ideally private to each
  CPU outside of the context of debuggers.  This also included combining
  machine/globaldata.h and machine/globals.h into machine/pcpu.h.
- The pointer to the thread using the FPU on i386 was renamed from
  npxthread to fpcurthread to be identical with other architectures.
- Make the show pcpu ddb command MI with a MD callout to display MD
  fields.
- The globaldata_register() function was renamed to pcpu_init() and now
  init's MI fields of a struct pcpu in addition to registering it with
  the internal array and list.
- A pcpu_destroy() function was added to remove a struct pcpu from the
  internal array and list.

Tested on:	alpha, i386
Reviewed by:	peter, jake
</content>
</entry>
<entry>
<title>KSE Milestone 2</title>
<updated>2001-09-12T08:38:13Z</updated>
<author>
<name>Julian Elischer</name>
<email>julian@FreeBSD.org</email>
</author>
<published>2001-09-12T08:38:13Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b40ce4165d5eb3a5de1515245055350ae3dbab8e'/>
<id>urn:sha1:b40ce4165d5eb3a5de1515245055350ae3dbab8e</id>
<content type='text'>
Note ALL MODULES MUST BE RECOMPILED
make the kernel aware that there are smaller units of scheduling than the
process. (but only allow one thread per process at this time).
This is functionally equivalent to teh previousl -current except
that there is a thread associated with each process.

Sorry john! (your next MFC will be a doosie!)

Reviewed by: peter@freebsd.org, dillon@freebsd.org

X-MFC after:    ha ha ha ha
</content>
</entry>
<entry>
<title>Add a new MI pointer to the process' trapframe p_frame instead of using</title>
<updated>2001-06-29T11:10:41Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2001-06-29T11:10:41Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6be523bca7a9ffdeef7141602017ab1b2f833a52'/>
<id>urn:sha1:6be523bca7a9ffdeef7141602017ab1b2f833a52</id>
<content type='text'>
various differently named pointers buried under p_md.

Reviewed by:	jake (in principle)
</content>
</entry>
<entry>
<title>Add a new field 'md_kernnest' to the alpha machine dependent process</title>
<updated>2001-04-24T21:06:53Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2001-04-24T21:06:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=9e438eb4f52d6a5c36c097f5dfd08a9cf10df772'/>
<id>urn:sha1:9e438eb4f52d6a5c36c097f5dfd08a9cf10df772</id>
<content type='text'>
structure.  This field keeps track of how many levels deep we are nested
into the kernel.  The nesting level is bumped at the start of a trap,
interrupt, syscall, or exception and is decremented on return.  This is
used to detect the case when the kernel is returning back to a kernel
context in exception_return().  If we are returning to the kernel we need
to update the globaldata pointer register saved in the stack frame in case
we have switched CPU's between taking the initial interrupt that saved the
frame and returning.  If we don't do this fixup it is possible for a CPU to
use the wrong per-cpu data.  On UP systems this is not a problem, so the
code is conditional on SMP.

A count was used instead of simply checking the process status register in
the frame during exception_return() since there are critical sections at
the very start and end of a trap, exception, or interrupt from userland in
which we could trash the t7 register being used in userland.  The counter
is incremented after adn before these critical sections respectively so
that we will not overwrite the saved t7 register if we are interrupted
during one of these critical sections.
</content>
</entry>
<entry>
<title>Major update to the way synchronization is done in the kernel.  Highlights</title>
<updated>2000-09-07T01:33:02Z</updated>
<author>
<name>Jason Evans</name>
<email>jasone@FreeBSD.org</email>
</author>
<published>2000-09-07T01:33:02Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=0384fff8c5b098545c3db311b0e0aa1ec4c9ae7e'/>
<id>urn:sha1:0384fff8c5b098545c3db311b0e0aa1ec4c9ae7e</id>
<content type='text'>
include:

* Mutual exclusion is used instead of spl*().  See mutex(9).  (Note: The
  alpha port is still in transition and currently uses both.)

* Per-CPU idle processes.

* Interrupts are run in their own separate kernel threads and can be
  preempted (i386 only).

Partially contributed by:	BSDi (BSD/OS)
Submissions by (at least):	cp, dfr, dillon, grog, jake, jhb, sheldonh
</content>
</entry>
<entry>
<title>Fix typo in comment.</title>
<updated>2000-06-25T09:30:17Z</updated>
<author>
<name>Doug Rabson</name>
<email>dfr@FreeBSD.org</email>
</author>
<published>2000-06-25T09:30:17Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=2ed44774d65016ab0206ca6da5358ed70167ac32'/>
<id>urn:sha1:2ed44774d65016ab0206ca6da5358ed70167ac32</id>
<content type='text'>
</content>
</entry>
</feed>
