mirror of
https://github.com/opnsense/src.git
synced 2026-06-20 14:09:14 -04:00
[Why] This function takes an offset and a length as argument, not a physical address and a number of pages. This misuse caused the `set_memory_*()` and `arch_io_reserve_memtype_wc()` functions to return EINVAL. Another problem was the fact that they returned errors as a positive integer, whereas Linux uses negative integers. [How] Physical addresses and number of pages are converted to offset+length in the `set_memory_*()` functions. `arch_io_reserve_memtype_wc()` now calls `pmap_change_attr()` directly instead of using `set_memory_wc()`. Reviewed by: manu Approved by: manu Differential Revision: https://reviews.freebsd.org/D42053 |
||
|---|---|---|
| .. | ||
| fpu | ||
| atomic-long.h | ||
| atomic.h | ||
| atomic64.h | ||
| barrier.h | ||
| byteorder.h | ||
| cpufeature.h | ||
| fcntl.h | ||
| intel-family.h | ||
| io.h | ||
| iosf_mbi.h | ||
| memtype.h | ||
| msr.h | ||
| neon.h | ||
| pgtable.h | ||
| processor.h | ||
| set_memory.h | ||
| smp.h | ||
| types.h | ||
| uaccess.h | ||
| unaligned.h | ||