From owner-freebsd-hackers Tue Feb 6 13:02:05 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA11600 for hackers-outgoing; Tue, 6 Feb 1996 13:02:05 -0800 (PST) Received: from netmail1.austin.ibm.com (netmail1.austin.ibm.com [129.35.208.96]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id NAA11571 for ; Tue, 6 Feb 1996 13:01:58 -0800 (PST) Received: from vikings.austin.ibm.com (vikings.austin.ibm.com [129.35.130.98]) by netmail1.austin.ibm.com (8.6.12/8.6.11) with SMTP id PAA174986 for ; Tue, 6 Feb 1996 15:01:46 -0600 Received: by vikings.austin.ibm.com (AIX 3.2/UCB 5.64/4.03-client-2.6) for freebsd-hackers@freebsd.org at austin.ibm.com; id AA30435; Tue, 6 Feb 1996 15:01:44 -0600 From: swise@austin.ibm.com (Jean-Steveau Wise) Message-Id: <9602062101.AA30435@vikings.austin.ibm.com> To: freebsd-hackers@freebsd.org Subject: assertions Date: Tue, 06 Feb 96 15:01:43 -0600 Sender: owner-hackers@freebsd.org Precedence: bulk Hi, I'm debugging a problem with 2.1 FreeBSD where my ATAPI cdrom hangs the system entirely (cannot ping via ethernet, cannot invoke the debugger, etc etc). I'm a kernel hacker but my expertise is in AIX/RS-6K SW/HW. I want to put assertions into the ATAPI driver code and the kernel to assert that the ATAPI code doesn't leave a system call or interrupt with interrupts disabled. Can anyone help me code this assertion? My thoughts are that the ATAPI code is possibly disabling ints, then failing under some cases to re-enable them. I'd like to catch this somehow. So, if this assertion fails, I'd like to jump into the kernel debugger. Anyone else have thoughts on how I might debug this problem? Thanx in advance, ******** Steve Wise IBM RISC System/6000 Division - Austin, TX. Internet: swise@austin.ibm.com VNET: AUSTIN(SWISE)