2 * __get_user functions.
4 * (C) Copyright 2001 Hirokazu Takata
6 * These functions have a non-standard call interface
7 * to make them more efficient, especially as they
8 * return an error value in addition to the "real"
12 #include <linux/config.h>
17 * Inputs: r0 contains the address
19 * Outputs: r0 is error code (0 or -EFAULT)
20 * r1 contains zero-extended value
22 * These functions should not modify any other registers,
23 * as they get called from within inline assembly.
26 #ifdef CONFIG_ISA_DUAL_ISSUE
32 1: ldub r1, @r0 || ldi r0, #0
38 2: lduh r1, @r0 || ldi r0, #0
44 3: ld r1, @r0 || ldi r0, #0
48 ldi r1, #0 || ldi r0, #-14
51 #else /* not CONFIG_ISA_DUAL_ISSUE */
80 #endif /* not CONFIG_ISA_DUAL_ISSUE */
82 .section __ex_table,"a"