X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f NNTP-Posting-Date: Tue, 18 Apr 2006 21:42:40 -0500 From: Eric Subject: Re: SATA drives and EDD? Newsgroups: comp.os.msdos.djgpp Date: Tue, 18 Apr 2006 19:42:40 -0700 References: User-Agent: KNode/0.9.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit Message-ID: Lines: 27 NNTP-Posting-Host: 67.183.204.127 X-Trace: sv3-dYDoMpZ4GgsJLrXtb8PkBB8X+t1HOl/sVS0kdKzDlXPHc+CdHbhSgJ2UWUPzPQgsD/SOovlk/76vOZd!+bdqNQ/W689TJgsF0cFcB1kEX5YoG7wAco2+1uBI2eaZmatOT5UK0ze3jnIY6CNe4faNYfYGmKNn!YqbD1sW92eoE8BU= X-Complaints-To: abuse AT comcast DOT net X-DMCA-Complaints-To: dmca AT comcast DOT net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eric wrote: > Will BIOS int 13h Ah=41h return CY=0 if the only HDD is a SATA drive? > I've got a ATA DVD-Writer and a SATA HDD but the int 13 call that checks > for EDD extensions always returns with CY=1. surely they didnt remove > these EDD extensions from the BIOS? So I'm guessing that if all you have > is SATA then the BIOS cant access it via EDD so it returns CY=1 > "pretending " the EDD isnt there? > ie: > __dpmi_regs r; > > r.x.bx = 0x55AA; > r.h.dl = int13_drive_num; > r.h.ah = 0x41; > __dpmi_int(0x13, &r); > r.x.flags & 1 always == 1 > > Note: i havnt tried my code on a non-SATA system. > Eric Hmm, i tried my code on a non-SATA system and it works ok. Am i right in thinking EDD doesnt support SATA? If so, how does one access sectors on SATA drives (from DOS)? BTW: I'm quite new to DJGPP and so far its impressed me, i took one of my linux programs that even had inline asm in it and with one simple mod it compiled and ran under dos - sweet! Eric