X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "rickbronson AT gmail DOT com" Newsgroups: comp.os.msdos.djgpp Subject: freedos and cwsdpmi with djgpp under Linux? Date: Mon, 17 Aug 2009 12:39:40 -0700 (PDT) Organization: http://groups.google.com Lines: 35 Message-ID: NNTP-Posting-Host: 98.232.231.2 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1250537980 2519 127.0.0.1 (17 Aug 2009 19:39:40 GMT) X-Complaints-To: groups-abuse AT google DOT com NNTP-Posting-Date: Mon, 17 Aug 2009 19:39:40 +0000 (UTC) Complaints-To: groups-abuse AT google DOT com Injection-Info: g31g2000yqc.googlegroups.com; posting-host=98.232.231.2; posting-account=uzptqgkAAABqsyRikuPIddJdkRRcix69 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1) Gecko/20061010 Firefox/2.0,gzip(gfe),gzip(gfe) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I built a djgpp app using a debian Linux version of djgpp (gcc version 4.2.2) in http://www.by.kernel.org/pub/debian-cosy/dists/lenny/local/binary-i386/ The end of my Makefile looks like: i386-pc-msdosdjgpp-stubify $(PROJ).exe My CONFIG.SYS is: DOS=HIGH BUFFERS=20 FILES=30 LASTDRIVE=Z STACKS=9,256 I run "cwsdpmi.exe -p" then run my app but it can't find XMS, this command fails: regs.x.ax = 0x4300; /* EXTENDED MEMORY SPECIFICATION (XMS) v2+ - INSTALLATION CHECK */ __dpmi_simulate_real_mode_interrupt(0x2f, ®s); If I add this to my CONFIG.SYS: DEVICE=HIMEM.SYS The above passes but when I try to alloc memory via: regs.x.ax = 0x0900; /* Allocate extended memory block */ regs.x.dx = size_pg_align / XMS_BLOCK; __dpmi_simulate_real_mode_procedure_retf(®s); it fails. Can anyone shed some light on this? Thanks very much. Rick Bronson