Go to the source code of this file.
Defines | |
| #define | get_fs_byte(addr) get_user_byte((char *)(addr)) |
| #define | get_fs_word(addr) get_user_word((short *)(addr)) |
| #define | get_fs_long(addr) get_user_long((int *)(addr)) |
| #define | put_fs_byte(x, addr) put_user_byte((x),(char *)(addr)) |
| #define | put_fs_word(x, addr) put_user_word((x),(short *)(addr)) |
| #define | put_fs_long(x, addr) put_user_long((x),(int *)(addr)) |
| #define | COMMON(x) |
| #define | COMMON(x) |
| #define | memcpy_fromfs(to, from, n) |
| #define | memcpy_tofs(to, from, n) |
Functions | |
| static unsigned char | get_user_byte (const char *addr) |
| static unsigned short | get_user_word (const short *addr) |
| static unsigned long | get_user_long (const int *addr) |
| static void | put_user_byte (char val, char *addr) |
| static void | put_user_word (short val, short *addr) |
| static void | put_user_long (unsigned long val, int *addr) |
| static void | __generic_memcpy_tofs (void *to, const void *from, unsigned long n) |
| static void | __constant_memcpy_tofs (void *to, const void *from, unsigned long n) |
| static void | __generic_memcpy_fromfs (void *to, const void *from, unsigned long n) |
| static void | __constant_memcpy_fromfs (void *to, const void *from, unsigned long n) |
| static unsigned long | get_fs (void) |
| static unsigned long | get_ds (void) |
| static void | set_fs (unsigned long val) |
| #define COMMON | ( | x | ) |
Value:
__asm__("cld\n\t" \ "rep ; fs ; movsl\n\t" \ x \
| #define COMMON | ( | x | ) |
Value:
__asm__("cld\n\t" \ "push %%es\n\t" \ "push %%fs\n\t" \ "pop %%es\n\t" \ "rep ; movsl\n\t" \ x \ "pop %%es" \
Referenced by __constant_memcpy_fromfs(), and __constant_memcpy_tofs().
| #define get_fs_word | ( | addr | ) | get_user_word((short *)(addr)) |
| #define memcpy_fromfs | ( | to, | |||
| from, | |||||
| n | ) |
Value:
(__builtin_constant_p(n) ? \ __constant_memcpy_fromfs((to),(from),(n)) : \ __generic_memcpy_fromfs((to),(from),(n)))
| #define memcpy_tofs | ( | to, | |||
| from, | |||||
| n | ) |
Value:
(__builtin_constant_p(n) ? \ __constant_memcpy_tofs((to),(from),(n)) : \ __generic_memcpy_tofs((to),(from),(n)))
| #define put_fs_byte | ( | x, | |||
| addr | ) | put_user_byte((x),(char *)(addr)) |
| #define put_fs_long | ( | x, | |||
| addr | ) | put_user_long((x),(int *)(addr)) |
| #define put_fs_word | ( | x, | |||
| addr | ) | put_user_word((x),(short *)(addr)) |
| static void __constant_memcpy_fromfs | ( | void * | to, | |
| const void * | from, | |||
| unsigned long | n | |||
| ) | [inline, static] |
Definition at line 147 of file segment.h.
References COMMON, get_user_byte(), get_user_long(), and get_user_word().
| static void __constant_memcpy_tofs | ( | void * | to, | |
| const void * | from, | |||
| unsigned long | n | |||
| ) | [inline, static] |
Definition at line 81 of file segment.h.
References COMMON, put_user_byte(), put_user_long(), and put_user_word().
| static void __generic_memcpy_fromfs | ( | void * | to, | |
| const void * | from, | |||
| unsigned long | n | |||
| ) | [inline, static] |
| static void __generic_memcpy_tofs | ( | void * | to, | |
| const void * | from, | |||
| unsigned long | n | |||
| ) | [inline, static] |
| static unsigned long get_fs | ( | void | ) | [inline, static] |
| static unsigned char get_user_byte | ( | const char * | addr | ) | [inline, static] |
| static unsigned long get_user_long | ( | const int * | addr | ) | [inline, static] |
| static unsigned short get_user_word | ( | const short * | addr | ) | [inline, static] |
| static void put_user_byte | ( | char | val, | |
| char * | addr | |||
| ) | [inline, static] |
| static void put_user_long | ( | unsigned long | val, | |
| int * | addr | |||
| ) | [inline, static] |
| static void put_user_word | ( | short | val, | |
| short * | addr | |||
| ) | [inline, static] |
1.4.6-5