Refactor is_user_r{w,}addr()
authorBarret Rhoden <brho@cs.berkeley.edu>
Tue, 29 Sep 2015 16:22:33 +0000 (12:22 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 8 Oct 2015 14:29:57 +0000 (10:29 -0400)
commit88db9d60a4123c54521ee91886053a3e40743036
tree3d92ea2093b9376743f8f77f3572fc90259ae782
parentc3a43f5dd2d6eebc6e8a184346dd92c2819e63f6
Refactor is_user_r{w,}addr()

Use a helper for the common code.  I used this briefly when I wanted to
catch null pointers for debugging.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/umem.h