From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,8310825ecaa45519 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2002-02-08 12:11:23 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!xmission!news-out.spamkiller.net!propagator-maxim!news-in.spamkiller.net!feed.newsfeeds.com!dfw-feed.news.verio.net!news.verio.net!news!not-for-mail Message-ID: <3C64309A.EDDC2721@ins-msi.com> From: Jeff Campbell Organization: INS-MSI Inc. X-Mailer: Mozilla 4.79 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.sys.dec Subject: Re: TS10 Emulator - a bug had been found! References: <3C633298.777E71E5@ins-msi.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Fri, 08 Feb 2002 20:48:59 GMT NNTP-Posting-Host: 209.190.8.197 X-Trace: news 1013201339 209.190.8.197 (Fri, 08 Feb 2002 15:48:59 EST) NNTP-Posting-Date: Fri, 08 Feb 2002 15:48:59 EST Xref: archiver1.google.com comp.sys.dec:11878 Tim, Dumb question. 8-) Is your emulator code single threaded? That is, not coded as a multithreaded application. The reason I ask is that the INS/REMQUE instructions are atomic. A queued element should not 'disappear' before the it's expected removal. Maybe the queue header is being overwritten (initialized after an item has been inserted into the queue.) Jeff n8wxs@arrl.net sword7@speakeasy.org wrote: > > Jeff: > > Yes, that is right. That's why OpenVMS stalled after RQDX3 initialization > and all units scanned. When RQDX3 initialization was completed, OpenVMS > checked saved interrupt flags from ring base table and see command > interrupt flag is set then jumped to check all queues by using > INSQUE/REMQUE instructions but found nothing. Then returned back to > null job and never do the read access. > > After it was fixed in my RQDX3 emulation, now all saved interrupt flags > are response interrupt is one but command interrupt is zero. OpenVMS > checked everything before exit RQDX3 initization. When it made sure that > command interrupt is zero, it gave green signal to start I/O data acceses. > Then OpenVMS issued IPL 8 software interrupt and returned back to null > job. Then interrupt immediately occured after REI executed and checked > any requests. It found something and issued IPL 4 software interrupt and > returned back to null job. Then interrupt immediated occured and started > to execute at IPL 4. It jumped into the I/O data routines and tried to > dequeue I/O requests from its queue (80AE6350) at 80C68AD9. It found > queue empty and gave up. It just gave up before next instructions that > is starting I/O data access. It retuned back to null job forever.... > > According to debug.log, it failed to enqueue I/O requests to 80AE6350 > during MSCP initialization step #1. It did in SIMH emulator. That > is big difference that I detected in both log files. In TS10 emulator, > it never encounter 80C7476D that contains INSQUE instruction with queue > 80AE6350. In SIMH emulator, it did encountered 80C7476D. There are > 300,000 lines between step #1 and step #2. According to VAX > Internal and Data Structures, it is in processing at step 44 during > EXE$INIT routine. I believed that LDR$CQ_IMAGES (sp?) perhaps is messed > up or so. > > -- Tim Stark > > -- > Timothy Stark ??? Inet: sword7@speakeasy.org > -------------------------------------------------------------------------- > "For God so loved the world, that he gave his only begotten Son, that > whosoever believeth in him should not perish, but have everlasting life. > Amen." -- John 3:16 (King James Version Bible)