blob: 433e58822f468d7d3c7a9117dc1f07dec40236d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#ifndef _HACK_ASM_SEGMENT_H_
#define _HACK_ASM_SEGMENT_H_
#include <sys/types.h>
#define get_fs_long(addr) get_user_long((int *)(addr))
unsigned long get_user_long (const int *addr);
#define get_fs_byte(addr) get_user_byte((char *)(addr))
char get_user_byte (const char *addr);
#define put_fs_long(x,addr) put_user_long((x),(int *)(addr))
void put_user_long (unsigned long, int *);
#define put_fs_byte(x,addr) put_user_byte ((x),(char *)(addr))
void put_user_byte (char, char *);
void memcpy_fromfs (void *, void *, size_t);
void memcpy_tofs (void *, void *, size_t);
#endif
|