Path: news.mitre.org!blanket.mitre.org!philabs!newsjunkie.ans.net!newsfeeds.ans.net!news-was.dfn.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!chippy.visi.com!news-out.visi.com!dimensional.com!not-for-mail From: Eric F. Richards Newsgroups: vmsnet.internals,comp.os.vms Subject: Re: $ENQ and processor modes Date: 6 Jan 1998 15:49:35 GMT Organization: Dimensional Communications Lines: 24 Message-ID: <68tjqf$keu$1@quasar.dimensional.com> References: <68jm9f$3bf$1@quasar.dimensional.com> <68s289$el2$1@quasar.dimensional.com> NNTP-Posting-Host: flatland.dimensional.com X-Newsreader: TIN [UNIX 1.3 unoff BETA 970424; sun4m SunOS 4.1.4] Xref: news.mitre.org vmsnet.internals:5415 comp.os.vms:186335 In comp.os.vms Eric F. Richards wrote: > In comp.os.vms Eric F. Richards wrote: > > I'm trying to figure out something in the lock manager. (sigh...typo corrected below) > Brian Schenkenberger sent me a short hack to get around this problem, > basically by modifying the LKB after the fact. It seems to behave > exactly the way I want it to: > .entry fixit, ^m ; R4 get LKID, R6 gets LKB addr > movl lksb+4, r4 ; get lock ID > jsb g^lck$validate_local_lkid ; get LKB ^^^^ > blbc r0, 10$ ; on error bail out > insv #psl$c_user, #lkb$v_mode, - ; set lock mode to USER mode > #lkb$s_mode, lkb$b_rmod(r6) ; ...in LKB -- just force it. > 10$: ret ; back to EXEC mode -- Eric F. Richards efricha@alumni.cs.colorado.edu "The weird part is that I can feel productive even when I'm doomed." - Dilbert