Renamed the CHECK_USER_ADDRESS() macro to IS_USER_ADDRESS().

Added a IS_KERNEL_ADDRESS() macro.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6673 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2004-02-22 14:56:50 +00:00
parent 38afe35e66
commit ab7ada645a
+5 -2
View File
@@ -9,8 +9,11 @@
#include <arch_kernel.h>
/* Passed in buffers from user-space shouldn't point into the kernel */
#define CHECK_USER_ADDRESS(x) \
((addr)(x) < KERNEL_BASE || (addr)(x) > KERNEL_TOP)
#define IS_USER_ADDRESS(x) \
((addr_t)(x) < KERNEL_BASE || (addr_t)(x) > KERNEL_TOP)
#define IS_KERNEL_ADDRESS(x) \
((addr_t)(x) >= KERNEL_BASE && (addr_t)(x) <= KERNEL_TOP)
/** Size of the kernel stack */
#define KSTACK_SIZE (PAGE_SIZE * 2)