[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

psigintr fix



dossig.c, intr.spp: ++entropy@terminator.rs.itd.umich.edu
	Fix Howard's p_sigintr code so it compiles on a 68000.


--- 1.10.1.1	1994/02/26 13:15:32
+++ dossig.c	1994/02/26 13:18:04
@@ -241,8 +241,9 @@
 	vec2 = (long) new_intr;
 
 #ifndef ONLY030
-	if (mcpu == 0)			/* put vector number in high */
-		vec2 |= vec << 24;	/* byte of vector address */
+	if (mcpu == 0)			
+		/* put vector number in high byte of vector address */
+		vec2 |= ((long) vec) << 24;
 #endif
 	new = kmalloc(sizeof(usig));
 	if (!new)			/* hope this never happens...! */
--- 1.10.1.4	1994/02/26 06:55:26
+++ intr.spp	1994/02/26 07:27:30
@@ -253,7 +253,7 @@
 	movem.l	d0-d2/a0-a2,-(sp)	; save regs
 
 %ifndef ONLY030
-	tst.w	($59e.w)	; is frame format on stack?
+	tst.w	($59e).w	; is frame format on stack?
 	bne.s	nvec		; yes, go use it
 	bsr.s	ndummy		; push PC to stack
 	nop

--
entropy -- it's not just a good idea, it's the second law.
Personal mail:      entropy@gnu.ai.mit.edu
MiNT library mail:  entropy@terminator.rs.itd.umich.edu
"what do you have against octal?" -jrb