patch-2.1.1 linux/include/asm-i386/segment.h
Next file: linux/include/asm-i386/semaphore.h
Previous file: linux/include/asm-alpha/stat.h
Back to the patch index
Back to the overall index
- Lines: 31
- Date:
Tue Oct 1 13:08:43 1996
- Orig file:
v2.1.0/linux/include/asm-i386/segment.h
- Orig date:
Tue Sep 24 10:43:03 1996
diff -u --recursive --new-file v2.1.0/linux/include/asm-i386/segment.h linux/include/asm-i386/segment.h
@@ -33,15 +33,8 @@
#define put_fs_word(x,addr) put_user((x),(unsigned short *)(addr))
#define put_fs_long(x,addr) put_user((x),(unsigned int *)(addr))
-static inline void memcpy_fromfs(void * to, const void * from, unsigned long n)
-{
- memcpy(to, from, n);
-}
-
-static inline void memcpy_tofs(void * to, const void * from, unsigned long n)
-{
- memcpy(to, from, n);
-}
+#define memcpy_fromfs(to,from,n) memcpy((to),(from),(n))
+#define memcpy_tofs(to,from,n) memcpy((to),(from),(n))
/*
* The fs value determines whether argument validity checking should be
@@ -53,11 +46,7 @@
#define get_fs() (current->tss.segment)
#define set_fs(x) (current->tss.segment = (x))
-
-static inline unsigned long get_ds(void)
-{
- return KERNEL_DS;
-}
+#define get_ds() (KERNEL_DS)
#endif /* __ASSEMBLY__ */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov