Commit c4c31c88 authored by He Sheng's avatar He Sheng Committed by guzitao
Browse files

sw64: get blocked thread's frame pointer from thread_struct

Sunway inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I5GF7A



--------------------------------

The thread_struct holds all provided the thread blocked through
a call to schedule(). $15 is the frame pointer in schedule() and
it is saved at thread_struct.s[6]. With frame pointer, it can
return saved PC of a blocked thread which assumes that the saved
return address is the first long in the frame.

Signed-off-by: default avatarHe Sheng <hesheng@wxiat.com>

Signed-off-by: default avatarGu Zitao <guzitao@wxiat.com>
parent ba8c73ce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment