freebsd-skq/sys/powerpc/include
jhb 21b6b26912 Overhaul the per-CPU support a bit:
- 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
2001-12-11 23:33:44 +00:00
..
_inttypes.h o Add new header <sys/stdint.h>. 2001-11-02 18:05:43 +00:00
_limits.h o Add new header <sys/stdint.h>. 2001-11-02 18:05:43 +00:00
ansi.h o Stop abusing MD headers with non-MD types. 2001-12-01 03:43:01 +00:00
asm.h Style fix FreeBSD ID, and change continuation style slightly. 2001-06-09 05:01:24 +00:00
atomic.h Fix the atomic_*_32 operations. These were written before I had the ability 2001-06-27 12:17:23 +00:00
bat.h Bring in NetBSD code used in the PowerPC port. 2001-06-10 02:39:37 +00:00
bootinfo.h Add CVS id. 2001-06-15 22:54:33 +00:00
bus.h Bring in NetBSD code used in the PowerPC port. 2001-06-10 02:39:37 +00:00
clock.h This commit (along with one pending in sys/dev/ofw and one in sys/conf) give 2001-06-16 07:14:07 +00:00
cpu.h Clean up the trap handling code and make it consistent with the other platforms. 2001-11-05 00:49:03 +00:00
cpufunc.h Overhaul the per-CPU support a bit: 2001-12-11 23:33:44 +00:00
db_machdep.h Bring in NetBSD code used in the PowerPC port. 2001-06-10 02:39:37 +00:00
elf.h Make MAXTSIZ, DFLDSIZ, MAXDSIZ, DFLSSIZ, MAXSSIZ, SGROWSIZ loader 2001-10-10 23:06:54 +00:00
endian.h o Remove some GCCisms in src/powerpc/include/endian.h. 2001-08-30 00:04:19 +00:00
exec.h PowerPC platform-specific page size setting. 2001-01-01 23:26:39 +00:00
fpu.h Bring in NetBSD code used in the PowerPC port. 2001-06-10 02:39:37 +00:00
frame.h Update PowerPC MD code to compile and do initial bootstrap based on 2001-09-20 00:47:17 +00:00
intr.h Fix the atomic_*_32 operations. These were written before I had the ability 2001-06-27 12:17:23 +00:00
ipl.h This commit (along with one pending in sys/dev/ofw and one in sys/conf) give 2001-06-16 07:14:07 +00:00
limits.h o Add new header <sys/stdint.h>. 2001-11-02 18:05:43 +00:00
md_var.h [partially forced commit due to pilot error in earlier commit attempt] 2001-10-21 22:16:48 +00:00
mutex.h Overhaul the per-CPU support a bit: 2001-12-11 23:33:44 +00:00
openpicreg.h Update to C99, s/__FUNCTION__/__func__/, 2001-12-10 08:09:49 +00:00
param.h Update PowerPC MD code to compile and do initial bootstrap based on 2001-09-20 00:47:17 +00:00
pcb.h Save WIP. Partial rewrite of cpu_switch() and savectx(). This makes it closer 2001-10-15 00:37:45 +00:00
pcpu.h Overhaul the per-CPU support a bit: 2001-12-11 23:33:44 +00:00
pio.h Bring in NetBSD code used in the PowerPC port. 2001-06-10 02:39:37 +00:00
pmap.h Implement pmap_mapdev. 2001-10-14 08:38:16 +00:00
powerpc.h Bring in NetBSD code used in the PowerPC port. 2001-06-10 02:39:37 +00:00
proc.h Overhaul the per-CPU support a bit: 2001-12-11 23:33:44 +00:00
psl.h Bring in NetBSD code used in the PowerPC port. 2001-06-10 02:39:37 +00:00
pte.h Bring in NetBSD code used in the PowerPC port. 2001-06-10 02:39:37 +00:00
ptrace.h Zap 'ptrace(PT_READ_U, ...)' and 'ptrace(PT_WRITE_U, ...)' since they 2001-08-08 05:25:15 +00:00
reg.h [partially forced commit due to pilot error in earlier commit attempt] 2001-10-21 22:16:48 +00:00
reloc.h This commit (along with one pending in sys/dev/ofw and one in sys/conf) give 2001-06-16 07:14:07 +00:00
resource.h
setjmp.h PowerPC platform-specific definitions (modeled on sys/i386/include/setjmp.h) 2001-01-02 00:34:24 +00:00
sigframe.h style(9) the structure definitions. 2001-09-05 01:36:46 +00:00
signal.h Bring in NetBSD code used in the PowerPC port. 2001-06-10 02:39:37 +00:00
smp.h This commit (along with one pending in sys/dev/ofw and one in sys/conf) give 2001-06-16 07:14:07 +00:00
stdarg.h Cleanup of the stdarg code. 2001-10-19 16:15:46 +00:00
trap.h Clean up the trap handling code and make it consistent with the other platforms. 2001-11-05 00:49:03 +00:00
types.h style(9) 2001-12-09 19:12:07 +00:00
ucontext.h Minor style tweaks. 2001-01-02 00:11:41 +00:00
varargs.h Bring in NetBSD code used in the PowerPC port. 2001-06-10 02:39:37 +00:00
vmparam.h Bring in NetBSD code used in the PowerPC port. 2001-06-10 02:39:37 +00:00