arch_phys_wc_add (9) - Linux Man Pages
arch_phys_wc_add: add a WC MTRR and handle errors if PAT is unavailable
arch_phys_wc_add - add a WC MTRR and handle errors if PAT is unavailable
int arch_phys_wc_add(unsigned long
base, unsigned long size);
- Physical base address
- Size of region
If PAT is available, this does nothing. If PAT is unavailable, it attempts to add a WC MTRR covering size bytes starting at base and logs an error if this fails.
The called should provide a power of two size on an equivalent power of two boundary.