This is part of a series of commits where i completely rewrite kmalloc() because it needs to be able to return physically contiguous memory for DMA operations. Yes, i know the build isn't working right now.
This is just a minor overhaul of several utility functions, in part because it kept bothering me and in part because i was bored.