diff options
author | Linus Torvalds <[email protected]> | 2022-09-28 09:30:31 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2022-09-29 18:01:40 +0200 |
commit | 334b2cea811944df99ae2172bcc0effcdfdbe862 (patch) | |
tree | 9fba5dd5bc8bf91a127092d79de51da9e7dd459a /drivers/fpga/fpga-mgr.c | |
parent | a3d3163fbe690cfec354fc20808adf0629adf8da (diff) |
x86/mm: Add prot_sethuge() helper to abstract out _PAGE_PSE handling
We still have some historic cases of direct fiddling of page
attributes with (dangerous & fragile) type casting and address shifting.
Add the prot_sethuge() helper instead that gets the types right and
doesn't have to transform addresses.
( Also add a debug check to make sure this doesn't get applied
to _PAGE_BIT_PAT/_PAGE_BIT_PAT_LARGE pages. )
Signed-off-by: Linus Torvalds <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Reviewed-by: Dave Hansen <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions