freebsd-skq/sys/sparc64/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
asi.h Header file updates needed for the cache code: add/correct some ASI 2001-11-09 19:37:52 +00:00
asm.h Add kernel headers needed to build libc. Some are bogus and/or just enough 2001-11-18 17:56:46 +00:00
asmacros.h Overhaul the per-CPU support a bit: 2001-12-11 23:33:44 +00:00
atomic.h Add atomic_load and store functions without membars, fwiw. 2001-09-03 22:03:25 +00:00
bus_memio.h Add bus_space and busdma support for sparc64. 2001-11-09 20:05:53 +00:00
bus_pio.h Add bus_space and busdma support for sparc64. 2001-11-09 20:05:53 +00:00
bus.h Add bus_space and busdma support for sparc64. 2001-11-09 20:05:53 +00:00
cache.h Add cache handling code for sparc64. 2001-11-09 19:12:06 +00:00
ccr.h Add definitions for bits in condition code register and the load store 2001-08-20 23:34:46 +00:00
clock.h The author isn't a [UC] Regents. Correct the copyright language. 2001-08-09 02:09:34 +00:00
cpu.h Fix get_cyclecount. Wrap in ifdef _KERNEL. 2001-10-20 18:51:10 +00:00
cpufunc.h 1. Implement ascopyto() and ascopyfrom() for copying to an alternate address 2001-11-18 02:47:26 +00:00
db_machdep.h 1. Remove kdbframe. Bad idea. 2001-11-18 03:41:12 +00:00
elf.h Implement elf_reloc. This makes klds work. 2001-10-27 07:09:40 +00:00
endian.h Make the NTOHL, NTOHS, HTONL and HTONS macros (which are nops on 2001-10-12 15:55:45 +00:00
exec.h The author isn't a [UC] Regents. Correct the copyright language. 2001-08-09 02:09:34 +00:00
float.h Add kernel headers needed to build libc. Some are bogus and/or just enough 2001-11-18 17:56:46 +00:00
fp.h 1. Split fp.h into fp.h and fsr.h so that the latter can be included 2001-11-18 04:00:22 +00:00
frame.h 1. Remove kdbframe. Bad idea. 2001-11-18 03:41:12 +00:00
fsr.h 1. Split fp.h into fp.h and fsr.h so that the latter can be included 2001-11-18 04:00:22 +00:00
idprom.h Add a structure defintion for the id prom contents. 2001-11-18 20:50:11 +00:00
ieee.h Add kernel headers needed to build libc. Some are bogus and/or just enough 2001-11-18 17:56:46 +00:00
ieeefp.h Standardize idempotentcy ifdefs. 2001-11-18 20:30:16 +00:00
in_cksum.h Add optimized implementations of in_cksum_skip() and related functions 2001-11-06 20:05:01 +00:00
instr.h Add code to emulate unimplemented (non-fp) instructions and to fixup 2001-11-06 20:13:44 +00:00
intr_machdep.h Change the stray count in struct intr_vector to a vector number that can 2001-10-20 16:03:41 +00:00
iommureg.h Support for the UltraSpac DVMA MMU (IOMMU), ported from NetBSD. 2001-11-09 20:14:41 +00:00
iommuvar.h Support for the UltraSpac DVMA MMU (IOMMU), ported from NetBSD. 2001-11-09 20:14:41 +00:00
ktr.h Remove an unused macro arg. 2001-10-20 15:57:39 +00:00
limits.h o Add new header <sys/stdint.h>. 2001-11-02 18:05:43 +00:00
lsu.h Add definitions for bits in condition code register and the load store 2001-08-20 23:34:46 +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 mtx_savecrit is a pil level, not a pstate value, thus mtx_intr_enable 2001-09-03 22:19:04 +00:00
nexusvar.h Add a nexus device for sparc64, which uses the OpenFirmware to attach UPA 2001-11-09 20:01:25 +00:00
ofw_bus.h Add some OpenFirmware bus support code and definitions. 2001-11-09 20:10:55 +00:00
ofw_machdep.h Add some OpenFirmware bus support code and definitions. 2001-11-09 20:10:55 +00:00
ofw_nexus.h Add some OpenFirmware bus support code and definitions. 2001-11-09 20:10:55 +00:00
ofw_upa.h Add some OpenFirmware bus support code and definitions. 2001-11-09 20:10:55 +00:00
param.h Header file updates needed for the cache code: add/correct some ASI 2001-11-09 19:37:52 +00:00
pcb.h 1. Convert the tstate saved in the pcb to a pstate and test for PSTATE_PEF 2001-11-18 03:28:28 +00:00
pcpu.h Overhaul the per-CPU support a bit: 2001-12-11 23:33:44 +00:00
pmap.h Parameterize the size of the kernel virtual address space on KVA_PAGES. 2001-10-20 16:17:04 +00:00
proc.h Overhaul the per-CPU support a bit: 2001-12-11 23:33:44 +00:00
profile.h Add kernel headers needed to build libc. Some are bogus and/or just enough 2001-11-18 17:56:46 +00:00
pstate.h Add a place holder for PSTATE_SECURE, which detects if user code it 2001-09-30 19:42:34 +00:00
ptrace.h The author isn't a [UC] Regents. Correct the copyright language. 2001-08-09 02:09:34 +00:00
pv.h Implement pv_bit_count which is used by pmap_ts_referenced. 2001-09-03 22:55:12 +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 Add kernel headers needed to build libc. Some are bogus and/or just enough 2001-11-18 17:56:46 +00:00
resource.h
setjmp.h Make jmpbuf the same size as ucontext_t so that it can be passed 2001-11-18 04:04:35 +00:00
sigframe.h Implement signals. 2001-09-03 22:41:40 +00:00
signal.h Don't use types that require other headers. 2001-09-30 18:52:17 +00:00
smp.h The author isn't a [UC] Regents. Correct the copyright language. 2001-08-09 02:09:34 +00:00
stdarg.h
tick.h Add code to program the tick register and to setup its interrupt handler. 2001-08-10 04:49:33 +00:00
tlb.h Remove traces that are loud and not that useful. Remove nested include 2001-10-20 15:58:31 +00:00
trap.h Add support for physical address hardware watchpoints. 2001-10-20 16:04:39 +00:00
tsb.h Parameterize the size of the kernel virtual address space on KVA_PAGES. 2001-10-20 16:17:04 +00:00
tstate.h Add definitions for bits in condition code register and the load store 2001-08-20 23:34:46 +00:00
tte.h Add a macro to get the context from a tte tag, not necesarily a whole 2001-09-30 18:55:05 +00:00
types.h style(9) 2001-12-09 19:12:07 +00:00
ucontext.h 1. Remove bootinfo and just pass loader metadata to the kernel. 2001-11-18 03:02:53 +00:00
varargs.h Standardize idempotentcy ifdefs. 2001-11-18 20:30:16 +00:00
ver.h Move %ver definitions from pstate.h to ver.h. Add definitions for normal 2001-09-03 22:36:11 +00:00
vmparam.h Parameterize the size of the kernel virtual address space on KVA_PAGES. 2001-10-20 16:17:04 +00:00
watch.h Add code for supporting hardware watch points. 2001-08-20 23:50:08 +00:00
wstate.h Add a definition for normal kernel window state. 2001-10-20 17:08:33 +00:00