delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/10/23/04:27:58

Sender: vheyndri AT rug DOT ac DOT be
Message-Id: <344F09FF.6E11@rug.ac.be>
Date: Thu, 23 Oct 1997 10:25:35 +0200
From: Vik Heyndrickx <Vik DOT Heyndrickx AT rug DOT ac DOT be>
Mime-Version: 1.0
To: djgpp workers <djgpp-workers AT delorie DOT com>
Subject: Re: 971009: (offset, selector) are (long unsigned, short unsigned)
References: <344F020A DOT 588A AT rug DOT ac DOT be>

This is a multi-part message in MIME format.

--------------6BD53C776CD2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

It seems that I forgot the attachment. Sorry about that. Here is is.

-- 
+----------------+
| Vik Heyndrickx |
+----------------+

--------------6BD53C776CD2
Content-Type: text/plain; charset=us-ascii; name="src04_05.dif"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="src04_05.dif"

diff -u -r -N 04/include/sys/movedata.h 05/include/sys/movedata.h
--- 04/include/sys/movedata.h	Wed Jan 31 06:31:10 1996
+++ 05/include/sys/movedata.h	Wed Oct 22 22:49:30 1997
@@ -32,14 +32,14 @@
 
 
 /* This length is in bytes, optimized for speed */
-void movedata(unsigned _source_selector, unsigned _source_offset,
-	       unsigned _dest_selector, unsigned _dest_offset,
-	       size_t _length);
+void movedata(unsigned short _source_selector, unsigned long _source_offset,
+	      unsigned short _dest_selector, unsigned long _dest_offset,
+	      size_t _length);
 
 /* The lengths here are in TRANSFERS, not bytes! */
-void _movedatab(unsigned, unsigned, unsigned, unsigned, size_t);
-void _movedataw(unsigned, unsigned, unsigned, unsigned, size_t);
-void _movedatal(unsigned, unsigned, unsigned, unsigned, size_t);
+void _movedatab(unsigned short, unsigned long, unsigned short, unsigned long, size_t);
+void _movedataw(unsigned short, unsigned long, unsigned short, unsigned long, size_t);
+void _movedatal(unsigned short, unsigned long, unsigned short, unsigned long, size_t);
   
 #endif /* !_POSIX_SOURCE */
 #endif /* !__STRICT_ANSI__ */
diff -u -r -N 04/include/sys/segments.h 05/include/sys/segments.h
--- 04/include/sys/segments.h	Fri Mar 24 14:37:42 1995
+++ 05/include/sys/segments.h	Wed Oct 22 22:56:44 1997
@@ -12,26 +12,26 @@
 
 #ifndef _POSIX_SOURCE
 
-static __inline__ int
+static __inline__ unsigned short
 _my_cs(void)
 {
-  short result;
+  unsigned short result;
   __asm__("movw %%cs,%0" : "=r" (result));
   return result;
 }
 
-static __inline__ int
+static __inline__ unsigned short
 _my_ds(void)
 {
-  short result;
+  unsigned short result;
   __asm__("movw %%ds,%0" : "=r" (result));
   return result;
 }
 
-static __inline__ int
+static __inline__ unsigned short
 _my_ss(void)
 {
-  short result;
+  unsigned short result;
   __asm__("movw %%ss,%0" : "=r" (result));
   return result;
 }
diff -u -r -N 04/src/libc/pc_hw/mem/dmg.txh 05/src/libc/pc_hw/mem/dmg.txh
--- 04/src/libc/pc_hw/mem/dmg.txh	Wed Jan 31 06:30:16 1996
+++ 05/src/libc/pc_hw/mem/dmg.txh	Wed Oct 22 22:09:56 1997
@@ -4,7 +4,7 @@
 @example
 #include <sys/movedata.h>
 
-void dosmemget(int offset, int length, void *buffer);
+void dosmemget(unsigned long offset, size_t length, void *buffer);
 @end example
 
 @subheading Description
