From: SMTP%"MACRO32%WKUVX1.BITNET@uu7.psi.com" 2-OCT-1993 12:17:03.29 To: EVERHART CC: Subj: Re: SEND MACRO32 X-Listname: "VMS Internals, MACRO, & BLISS Discussions" Warnings-To: <> Errors-To: MacroMan%WKUVX1.BITNET@uu7.psi.com Sender: MacroMan%WKUVX1.BITNET@uu7.psi.com X-Newsgroups: vmsnet.internals Subject: Re: SEND MACRO32 Message-Id: <1993Oct2.114107.70@macro.demon.co.uk> From: Reply-To: MACRO32%WKUVX1.BITNET@uu7.psi.com Date: 2 Oct 93 11:41:07 +0000 Organization: None Lines: 30 To: MACRO32@WKUVX1.BITNET X-Gateway-Source-Info: USENET In article <9309301504.AA01058@sn7301.sgi.siemens.com>, "(Chris Olive (x7793))" writes: >> you guyz is workin' to much and need to get a better sense of humor. > > By the way... No one has bothered to send me MACRO32 yet. You > see I accidently deleted MACRO32.EXE and... okay... It's weak. > > For_Jamie_H: .word 0 > movl pcb$l_phd(r4), r5 > clrq phd$q_privmsk(r5) > movl #ss$_normal, r0 > ret You dont want to do this this way. Use this instead: .entry clearit ^m movl g^ctl$gl_phd, r5 clrq phd$q_privmsk(r5) movl #ss$_normal, r0 ret Why? If you reference the PHD via the system address contained in pcb$l_phd you could end up clearing somebody elses privilege mask if you get swapped out at the wrong moment. Rare of course but possible. Clt$gl_phd contains a P1 address that is mapped to the same place but cant change with outswaps. I used to make this mistake myself. Neill. > Chris -- Neill Clift neill@macro.demon.co.uk