1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00
freebsd/sys/mips
Jason A. Harmening fa4e4d55b3 Clean up a couple of MD warts in vm_fault_populate():
--Eliminate a big ifdef that encompassed all currently-supported
architectures except mips and powerpc32.  This applied to the case
in which we've allocated a superpage but the pager-populated range
is insufficient for a superpage mapping.  For platforms that don't
support superpages the check should be inexpensive as we shouldn't
get a superpage in the first place.  Make the normal-page fallback
logic identical for all platforms and provide a simple implementation
of pmap_ps_enabled() for MIPS and Book-E/AIM32 powerpc.

--Apply the logic for handling pmap_enter() failure if a superpage
mapping can't be supported due to additional protection policy.
Use KERN_PROTECTION_FAILURE instead of KERN_FAILURE for this case,
and note Intel PKU on amd64 as the first example of such protection
policy.

Reviewed by:	kib, markj, bdragon

(cherry picked from commit 8dc8feb53d)
2021-12-27 19:35:55 -05:00
..
atheros Avoid dump_avail[] redefinition. 2020-10-14 22:51:40 +00:00
beri Avoid dump_avail[] redefinition. 2020-10-14 22:51:40 +00:00
broadcom Avoid dump_avail[] redefinition. 2020-10-14 22:51:40 +00:00
cavium Fix a common typo in source code comments 2021-09-07 09:24:05 +02:00
conf hid: Import functions and constants required by new subsystem 2021-01-08 02:18:42 +03:00
include Clean up a couple of MD warts in vm_fault_populate(): 2021-12-27 19:35:55 -05:00
ingenic mips: Fix build by using the correct device-tree include path 2021-01-16 11:34:10 +01:00
malta mips: fix build w/ TICK_USE_MALTA_RTC defined 2020-12-25 19:47:45 +01:00
mediatek mips: Fix build by using the correct device-tree include path 2021-01-16 11:34:10 +01:00
mips busdma: Remove outdated comments about Giant. 2021-12-23 20:05:17 -05:00
nlm crypto: Add a new type of crypto buffer for a single mbuf. 2021-10-21 08:51:26 -07:00