Date: Wed, 2 Dec 1998 17:35:01 +1100 From: Bruce Evans <bde@zeta.org.au> To: bde@zeta.org.au, mike@smith.net.au Cc: andyf@speednet.com.au, freebsd-current@FreeBSD.ORG, geoffb@demon.net, johan@granlund.nu, ortmann@sparc.isl.net Subject: Re: sio breakage Message-ID: <199812020635.RAA13376@godzilla.zeta.org.au>
next in thread | raw e-mail | index | archive | help
>> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812020635.RAA13376>