Mercurial > sos > sos
comparison arch/svcint.S @ 95:cabcdc3727e3
arch: implemented swapcontext & fixed few minor issues
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Thu, 12 May 2011 15:56:46 -0400 |
parents | 5f3618fbf9ae |
children |
comparison
equal
deleted
inserted
replaced
92:d3c5223c0c5f | 95:cabcdc3727e3 |
---|---|
18 # call into C... f(svc, arg0, arg1, arg2, arg3) | 18 # call into C... f(svc, arg0, arg1, arg2, arg3) |
19 larl %r14,_SVC_HANDLER | 19 larl %r14,_SVC_HANDLER |
20 lg %r14,0(%r14) | 20 lg %r14,0(%r14) |
21 basr %r14,%r14 | 21 basr %r14,%r14 |
22 | 22 |
23 stmg %r2,%r3,_PSA_GPRS+16 # store the return value | 23 sr %r1,%r1 |
24 sr %r3,%r3 | |
25 sigp %r1,%r3,0x05 | |
24 | 26 |
25 lmg %r0,%r15,_PSA_GPRS | 27 .byte 0x00, 0x00, 0x00, 0x00 |
26 lpswe _PSA_OLD_SVC_PSW |