smp-patch-06 is now ready. 

        http://www.backplane.com/FreeBSD4/
        http://www.backplane.com/FreeBSD4/smp-patch-06.diff

    Bruce, I'd appreciate a quick review of my solution to the AST issue.
    Search for 'syscall_ast_exit' in i386/i386/exception.s after patching.

    I moved astpending to the per-cpu structure and made it a u_int.  I then
    test it in the syscall code and, if non-zero, it obtains the MP lock,
    pushes the dummy state, and jumps to _doreti.

    (This patch also adds lots of comments to the assembly).

    I am also in need of some C code to test it.  I *think* the below code
    will test it, but I'm not sure.  Bruce?

                                                        -Matt

#include <sys/types.h>
#include <sys/errno.h>

#include <stdio.h>
#include <unistd.h>
#include <signal.h>

int
main(int ac, char **av)
{
    signal(SIGALRM, (void *)-1);
    alarm(1);
    for (;;)
        ;
}




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to