NetBSD/sys/arch/powerpc/include
garbled 9792283735 SMP support for ofppc. (finally) Much thanks to Matt Thomas for help in
figuring out all the crazy nuances of getting this working, and to
Michael Lorenz for testing/fixing my changes on macppc.  Tested with a
quad-proc 7044-270.
Summary of changes:

Bumped CPU_MAXNUM to 16 on ofppc.
Added md_* routines to ofppc/cpu.c, to sync the timebase, and awaken the CPUs.
Fixed a bug in the test for a 64bit bridge cpu early in locore.S
Added code to set the interrupt priority for all CPUs with an openpic.
Change rtas to probe before cpus, to allow use of the rtas freeze/thaw
timebase code routines.
Fix CPU_INFO_FOREACH macro to iterate through detected cpus, not CPU_MAXNUM.
Change most uses of ci_cpuid to ci_index, to deal with CPUs that do not allow
writing to SPR_PIR.  Don't write SPR_PIR unless the secondary cpu identifies
itself as 0.
Change the hatchstack/interrupt stack allocations to allocate a 8192byte
interrupt stack, and a 4096 byte hatch stack, align them to 16 bytes, and
allocate them no lower than 0x10000.  Allocate them separately to prevent the
hatch stack corrupting the interrupt stack later on.
If the CPU is a 64bit cpu, copy SPR_ASR in cpu_hatch()
Set the idle stack to ci->ci_data.cpu_idlelwp->l_addr->u_pcb.pcb_sp.
Add OF_start_cpu().  Add a routine to ofwoea_initppc to spin up secondary
procs early, and place them into a spinloop waiting for the hatch routines
to be ready.
Modify the ipi routines to deal with openpics that reverse byte order on read
from an ipi register. (such as on the 7044)
Change the rtas setup to allocate the rtas physical base address above
the kernel, to avoid mucking up the hatch/interrupt stacks.
2008-04-08 02:33:03 +00:00
..
ibm4xx Interrupt handling changes, in discussion since February: 2007-12-03 15:33:00 +00:00
oea Add BAT_VA2IDX to abstract out the va to index calculation. 2008-02-23 19:48:43 +00:00
altivec.h Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
ansi.h Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
aout_machdep.h
asm.h Add clrr{ptr,long,reg}i, l{ptr,long,reg}arx, st{ptr,long,reg}cx macros 2008-02-23 19:38:47 +00:00
atomic.h
bat.h Rewrite a big chunk of the pmap and locore code for powerpc to better 2008-02-05 18:10:46 +00:00
bswap.h
bus.h Use uintN_t in comments (since that's what are really using) instead of 2008-02-03 06:28:01 +00:00
cdefs.h
cpu_counter.h Ifdef out all the MPC601 code with PPC_OEA601. Now only arches that have the 2008-02-05 22:31:48 +00:00
cpu.h SMP support for ofppc. (finally) Much thanks to Matt Thomas for help in 2008-04-08 02:33:03 +00:00
darwin_machdep.h
db_machdep.h
elf_machdep.h
endian_machdep.h
endian.h
float.h
fpu.h Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
frame.h
ieee.h
ieeefp.h
instr.h
int_const.h
int_fmtio.h
int_limits.h Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
int_mwgwtypes.h
int_types.h
intr.h Interrupt handling changes, in discussion since February: 2007-12-03 15:33:00 +00:00
ipkdb.h
isa_machdep.h Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
kcore.h
limits.h Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
lock.h Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
mach_machdep.h
macho_machdep.h
Makefile
Makefile.inc
math.h
mcontext.h
mutex.h make kmutex_t and krwlock_t smaller by killing lock id. 2007-11-21 10:19:06 +00:00
netbsd32_machdep.h Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
ofw_bus.h Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
ofw_cons.h Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
openpic.h Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
openpicreg.h Add support to ofppc for the IBM 7044-270 machine. This is a POWER3-II 2008-01-17 23:42:57 +00:00
param.h
pcb.h
pci_machdep.h Add support to ofppc for the IBM 7044-270 machine. This is a POWER3-II 2008-01-17 23:42:57 +00:00
pio.h
pmap.h
pmc.h
prep_bus.h Merge the ppcoea-renovation branch to HEAD. 2007-10-17 19:52:51 +00:00
proc.h s/proc/lwp/ in comment 2007-11-16 07:36:10 +00:00
profile.h
psl.h
pte.h
ptrace.h Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
reg.h
reloc.h
rtas.h SMP support for ofppc. (finally) Much thanks to Matt Thomas for help in 2008-04-08 02:33:03 +00:00
rwlock.h make kmutex_t and krwlock_t smaller by killing lock id. 2007-11-21 10:19:06 +00:00
setjmp.h
signal.h
spr.h Add some 440 definitions 2008-02-23 19:54:54 +00:00
stdarg.h
trap.h
types.h Add register{32,64}_t 2008-01-31 05:30:00 +00:00
userret.h Fix unused variable warning for the non-FPU/altivec case. 2007-11-06 02:52:53 +00:00
varargs.h
wchar_limits.h