Files
mckernel/test/issues/1354/1354_check.patch
Ken Sato de0e07f29e schedule: Skip save_fp_regs when the process ends
Change-Id: I32ff71a0dfcd7196d2c9e6cc1d68210933470bbb
Fujitsu: POSTK_DEBUG_ARCH_DEP_106
Refs: #1354
2019-09-25 06:43:08 +00:00

31 lines
855 B
Diff

diff --git arch/arm64/kernel/cpu.c arch/arm64/kernel/cpu.c
index d749024..759fc4e 100644
--- arch/arm64/kernel/cpu.c
+++ arch/arm64/kernel/cpu.c
@@ -1504,6 +1504,10 @@ out:
void
save_fp_regs(struct thread *thread)
{
+ /* THIS IS PATCH FOR TEST */
+ if (thread->status == PS_EXITED) {
+ kprintf("%s: thread is going to exit. (NOT_FIXED)\n", __func__);
+ }
if (thread == &cpu_local_var(idle)) {
return;
}
diff --git arch/x86_64/kernel/cpu.c arch/x86_64/kernel/cpu.c
index 2ba5bd3..7512daa 100644
--- arch/x86_64/kernel/cpu.c
+++ arch/x86_64/kernel/cpu.c
@@ -1725,6 +1725,10 @@ out:
void
save_fp_regs(struct thread *thread)
{
+ /* THIS IS PATCH FOR TEST */
+ if (thread->status == PS_EXITED) {
+ kprintf("%s: thread is going to exit. (NOT_FIXED)\n", __func__);
+ }
if (check_and_allocate_fp_regs(thread) != 0) {
// alloc error
return;