#include <linux/errno.h>
Go to the source code of this file.
|
#define | put_dbe(x, ptr) __put_dbe((x), (ptr), sizeof(*(ptr))) |
|
#define | get_dbe(x, ptr) __get_dbe((x), (ptr), sizeof(*(ptr))) |
|
#define | __mp(x) (*(struct __large_pstruct *)(x)) |
|
#define | __get_dbe(x, ptr, size) |
|
#define | __get_dbe_asm(insn) |
|
#define | __put_dbe(x, ptr, size) |
|
#define | __put_dbe_asm(insn) |
|
Value:({ \
long __gu_err; \
__typeof__(*(
ptr)) __gu_val; \
unsigned long __gu_addr; \
__gu_addr = (
unsigned long) (
ptr); \
} \
x = (__typeof__(*(
ptr))) __gu_val; \
__gu_err; \
})
Definition at line 34 of file paccess.h.
#define __get_dbe_asm |
( |
|
insn | ) |
|
Value:{ \
__asm__ __volatile__( \
"1:\t" insn "\t%1,%2\n\t" \
"move\t%0,$0\n" \
"2:\n\t" \
".section\t.fixup,\"ax\"\n" \
"3:\tli\t%0,%3\n\t" \
"move\t%1,$0\n\t" \
"j\t2b\n\t" \
".previous\n\t" \
".section\t__dbe_table,\"a\"\n\t" \
__PA_ADDR "\t1b, 3b\n\t" \
".previous" \
:"=r" (__gu_err), "=r" (__gu_val) \
}
Definition at line 53 of file paccess.h.
Value:({ \
long __pu_err; \
__typeof__(*(
ptr)) __pu_val; \
long __pu_addr; \
__pu_addr = (
long) (
ptr); \
} \
__pu_err; \
})
Definition at line 73 of file paccess.h.
#define __put_dbe_asm |
( |
|
insn | ) |
|
Value:{ \
__asm__ __volatile__( \
"1:\t" insn "\t%1,%2\n\t" \
"move\t%0,$0\n" \
"2:\n\t" \
".section\t.fixup,\"ax\"\n" \
"3:\tli\t%0,%3\n\t" \
"j\t2b\n\t" \
".previous\n\t" \
".section\t__dbe_table,\"a\"\n\t" \
__PA_ADDR "\t1b, 3b\n\t" \
".previous" \
: "=r" (__pu_err) \
:
"r" (__pu_val),
"o" (
__mp(__pu_addr)),
"i" (-
EFAULT)); \
}
Definition at line 91 of file paccess.h.
unsigned long search_dbe_table |
( |
unsigned long |
addr | ) |
|