Article 135081 of comp.os.vms: Path: nntpd.lkg.dec.com!crl.dec.com!crl.dec.com!caen!kuhub.cc.ukans.edu!zippy.dct.ac.uk!peer-news.britain.eu.net!tank.news.pipex.net!pipex!news.mathworks.com!newsfeed.internetmci.com!news.msfc.nasa.gov!elroy.jpl.nasa.gov!lll-winken.llnl.gov!ames!newsfeed.gsfc.nasa.gov!usenet Newsgroups: comp.os.vms Subject: Re: $CRMPSC on Alpha? How to share a global sect on AXP Message-ID: <49idh8$iae@post.gsfc.nasa.gov> From: koehler@bessta.gsfc.nasa.gov (Bob Koehler) Date: 29 Nov 1995 19:49:59 GMT Reply-To: koehler@bessta.gsfc.nasa.gov (Bob Koehler) References: <49h32t$dlh@st-james.comp.vuw.ac.nz> Distribution: world Organization: NASA Goddard Space Flight Center -- Greenbelt, Maryland USA NNTP-Posting-Host: bessta.gsfc.nasa.gov X-Newsreader: mxrn 6.18-30 Lines: 34 In article <49h32t$dlh@st-james.comp.vuw.ac.nz>, mdlcpgs@lhn.gns.cri.nz writes: >I am really hitting my head on a brick wall porting a vax/vms system >to Alpha vms when it comes to sharing memory between processes by >$crmpsc. this works fine on the vax but I get >"Invalid argument" in the call on the Alpha. I would love to RTFM but >as usual I am stuck in remote site with borrowed Alpha and no manuals or >CD. >The alternative is obviously a installed common block and after many hoops >have that working (PSECT_ATTR=command,SHR and SYMBOL_VECTOR=(common=PSECT) >but really want to avoid the need for privileged install. > >Here is the routine(s) that i currently use. In the link, I am setting >PSECT_ATTR=common,SHR as well. All in vain though. Something to do with >the page size on Alpha?? > I haven't read through your code, but your question probably hits it on the head. On the Alpha the inadr needs to be page-aligned, both starting at the first byte on a page and ending on the last byte of a page. Since the Alpha page size promises to be variable, you should use $getsyi[w] to request syi$_page_size, which returns as a longword value. If you page-align to syi$_page_size the same code should work on both architectures. And if you follow comp.os.vms you'll come across postings that you can access the doc set via a WEB browser at http://www.e.kth.se/book. I believe this is courtesy Acorn Software. ------------------------------------------------------------------------------ Bob Koehler | koehler@bessta.gsfc.nasa.gov | rkoehler@author.gsfc.nasa.gov