diff arch/progint.S @ 132:abf1f35f5935

Very simple program interrupt handler, added broken program to test
author Jonathan Pevarnek <pevarnj@gmail.com>
date Sun, 11 Sep 2011 23:10:18 -0400
parents
children d1e835a25f28
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/arch/progint.S	Sun Sep 11 23:10:18 2011 -0400
@@ -0,0 +1,17 @@
+#include "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,0x30
+	sla %r15,16(%r0)
+
+	larl %r14,prog_int_handler
+	basr %r14,%r14 #so, I think this is just copying the psw to the stack, right?
+
+	#so, I do not know what any of the other stuff below this did in the SVCINT function...