Date: Mon, 21 Apr 2003 23:06:44 -0700 (PDT) From: Marcel Moolenaar <marcel@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 29388 for review Message-ID: <200304220606.h3M66ifr015744@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=29388 Change 29388 by marcel@marcel_nfs on 2003/04/21 23:06:34 Fix 2 brainos relating NaT collections: o Nat collections happen when the lower 9 bits are 0x1f8, not 0x1e8. We probably need to use a macro for this. o To see if we have a NaT collection interleaving the syscall arguments, check if the RSE backing store pointer is nargs registers worth of bytes not 64 (=8 registers worth of bytes). Affected files ... .. //depot/projects/ia64_epc/sys/ia64/ia64/trap.c#13 edit Differences ... ==== //depot/projects/ia64_epc/sys/ia64/ia64/trap.c#13 (text+ko) ==== @@ -888,10 +888,10 @@ tfp = &tf->tf_scratch.gr16; nargs = tf->tf_special.cfm & 0x7f; bsp = (uint64_t*)(curthread->td_kstack + tf->tf_special.ndirty); - bsp -= (((uintptr_t)bsp & 0x1ff) < 64) ? (nargs + 1): nargs; + bsp -= (((uintptr_t)bsp & 0x1ff) < (nargs << 3)) ? (nargs + 1): nargs; while (nargs--) { *tfp++ = *bsp++; - if (((uintptr_t)bsp & 0x1ff) == 0x1e8) + if (((uintptr_t)bsp & 0x1ff) == 0x1f8) bsp++; } error = syscall(tf->tf_scratch.gr15, &tf->tf_scratch.gr16, tf);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200304220606.h3M66ifr015744>