delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2013/03/08/11:45:09.1

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Received: by 10.224.18.132 with SMTP id w4mr2006095qaa.1.1362759942702;
Fri, 08 Mar 2013 08:25:42 -0800 (PST)
X-Received: by 10.49.84.73 with SMTP id w9mr179851qey.34.1362759942669; Fri,
08 Mar 2013 08:25:42 -0800 (PST)
Newsgroups: comp.os.msdos.djgpp
Date: Fri, 8 Mar 2013 08:25:42 -0800 (PST)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=85.26.164.76; posting-account=hisACQoAAAC2UgU1qQdb7yDHwI0CXBhT
NNTP-Posting-Host: 85.26.164.76
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <4f3c0ea8-ce8b-403f-9d8f-7197e66e4186@googlegroups.com>
Subject: FARPTRGS
From: starus2013 AT gmail DOT com
Injection-Date: Fri, 08 Mar 2013 16:25:42 +0000
Bytes: 1807
Lines: 28
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hello!
I have a question FARPTRGS
I use to use the register GS (the title FARPTRGS.h) instead FS register. Compile. But it turns out that is still used in operations FS register. (I noticed when viewing messages (Exiting due to signal Sigill)
How can that be (I use the title FARPTRGS.h and applied FS register?)
Maybe some linking options should I use?

#include <dpmi.h>
#include <SYS\segments.h>
#include <LIBC\farptrgs.h>

int main(){
int f,selector;

 __dpmi_meminfo info;

   info.size=1023;
   info.address=0x50000;    

   selector = __dpmi_allocate_ldt_descriptors(1);
 if(selector == -1) return 0;
 if(__dpmi_set_segment_base_address(selector,info.address)==-1) return 0;
 if(__dpmi_set_segment_limit(selector,info.size-1)==-1) return 0;

_farsetsel(selector);


f=f/0; //call SIGILL
return 1;
}

- Raw text -


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