PERFORCE change 29388 for review
Marcel Moolenaar
marcel at FreeBSD.org
Mon Apr 21 23:06:46 PDT 2003
http://perforce.freebsd.org/chv.cgi?CH=29388
Change 29388 by marcel at 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);
More information about the p4-projects
mailing list