Skip to content
Commit 937f6593 authored by Weihao Li's avatar Weihao Li Committed by Huacai Chen
Browse files

LoongArch: Adjust {copy, clear}_user exception handler behavior



The {copy, clear}_user function should returns number of bytes that
could not be {copied, cleared}. So, try to {copy, clear} byte by byte
when ld.{d,w,h} and st.{d,w,h} trapped into an exception.

Reviewed-by: default avatarWANG Rui <wangrui@loongson.cn>
Signed-off-by: default avatarWeihao Li <liweihao@loongson.cn>
Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
parent 0921af6c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment