Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!rutgers!princeton!rocksvax!martyl From: martyl@rocksvax.UUCP (Marty Leisner) Newsgroups: comp.os.minix Subject: illegal opcode trap for ATs Message-ID: <171@rocksvax.UUCP> Date: Mon, 19-Oct-87 13:54:26 EDT Article-I.D.: rocksvax.171 Posted: Mon Oct 19 13:54:26 1987 Date-Received: Tue, 20-Oct-87 21:26:14 EDT Organization: Xerox: Henrietta, NY Lines: 29 The following is an illegal opcode trap I hung on interrupt 6 on a 286. It seems to make the system somewhat more robust (at least a process which went bonkers will get caught sooner or later (hopefully sooner). It runs fine in real mode. I'm running my system without stack limit checking, so the splimit field is really meaningless to me. PUBLIC void _undefined_opcode() { printf("undefined opcode in process %x\n", cur_proc); printf("sp = %x, splimit = %x, ip = %x\n", proc_ptr->p_sp, proc_ptr->p_splimit, proc_ptr->p_pcpsw.pc); if(cur_proc > LOW_USER) { cause_sig(cur_proc, SIGILL); unready(proc_ptr); } } marty -- marty leisner xerox corp leisner.henr@xerox.com martyl@rocksvax.uucp