sw64: check processor state by user_mode(regs)
Sunway inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I56OLG -------------------------------- The `regs->ps & 8` and `regs->ps & ~IPL_MAX` don't have a clear meaning. We replace them with user_mode(regs) and !user_mode(regs), and reserve regs->ps[63:4] for future extension. Signed-off-by: NWu Liliu <wuliliu@wxiat.com> Signed-off-by: NGu Zitao <guzitao@wxiat.com>
Showing
想要评论请 注册 或 登录