summaryrefslogtreecommitdiff
path: root/pfinet/asm
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1995-08-09 16:08:27 +0000
committerMichael I. Bushnell <mib@gnu.org>1995-08-09 16:08:27 +0000
commit6c8a9ee254197348539ab8e70f866651350fe4c5 (patch)
tree4e8e7048c95121f6fa51932f0fb35696bc0decd6 /pfinet/asm
parent9f357994e93a265307ac3b9a99b9f7e3c82cd94f (diff)
entered into RCS
Diffstat (limited to 'pfinet/asm')
-rw-r--r--pfinet/asm/segment.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/pfinet/asm/segment.h b/pfinet/asm/segment.h
index 433e5882..34c35b96 100644
--- a/pfinet/asm/segment.h
+++ b/pfinet/asm/segment.h
@@ -3,19 +3,19 @@
#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_long(addr) (*(long *)(addr))
+#define get_user_long(addr) (*(long *)(addr))
-#define get_fs_byte(addr) get_user_byte((char *)(addr))
-char get_user_byte (const char *addr);
+#define get_fs_byte(addr) (*(char *)(addr))
+#define get_user_byte(addr) (*(char *)(addr))
-#define put_fs_long(x,addr) put_user_long((x),(int *)(addr))
-void put_user_long (unsigned long, int *);
+#define put_fs_long(x,addr) (*(long *)(addr) = (x))
+#define put_user_long(x,addr) (*(long *)(addr) = (x)
-#define put_fs_byte(x,addr) put_user_byte ((x),(char *)(addr))
-void put_user_byte (char, char *);
+#define put_fs_byte(x,addr) (*(char *)(addr) = (x))
+#define put_user_byte(x,addr) (*(char *)(addr) = (x))
-void memcpy_fromfs (void *, void *, size_t);
-void memcpy_tofs (void *, void *, size_t);
+#define memcpy_fromfs(a,b,s) (memcpy (a, b, s))
+#define memcpy_tofs(a,b,s) (memcpy (a, b, s))
#endif