diff -u -r -N 04/src/libc/pc_hw/mem/dmp.txh 05/src/libc/pc_hw/mem/dmp.txh
--- 04/src/libc/pc_hw/mem/dmp.txh	Thu Jun 13 05:35:56 1996
+++ 05/src/libc/pc_hw/mem/dmp.txh	Wed Oct 22 22:06:50 1997
@@ -4,7 +4,7 @@
 @example
 #include <sys/movedata.h>
 
-void dosmemput(const void *buffer, int length, int offset);
+void dosmemput(const void *buffer, size_t length, unsigned long offset);
 @end example
 
 @subheading Description
diff -u -r -N 04/src/libc/pc_hw/mem/dmpl.txh 05/src/libc/pc_hw/mem/dmpl.txh
--- 04/src/libc/pc_hw/mem/dmpl.txh	Sun Aug 31 17:23:42 1997
+++ 05/src/libc/pc_hw/mem/dmpl.txh	Wed Oct 22 22:08:14 1997
@@ -4,7 +4,7 @@
 @example
 #include <sys/movedata.h>
 
-void _dosmemputl(const void *buffer, size_t xfers unsigned long offset);
+void _dosmemputl(const void *buffer, size_t xfers, unsigned long offset);
 @end example
 
 @subheading Description
diff -u -r -N 04/src/libc/pc_hw/mem/md.txh 05/src/libc/pc_hw/mem/md.txh
--- 04/src/libc/pc_hw/mem/md.txh	Sat Apr 27 05:51:50 1996
+++ 05/src/libc/pc_hw/mem/md.txh	Wed Oct 22 22:02:46 1997
@@ -4,8 +4,8 @@
 @example
 #include <sys/movedata.h>
 
-void movedata(unsigned source_selector, unsigned source_offset,
-              unsigned dest_selector, unsigned dest_offset,
+void movedata(unsigned short source_selector, unsigned long source_offset,
+              unsigned short dest_selector, unsigned long dest_offset,
               size_t length);
 @end example
 
diff -u -r -N 04/src/libc/pc_hw/mem/mdb.txh 05/src/libc/pc_hw/mem/mdb.txh
--- 04/src/libc/pc_hw/mem/mdb.txh	Mon Jul 10 07:41:08 1995
+++ 05/src/libc/pc_hw/mem/mdb.txh	Wed Oct 22 22:39:00 1997
@@ -4,10 +4,11 @@
 @example
 #include <sys/movedata.h>
 
-void _movedatab(unsigned, unsigned, unsigned, unsigned, size_t);
+void _movedatab(unsigned short, unsigned long,
+                unsigned short, unsigned long, size_t);
 @end example
 
 @subheading Description
 
 Just like @ref{movedata}, but all transfers are always 8-bit
-transfers.
+transfers. The count is a count of transfers.
diff -u -r -N 04/src/libc/pc_hw/mem/mdl.txh 05/src/libc/pc_hw/mem/mdl.txh
--- 04/src/libc/pc_hw/mem/mdl.txh	Mon Jul 10 07:41:10 1995
+++ 05/src/libc/pc_hw/mem/mdl.txh	Wed Oct 22 22:38:16 1997
@@ -4,7 +4,8 @@
 @example
 #include <sys/movedata.h>
 
-void _movedatal(unsigned, unsigned, unsigned, unsigned, size_t);
+void _movedatal(unsigned short, unsigned long,
+                unsigned short, unsigned long, size_t);
 @end example
 
 @subheading Description
diff -u -r -N 04/src/libc/pc_hw/mem/mdw.txh 05/src/libc/pc_hw/mem/mdw.txh
--- 04/src/libc/pc_hw/mem/mdw.txh	Mon Jul 10 07:41:08 1995
+++ 05/src/libc/pc_hw/mem/mdw.txh	Wed Oct 22 22:38:40 1997
@@ -4,7 +4,8 @@
 @example
 #include <sys/movedata.h>
 
-void _movedataw(unsigned, unsigned, unsigned, unsigned, size_t);
+void _movedataw(unsigned short, unsigned long,
+                unsigned short, unsigned long, size_t);
 @end example
 
 @subheading Description

--------------6BD53C776CD2--


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019