freebsd-skq/sys/powerpc/aim
John Baldwin 0bbc882680 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
..
clock.c - Correct the type of the argument to delay() so as to not conflict with 2001-10-15 12:23:10 +00:00
locore.S Overhaul the per-CPU support a bit: 2001-12-11 23:33:44 +00:00
machdep.c Overhaul the per-CPU support a bit: 2001-12-11 23:33:44 +00:00
mmu_oea.c Fix includes based on recent changes to lock.h, mutex.h and ktr.h. 2001-10-19 22:45:46 +00:00
ofw_machdep.c Bring in NetBSD code used in the PowerPC port. 2001-06-10 02:39:37 +00:00
ofwmagic.S Bring in NetBSD code used in the PowerPC port. 2001-06-10 02:39:37 +00:00
swtch.S Overhaul the per-CPU support a bit: 2001-12-11 23:33:44 +00:00
trap.c Clean up the trap handling code and make it consistent with the other platforms. 2001-11-05 00:49:03 +00:00
vm_machdep.c Fix includes based on recent changes to lock.h, mutex.h and ktr.h. 2001-10-19 22:45:46 +00:00