From c9eb843c35542127b11941e2b8660828a0e5f1d7 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Mon, 9 Jan 2006 03:11:31 +0000 Subject: [PATCH] Added comment about the use of some special purpose registers. Haven't found a better place yet. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15880 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/private/kernel/arch/ppc/arch_cpu.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/headers/private/kernel/arch/ppc/arch_cpu.h b/headers/private/kernel/arch/ppc/arch_cpu.h index bce4c06af1..17865443ed 100644 --- a/headers/private/kernel/arch/ppc/arch_cpu.h +++ b/headers/private/kernel/arch/ppc/arch_cpu.h @@ -159,4 +159,15 @@ enum ppc_processor_version { MPC8245 = 0x8081, }; + +/* + Use of (some) special purpose registers. + + SPRG0: per CPU physical address pointer to an ppc_cpu_exception_context + structure + SPRG1: scratch + SPRG2: current struct thread* + SPRG3: TLS base pointer (only for userland threads) +*/ + #endif /* _KERNEL_ARCH_PPC_CPU_H */