From 1c07f10dbf2f973e85eb4cda6c17a45f5e3d7a42 Mon Sep 17 00:00:00 2001 From: Oliver Lehmann Date: Thu, 29 May 2008 19:33:22 +0000 Subject: [PATCH] small fix to use correct register --- WEGA/src/uts/sys/ureg.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/WEGA/src/uts/sys/ureg.c b/WEGA/src/uts/sys/ureg.c index 6e70135..f6d045e 100644 --- a/WEGA/src/uts/sys/ureg.c +++ b/WEGA/src/uts/sys/ureg.c @@ -78,8 +78,7 @@ sureg() estabur(nt, nd, ns, sep) register unsigned nt, nd, ns; { - /*FIXME: the 3rd test should be done in r5, not r2 */ - if(((nt > 0x100 || (nd+ns) > 0x00ff)) || (maxmem < nt+nd+ns+USIZE)) { + if(nt > 0x100 || ((nd+ns) > 0x00ff || (nt+nd+ns+USIZE) > maxmem)) { u.u_error = ENOMEM; return(-1); }