Mail Archives: djgpp-workers/1999/02/26/15:40:26
--Message-Boundary-30374
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body
>
> That would be a djgpp bug, it should be movw. Please submit a patch.
The patch is attached to this message.
Mark
--Message-Boundary-30374
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Text from file 'segments.diff'
*** include/sys/segments.h.orig Sun Jun 28 22:13:52 1998
--- include/sys/segments.h Fri Feb 26 15:34:58 1999
***************
*** 17,23 ****
_my_cs(void)
{
unsigned short result;
! __asm__("movl %%cs,%0" : "=r" (result));
return result;
}
--- 17,23 ----
_my_cs(void)
{
unsigned short result;
! __asm__("movw %%cs,%0" : "=r" (result));
return result;
}
***************
*** 25,31 ****
_my_ds(void)
{
unsigned short result;
! __asm__("movl %%ds,%0" : "=r" (result));
return result;
}
--- 25,31 ----
_my_ds(void)
{
unsigned short result;
! __asm__("movw %%ds,%0" : "=r" (result));
return result;
}
***************
*** 33,39 ****
_my_ss(void)
{
unsigned short result;
! __asm__("movl %%ss,%0" : "=r" (result));
return result;
}
--- 33,39 ----
_my_ss(void)
{
unsigned short result;
! __asm__("movw %%ss,%0" : "=r" (result));
return result;
}
--Message-Boundary-30374--
- Raw text -