Mercurial > sos > sos
view arch/progint.S @ 138:ea2136c52c35
Moved some stuff out of arch, added some usefulness to program interrupt catching
author | Jonathan Pevarnek <pevarnj@gmail.com> |
---|---|
date | Thu, 22 Sep 2011 13:42:10 -0400 |
parents | d1e835a25f28 |
children | e72f984619c7 |
line wrap: on
line source
#include <os/progint.h> .text .align 4 .globl PROGINT .type PROGINT, @function PROGINT: stmg %r0,%r15,PROGINT_REG_LOC #save current registers # llilf %r15,PROGINT_STACK lhi %r15,PROGINT_STACK_SHIFT sla %r15,PROGINT_STACK_SHIFT_OFFSET(%r0) larl %r14,prog_int_handler basr %r14,%r14 #so, I think this is just copying the psw to the stack, right?