#define ICW4_PC_AEOI_SLAVE 0x0B /* not SFNM, buffered, auto EOI, 8086 */
#define ICW4_PC_AEOI_MASTER 0x0F /* not SFNM, buffered, auto EOI, 8086 */
-/*===========================================================================*
- * intr_disabled *
- *===========================================================================*/
-PRIVATE int intr_disabled(void)
-{
- if(!(read_cpu_flags() & X86_FLAG_I))
- return 1;
- return 0;
-}
-
/*===========================================================================*
* intr_init *
*===========================================================================*/
* use the BIOS locations instead. The flag "mine" is set if the 8259s are
* to be programmed for MINIX, or to be reset to what the BIOS expects.
*/
- if (!intr_disabled())
- intr_disable();
/* The AT and newer PS/2 have two interrupt controllers, one master,
* one slaved at IRQ 2. (We don't have to deal with the PC that
{
int irq;
- intr_disable();
-
if((irq = arch_init_profile_clock(freq)) >= 0) {
/* Register interrupt handler for statistical system profiling. */
profile_clock_hook.proc_nr_e = CLOCK;
put_irq_handler(&profile_clock_hook, irq, profile_clock_handler);
enable_irq(&profile_clock_hook);
}
-
- intr_enable();
}
/*===========================================================================*
*===========================================================================*/
PUBLIC void stop_profile_clock()
{
- intr_disable();
arch_stop_profile_clock();
- intr_enable();
/* Unregister interrupt handler. */
disable_irq(&profile_clock_hook);