diff options
author | Stewart Smith <stewart@linux.ibm.com> | 2018-07-19 19:41:44 +1000 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-07-20 10:44:59 +1000 |
commit | 25f7266f736c0e2a0e91e2aa020a9627638c35f4 (patch) | |
tree | c3a76f997406df1db6a9f6be9080a54358617337 | |
parent | c1d43fc84a30828ac93a20275984dcd6c7608b7a (diff) | |
download | skiboot-25f7266f736c0e2a0e91e2aa020a9627638c35f4.zip skiboot-25f7266f736c0e2a0e91e2aa020a9627638c35f4.tar.gz skiboot-25f7266f736c0e2a0e91e2aa020a9627638c35f4.tar.bz2 |
core/cpu.c: assert pir is sane before using
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
-rw-r--r-- | core/cpu.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -1151,6 +1151,7 @@ void init_all_cpus(void) " State=%d\n", pir, server_no, state); /* Setup thread 0 */ + assert(pir <= cpu_max_pir); t = pt = &cpu_stacks[pir].cpu; if (t != boot_cpu) { init_cpu_thread(t, state, pir); |