🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.listserv.asm370
Article #106

Re: S0F8-10 error

#106
From: Craddock, Chris
Date: Mon, 26 Sep 2005 22:59
57 lines
3731 bytes
>
> I am trying to call a cross memory service using stacking PC and the
call
> fails in S0f8-10. Can anyone in this list give me some insight into
what
> this could be due to

Sure. No problem.

> S0F8-10, according to manual says: "The issuer of a Supervisor Call
(SVC)
> instruction was not in the correct mode to issue the SVC. A
hexadecimal
> reason code in the RTM2CRC field of the RTM2WA data area explains the
> error: and rsncode 10:  10     The issuer was in cross memory mode."
>
> What mode is this about? My etdef in the SP is as follows:
>
> ETD1           ETDEF
TYPE=ENTRY,PROGRAM='PSG0001',SSWITCH=YES,SASN=NEW,X
>                STATE=PROBLEM,AKM=(0:15),EKM=(0:15),EK=8,PKM=REPLACE,
X
>                ARR='PSGARR01'
>
> And I am modesetting to problem mode and key 8 before invoking PC:
>
>                LMH   15,15,SV1PC
>                L     14,SV1PC
> *              DROP  14
>                MODESET MODE=PROB
>                MODESET KEYADDR=KEYADDR1,WORKREG=2
>                PC    0(14)
>
>  And :
>
> KEYADDR1       DC    X'08'

If you defined this PC routine in address space A and then you call it
from address space B, then your PC routine "PSG0001" will get control
with PASN=SASN=A,HASN=B, that is, your PC routine will be running in
cross memory mode. That's what "SSWITCH=YES" means on the entry table.
You wanted the routine to run in your server address space. The hardware
did what you asked it to.

But here's the thing... you can't issue an SVC while running in
cross-memory mode. So if your PC routine issues -any- SVC (GETMAIN,
WAIT, POST,...) that SVC instruction will get a S0F8. You can only avoid
that by avoiding those macros, or by using the forms that tolerate
cross-memory. Often that's a "LINKAGE=SYSTEM" keyword or something
similar.

If you are going to write code that runs in cross-memory mode, you are
going to have to get familiar with the restrictions of that environment
and use the correct forms of the macros. You're getting a lot closer but
you're not there yet.

CC
Technical Details
Message-ID: <E9DE7963E5EA6546B42A979EC28B4D011565DD0C@hou-ex-02.adprod.bmc.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!sn-xit-04!sn-xit-12!sn-xit-09!sn-xit-08!sn-xit-14!supernews.com!149.173.6.116.MISMATCH!foggy!vm.sas.com!bmc.com!Chris_Craddock

Show Full Headers
Complete Article Headers
X-Google-Thread: fcdcb,c0d6f3d0dac0f7ef
X-Google-Attributes: gidfcdcb,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!sn-xit-04!sn-xit-12!sn-xit-09!sn-xit-08!sn-xit-14!supernews.com!149.173.6.116.MISMATCH!foggy!vm.sas.com!bmc.com!Chris_Craddock
From: "Craddock, Chris" <Chris_Craddock@bmc.com>
Newsgroups: bit.listserv.asm370
Subject: Re: S0F8-10 error
Date: Mon, 26 Sep 2005 17:59:35 -0500
Organization: SAS Inc.
Lines: 57
Sender: IBM Mainframe Assembler List <ASSEMBLER-LIST@LISTSERV.UGA.EDU>
Message-ID: <E9DE7963E5EA6546B42A979EC28B4D011565DD0C@hou-ex-02.adprod.bmc.com>
NNTP-Posting-Host: mozart.unx.sas.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: foggy.unx.sas.com 1127775789 26694 10.19.150.41 (26 Sep 2005 23:03:09 GMT)
X-Complaints-To: usenet@unx.sas.com
NNTP-Posting-Date: Mon, 26 Sep 2005 23:03:09 +0000 (UTC)
Comments: Gated by NETNEWS@VM.SAS.COM
Return-Path: <owner-assembler-list@LISTSERV.UGA.EDU>
X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0
Content-class: urn:content-classes:message
Thread-Topic: S0F8-10 error
Thread-Index: AcXCduCVAD1PUFi1SQC4mO7eats4vgAdfACw
X-OriginalArrivalTime: 26 Sep 2005 22:59:36.0305 (UTC)
                       FILETIME=[F75D4610:01C5C2ED]
X-MIME-Autoconverted: from quoted-printable to 8bit by listserv.cc.uga.edu id
                      j8QMxbe6002100
Approved-By: "Craddock, Chris" <Chris_Craddock@BMC.COM>
Return-Path: owner-assembler-list@LISTSERV.UGA.EDU
X-Mime-Autoconverted: from 8bit to 7bit by mime827
Originator: daemon@mozart.unx.sas.com