/* On 32-bit we just access the address and let hash_page create a HPTE if necessary, so there is no need to fall back to reading the page tables. Since this is called at interrupt level, do_page_fault() won't treat a DSI as a page fault.  */
static int read_user_stack_32(unsigned int __user *ptr, unsigned int *ret)
/* On 32-bit we just access the address and let hash_page create a HPTE if necessary, so there is no need to fall back to reading the page tables. Since this is called at interrupt level, do_page_fault() won't treat a DSI as a page fault.  */
static int read_user_stack_32(unsigned int __user *ptr, unsigned int *ret)
{
	if ((unsigned long)ptr > TASK_SIZE - sizeof(unsigned int) ||
	    ((unsigned long)ptr & 3))
		return -EFAULT;
	return __get_user_inatomic(*ret, ptr);
}