You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[libcpu-riscv]: [surpport SMP]: Fix the overflow issue of the spinlock's owner field
The owner field is of type unsigned short. When 0xffff is incremented by 1,
it will wrap around to 0 and carry over, causing errors in the ticket field.
Solution: When the owner field is 0xffff, simply set it to 0 manually.
Signed-off-by: Mengchen Teng <teng_mengchen@163.com>
0 commit comments