Program Status Word: Difference between revisions

m
Bot: Replace deprecated source tag with syntaxhighlight
[unchecked revision][unchecked revision]
No edit summary
m (Bot: Replace deprecated source tag with syntaxhighlight)
 
Line 69:
 
=== Structure (S390) ===
<sourcesyntaxhighlight lang="c">
struct s390_psw {
uint32_t flags;
uint32_t address;
} __attribute__((packed, aligned(8)));
</syntaxhighlight>
</source>
 
=== Structure (z/Arch) ===
<sourcesyntaxhighlight lang="c">
struct s390x_psw {
uint32_t hi_flags;
Line 84:
uint32_t lo_address;
} __attribute__((packed, aligned(8)));
</syntaxhighlight>
</source>
 
=== Portable PSW declaration ===
<sourcesyntaxhighlight lang="c">
/* Helper function to create a PSW adjusted to the current machine */
#if (MACHINE >= M_ZARCH)
Line 108:
S390_PSW_ENABLE_ARCHMODE | S390_PSW_ENABLE_MCI | S390_PSW_WAIT_STATE| S390_PSW_IO_INT | S390_PSW_DAT
);
</syntaxhighlight>
</source>
 
=== Service Interrupt handler ===
<sourcesyntaxhighlight lang="asm">
.globl s390_supervisor_call_handler_stub
s390_supervisor_call_handler_stub:
Line 122:
lm %r0, %r15, S390_FLCGRSAV
lpsw S390_FLCSOPSW
</syntaxhighlight>
</source>
 
== See also ==