]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Reduce an arm64 VFP critical section
authorAndrew Turner <andrew@FreeBSD.org>
Wed, 18 Jan 2023 09:30:36 +0000 (09:30 +0000)
committerAndrew Turner <andrew@FreeBSD.org>
Wed, 18 Jan 2023 09:31:50 +0000 (09:31 +0000)
commita85cf421d1bfec7e753bfee781355785b00d89d4
treee2196e0392d5818c0438e948188851c073e8f7b2
parent61f5462fde6c38c1f4f5c34a05fab506b6869375
Reduce an arm64 VFP critical section

In set_fpcontext we only need a critical section around vfp_discard.
The remainder of the code can run without it.

While here add an assert to check the passed in thread is the
current thread as the code already this.

Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D38000
sys/arm64/arm64/exec_machdep.c