From owner-freebsd-current Tue Dec 1 22:35:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA15907 for freebsd-current-outgoing; Tue, 1 Dec 1998 22:35:30 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.15.68.22]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA15900 for ; Tue, 1 Dec 1998 22:35:27 -0800 (PST) (envelope-from bde@godzilla.zeta.org.au) Received: (from bde@localhost) by godzilla.zeta.org.au (8.8.7/8.8.7) id RAA13376; Wed, 2 Dec 1998 17:35:01 +1100 Date: Wed, 2 Dec 1998 17:35:01 +1100 From: Bruce Evans Message-Id: <199812020635.RAA13376@godzilla.zeta.org.au> To: bde@zeta.org.au, mike@smith.net.au Subject: Re: sio breakage Cc: andyf@speednet.com.au, freebsd-current@FreeBSD.ORG, geoffb@demon.net, johan@granlund.nu, ortmann@sparc.isl.net Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >> something() >> { >> asm("cli"); >> asm("sti"); >> } >> >> This disables interrupts for 0 user instructions, but if a pagefault >> occurs for reading the "sti" instruction, it disables interrupts for >> hundreds, thousands or millions of kernel instructions. > >Since 'cli' can't be executed in user space, and a page fault in kernel >mode is a fatal occurrence, this can't happen. man 4 io. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message