HomeFreeBSD

amd64: relax constraints in curthread and curpcb

Description

amd64: relax constraints in curthread and curpcb

This makes the compiler less likely to reload the content from %gs.

The 'P' modifier drops all synteax prefixes and 'n' constraint treats
input as a known at compilation time immediate integer.

Example reloading victim was spinlock_enter.

Stolen from: OpenBSD

Reported by: jtl
Reviewed by: kib
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D17615

Details

Provenance
mjgAuthored on
Reviewer
kib
Differential Revision
D17615: amd64: relax constraints in curthead and curpcb
Parents
rS339448: vidcontrol(1): Fix a typo in the description of -f
Branches
Unknown
Tags
Unknown