From fbecd39b7a32de1e87bf11ca8b695736bc14544c Mon Sep 17 00:00:00 2001 From: Oliver Lehmann Date: Tue, 3 Jun 2008 20:19:28 +0000 Subject: [PATCH] STATUS: 60% 0000 T _signal compatible 0052 T _psignal compatible 00b6 T _issig not compatible 0186 T _stop compatible 0216 T _psig compatible 02d4 T _fsig compatible 031e T _core not compatible 0512 T _grow not compatible 0640 T _ptrace not compatible 075c T _procxmt compatible --- WEGA/src/uts/sys/sig.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/WEGA/src/uts/sys/sig.c b/WEGA/src/uts/sys/sig.c index 7d53d69..2d36fda 100644 --- a/WEGA/src/uts/sys/sig.c +++ b/WEGA/src/uts/sys/sig.c @@ -107,6 +107,7 @@ issig() { register n; register struct proc *p, *q; + int foo1; p = u.u_procp; while(p->p_sig) { @@ -250,7 +251,7 @@ core() u.u_base.l = (caddr_t)&u; u.u_count = ctob(USIZE); u.u_segflg = 1; - u.u_limit = (daddr_t)ctod(Maxmem); + u.u_limit = (daddr_t)ctod(umemory); writei(ip); u.u_segflg = 0; if(!u.u_segmented) { @@ -297,7 +298,7 @@ int sp; this needs more work... */ - if(sp >= ctob(-(u.u_ssize-1)+0x100)) + if((unsigned)sp >= ctob(-(u.u_ssize-1)+0x100)) return(0); for(j=6;;) { @@ -413,7 +414,7 @@ procxmt() /* read u */ case 3: i = (int)ipc.ip_addr.right; - if (i<0 || i >= ctob(USIZE)) + if (i<0 || (unsigned)i >= ctob(USIZE)) goto error; ipc.ip_data = (long)((physadr)&u)->r[i>>1]; break;