diff --git a/sys/ia64/ia64/trap.c b/sys/ia64/ia64/trap.c index af2bea7f655c..3391dff89a45 100644 --- a/sys/ia64/ia64/trap.c +++ b/sys/ia64/ia64/trap.c @@ -589,10 +589,10 @@ trap(int vector, struct trapframe *framep) rv = 0; va = trunc_page(framep->tf_special.ifa); - if (va >= VM_MIN_KERNEL_ADDRESS) { + if (va >= VM_MAX_ADDRESS) { /* * Don't allow user-mode faults for kernel virtual - * addresses + * addresses, including the gateway page. */ if (user) goto no_fault_in;