From mint-bounce@lists.fishpool.fi Wed Dec 23 10:32:00 2009 Message-ID: <4B2EA716.7010407@free.fr> Date: Sun, 20 Dec 2009 23:37:10 +0100 From: olivier User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Helmut Karlowski CC: "mint@lists.fishpool.fi" Subject: Re: [MiNT] Opening VDI workstation (was Re: Missing clobbered register in gemlib) References: <20091210202514.b9397305.mandin.patrice@orange.fr> <4B2BF08D.4070101@freesbee.fr> <4B2BC2C9.307.15F63FE@rfburrows.ymail.com> <4B2C16A9.4010104@chello.nl> <4B2C838A.6020605@freesbee.fr> <4B2E0D3F.3080708@freesbee.fr> <20091220160625.3b4f135f.mandin.patrice@orange.fr> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15; format=flowed X-Approved-By: tjhukkan@fishpool.fi X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: olivier.landemarre@free.fr Precedence: bulk List-help: List-unsubscribe: List-Id: X-List-ID: List-subscribe: List-owner: List-post: Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.sparemint.org id nBNFVxVm009773 Helmut Karlowski a écrit : > Am 20.12.2009, 16:06 Uhr, schrieb Patrice Mandin > : > >> According to documentation (Compendium for me), the work_in array must >> be initialized like this: >> >> work_in[0]=Getrez()+2; >> for(i = 1; i < 10; i++) >> work_in[i] = 1; >> work_in[10] = 2; > > Yes - my initialization is sloppy, but it should not lead to a > bus-error. I'll try with the correct one. > >> Also, the fact you open the physical workstation (instead of the >> virtual one, with v_openvwk), could be the cause of your problem, if >> the TOS as already opened it. > > Someone has to open a physical workstation. Hello Yes AES need to do this To open workstation you should do something like this: unsigned long ctrl1 = 0, ctrl0 = 0; if(Getrez()==0) work_in[0] = 1; /* default value*/ else { work_in[0] = Getrez()+2; if(Getrez()>=3 && get_cookie(COOKIE__MIL) && get_cookie(COOKIE__VDI)) work_in[0] = 7; /* Pb with Milan VDI! */ work_out[45] = my_aes_inside.vsetmode; /* very strange but it work like this for extend resolutions !*/ } ctrl0 = Ssystem(/*S_CTRLCACHE*/23, 0L, -1L); ctrl1 = Ssystem(/*S_CTRLCACHE*/23, -1L, 0L); Ssystem(/*S_CTRLCACHE*/23, sc & ~3, cm); v_opnwk(&work_in[0], &my_aes_inside.phys_handle, &work_out[0]); Ssystem(/*S_CTRLCACHE*/23, ctrl1, ctrl0); OL > > -Helmut > > > >