(C) 1998 AROS - The Amiga Research OS


NAME
#include <proto/exec.h>

void Enable ()

LOCATION
In SysBase at offset 21

SYNOPSIS

FUNCTION
This function will allow interrupts to occur after they have been disabled by Disable().

Note that calls to Disable() nest, and for every call to Disable() you need a matching call to Enable().

***** WARNING *****

Using this function is considered very harmful, and it is not recommended to use this function for ** ANY ** reason.

It is quite possible to either crash the system, or to prevent normal activities (disk/port i/o) from occuring.

Note: As taskswitching is driven by the interrupts subsystem, this function has the side effect of disabling multitasking.

INPUTS
None.

RESULT
Interrupts will be enabled again when this call returns.

EXAMPLE
No you DEFINITATELY don't want to use this function.
SEE ALSO
Forbid(), Permit(), Disable(), Wait()

NOTES
This function preserves all registers.

To prevent deadlocks calling Wait() in disabled state breaks the disable - thus interrupts may happen again.

BUGS
The only architecture that you can rely on the registers being saved is on the Motorola mc68000 family.

INTERNALS
This function must be replaced in the $(KERNEL) or $(ARCH) directories in order to do some work.

HISTORY
#ifndef UseExecstubs