X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Mateusz Viste Newsgroups: comp.os.msdos.djgpp Subject: Using outportb() with djgpp Date: Thu, 10 Jul 2014 22:20:13 +0200 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Message-ID: User-Agent: Groundhog Newsreader for Android Lines: 12 Organization: Guest of ProXad - France NNTP-Posting-Date: 10 Jul 2014 22:20:15 CEST NNTP-Posting-Host: 82.225.72.113 X-Trace: 1405023615 news-3.free.fr 2140 82.225.72.113:55962 X-Complaints-To: abuse AT proxad DOT net Bytes: 1220 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi, I am trying to write to a hardware port from within djgpp, using outportb(). It does work from time to time, but often outportb() will make the whole PC reboot. Specifically I am writing to port 0x330 (to a MPU401 adapter). If using the same code with turbo C, it works perfectly. Hence I am wondering: are there any special "rules" I should be aware of when trying to outportb() from within protected mode? regards, Mateusz