This commit allows other subsystem to explicitly unmask
previously configured interrupt on the current CPU. Before it was not possible. For example, ARM timer should unmask per-processor interrupts on each secondary CPU the system boots. It cannot call bus_setup_intr then, because was already invoked on primary CPU, thus the new method was added.
Mostly will help to cleanup GIC init_secondary routines and move TMR PPI unmasking to timer drivers rather than using hardcoded values in the interrupt controller (future commits).
The armv8 function arm_unmask_irq is undefined yet and is waiting for https://reviews.freebsd.org/D3029 to process.
This is really a comment about the existing first sentence. I find "... inserts ... into the physical map ..." to be utterly meaningless. How does the first sentence not include the word "mapping".
I suggest changing this sentence to "... function creates a mapping in the physical map ... from the virtual address ... to the physical page ... with the protection ..."
Maybe add the following sentence: "Any previous mapping at the virtual address ... is destroyed."