diff options
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/kernel/cpu.H | 4 | ||||
-rw-r--r-- | src/include/kernel/ppcconsts.S | 47 |
2 files changed, 28 insertions, 23 deletions
diff --git a/src/include/kernel/cpu.H b/src/include/kernel/cpu.H index 21e4dae74..824a65370 100644 --- a/src/include/kernel/cpu.H +++ b/src/include/kernel/cpu.H @@ -53,6 +53,9 @@ struct cpu_t /** Stack to use while in kernel mode. */ void* kernel_stack; + /** Bottom of the kernel stack. */ + void* kernel_stack_bottom; + /** ID of the CPU (PIR value) */ cpuid_t cpu; @@ -93,6 +96,7 @@ struct cpu_t /** Sequence ID of CPU initialization. */ uint64_t cpu_start_seqid; + }; /** @fn getCpuId diff --git a/src/include/kernel/ppcconsts.S b/src/include/kernel/ppcconsts.S index d888e497e..f76d8cf6b 100644 --- a/src/include/kernel/ppcconsts.S +++ b/src/include/kernel/ppcconsts.S @@ -1,25 +1,25 @@ -# IBM_PROLOG_BEGIN_TAG -# This is an automatically generated prolog. -# -# $Source: src/include/kernel/ppcconsts.S $ -# -# IBM CONFIDENTIAL -# -# COPYRIGHT International Business Machines Corp. 2010,2012 -# -# p1 -# -# Object Code Only (OCO) source materials -# Licensed Internal Code Source Materials -# IBM HostBoot Licensed Internal Code -# -# The source code for this program is not published or otherwise -# divested of its trade secrets, irrespective of what has been -# deposited with the U.S. Copyright Office. -# -# Origin: 30 -# -# IBM_PROLOG_END_TAG +# IBM_PROLOG_BEGIN_TAG +# This is an automatically generated prolog. +# +# $Source: src/include/kernel/ppcconsts.S $ +# +# IBM CONFIDENTIAL +# +# COPYRIGHT International Business Machines Corp. 2010,2012 +# +# p1 +# +# Object Code Only (OCO) source materials +# Licensed Internal Code Source Materials +# IBM HostBoot Licensed Internal Code +# +# The source code for this program is not published or otherwise +# divested of its trade secrets, irrespective of what has been +# deposited with the U.S. Copyright Office. +# +# Origin: 30 +# +# IBM_PROLOG_END_TAG #*--------------------------------------------------------------------*# #* Register Constants *# #*--------------------------------------------------------------------*# @@ -246,7 +246,8 @@ .set TASK_FPSCR, TASK_FPR_31+8 .set CPU_KERNEL_STACK, 0 -.set CPU_CPUID, CPU_KERNEL_STACK+8 +.set CPU_KERNEL_STACK_BOTTOM, CPU_KERNEL_STACK+8 +.set CPU_CPUID, CPU_KERNEL_STACK_BOTTOM+8 .set CPU_STATUS, CPU_CPUID+4 .set CPU_STATUS_MASTER, 0 |