From: system@SendSpamHere.ORG.com Sent: Wednesday, October 03, 2001 2:42 PM To: Info-VAX@Mvb.Saic.Com Subject: Re: Reset error account on Alpha In article <88599d89.0110031036.17d81af0@posting.google.com>, alanb@cloud9.net (Alan B.) writes: >Here's a macro program; I don't remember where I got it. I relieve >myself of all responsibility for system crashes. > >; >; Hack to zero the system and device error counters on OpenVMS Alpha >; >; Jur van der Burg >; Compaq >; >; $ macro zeroerr >; $ link/sysexe zeroerr >; > .library 'sys$library:lib.mlb' > > $ucbdef > $ssdef > > .entry zeroerr,^m<> > > $cmkrnl_s routin=zero > ret > > .entry zero,^m<> > > movab nocrash,(fp) > movl g^ctl$gl_pcb,r4 > jsb g^sch$iolockw > clrl r11 > >10$: jsb g^ioc$scan_iodb > blbc r0,20$ > clrl ucb$l_errcnt(r10) > brb 10$ > >20$: clrl g^exe$gl_memerrs > clrl g^exe$gl_mchkerrs > movl g^ctl$gl_pcb,r4 > jsb g^sch$iounlock > setipl #0 > movzbl #ss$_normal,r0 > ret > > .entry nocrash,^m<> > > setipl #0 > $exit_s > > .end zeroerr This zaps more than just a specified device. In fact, you can't specify the device. -- VAXman- OpenVMS APE certification number: AAA-0001 VAXman(at)TMESIS(dot)COM "And of course, I'm a genius, so people are naturally drawn to my fiery intellect. Their admiration overwhelms their envy!" -- Calvin & Hobbes